The Gaudi Framework
master (53dee381)
Toggle main menu visibility
Loading...
Searching...
No Matches
HistoAlgorithm.h
Go to the documentation of this file.
1
/***********************************************************************************\
2
* (c) Copyright 1998-2025 CERN for the benefit of the LHCb and ATLAS collaborations *
3
* *
4
* This software is distributed under the terms of the Apache version 2 licence, *
5
* copied verbatim in the file "LICENSE". *
6
* *
7
* In applying this licence, CERN does not waive the privileges and immunities *
8
* granted to it by virtue of its status as an Intergovernmental Organization *
9
* or submit itself to any jurisdiction. *
10
\***********************************************************************************/
11
#pragma once
12
13
// Include files
14
#include <
GaudiKernel/Algorithm.h
>
15
16
#include <AIDA/IAxis.h>
17
#include <AIDA/IHistogram1D.h>
18
#include <AIDA/IHistogram2D.h>
19
#include <AIDA/IHistogram3D.h>
20
#include <AIDA/IHistogramFactory.h>
21
#include <AIDA/IProfile1D.h>
22
#include <AIDA/IProfile2D.h>
23
24
using namespace
AIDA
;
25
// Forward declarations
26
class
HistogramSvc
;
27
28
class
HistoAlgorithm
:
public
Algorithm
{
29
30
public
:
31
// Constructor of this form must be provided
32
HistoAlgorithm
(
const
std::string&
name
,
ISvcLocator
* pSvcLocator );
33
34
// Three mandatory member functions of any algorithm
35
StatusCode
initialize
()
override
;
36
StatusCode
execute
()
override
;
37
StatusCode
finalize
()
override
;
38
39
private
:
40
IHistogram1D*
m_h1D
;
41
IHistogram1D*
m_h1DVar
;
42
IHistogram2D*
m_h2D
;
43
IHistogram2D*
m_h2DVar
;
44
IHistogram3D*
m_h3D
;
45
IHistogram3D*
m_h3DVar
;
46
IProfile1D*
m_p1D
;
47
IProfile2D*
m_p2D
;
48
};
Algorithm.h
Gaudi::Algorithm::Algorithm
Algorithm(std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
Constructor.
Definition
Algorithm.h:98
Gaudi::Algorithm::name
const std::string & name() const override
The identifying name of the algorithm object.
Definition
Algorithm.cpp:518
HistoAlgorithm::HistoAlgorithm
HistoAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Definition
HistoAlgorithm.cpp:24
HistoAlgorithm::m_p2D
IProfile2D * m_p2D
Definition
HistoAlgorithm.h:47
HistoAlgorithm::initialize
StatusCode initialize() override
Definition
HistoAlgorithm.cpp:36
HistoAlgorithm::m_h2D
IHistogram2D * m_h2D
Definition
HistoAlgorithm.h:42
HistoAlgorithm::m_h1DVar
IHistogram1D * m_h1DVar
Definition
HistoAlgorithm.h:41
HistoAlgorithm::m_h1D
IHistogram1D * m_h1D
Definition
HistoAlgorithm.h:40
HistoAlgorithm::m_h3DVar
IHistogram3D * m_h3DVar
Definition
HistoAlgorithm.h:45
HistoAlgorithm::execute
StatusCode execute() override
Definition
HistoAlgorithm.cpp:76
HistoAlgorithm::m_p1D
IProfile1D * m_p1D
Definition
HistoAlgorithm.h:46
HistoAlgorithm::finalize
StatusCode finalize() override
Definition
HistoAlgorithm.cpp:103
HistoAlgorithm::m_h3D
IHistogram3D * m_h3D
Definition
HistoAlgorithm.h:44
HistoAlgorithm::m_h2DVar
IHistogram2D * m_h2DVar
Definition
HistoAlgorithm.h:43
HistogramSvc
HistogramSvc class definition.
Definition
HistogramSvc.h:60
ISvcLocator
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition
ISvcLocator.h:42
StatusCode
This class is used for returning status codes from appropriate routines.
Definition
StatusCode.h:64
AIDA
Definition
Annotation.h:21
GaudiTestSuite
src
Histograms
HistoAlgorithm.h
Generated on
for The Gaudi Framework by
1.17.0