ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
AthenaBaseComps
AthenaBaseComps
AthHistogramAlgorithm.h
Go to the documentation of this file.
1
2
3
/*
4
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
5
*/
6
11
#ifndef ATHENABASECOMPS_ATHHISTOGRAMALGORITHM_H
12
#define ATHENABASECOMPS_ATHHISTOGRAMALGORITHM_H 1
13
14
// STL includes
15
#include <string>
16
17
// Framework includes
18
#include "
AthenaBaseComps/AthAlgorithm.h
"
19
#include "
AthenaBaseComps/AthHistogramming.h
"
20
#include "GaudiKernel/ServiceHandle.h"
21
22
23
// Some needed forward declarations
24
class
ITHistSvc;
25
26
27
28
29
class
AthHistogramAlgorithm
30
:
public
::AthAlgorithm
,
31
public
::AthHistogramming
32
{
33
35
// Public methods:
37
public
:
38
40
AthHistogramAlgorithm
(
const
std::string& name, ISvcLocator* pSvcLocator );
41
43
virtual
~AthHistogramAlgorithm
();
44
45
51
virtual
StatusCode
sysInitialize
();
52
53
54
56
// Const methods:
58
63
const
ServiceHandle<ITHistSvc>
&
histSvc
()
const
;
64
65
66
67
69
// Private methods:
71
private
:
74
75
76
78
// Private data:
80
private
:
81
83
ServiceHandle<ITHistSvc>
m_histSvc
;
84
85
86
88
std::string
m_prefix
;
89
91
std::string
m_rootDir
;
92
94
std::string
m_histNamePrefix
;
95
97
std::string
m_histNamePostfix
;
98
100
std::string
m_histTitlePrefix
;
101
103
std::string
m_histTitlePostfix
;
104
105
106
107
};
108
109
// I/O operators
111
112
// For the THistSvc
113
inline
const
ServiceHandle<ITHistSvc>
&
AthHistogramAlgorithm::histSvc
()
const
114
{
115
return
m_histSvc
;
116
}
117
118
119
#endif
//> !ATHENABASECOMPS_ATHHISTOGRAMALGORITHM_H
AthAlgorithm.h
AthHistogramming.h
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
AthHistogramAlgorithm::histSvc
const ServiceHandle< ITHistSvc > & histSvc() const
The standard THistSvc (for writing histograms and TTrees and more to a root file) Returns (kind of) a...
Definition
AthHistogramAlgorithm.h:113
AthHistogramAlgorithm::m_histNamePrefix
std::string m_histNamePrefix
The prefix for the histogram THx name.
Definition
AthHistogramAlgorithm.h:94
AthHistogramAlgorithm::sysInitialize
virtual StatusCode sysInitialize()
Initialization method invoked by the framework.
Definition
AthHistogramAlgorithm.cxx:75
AthHistogramAlgorithm::~AthHistogramAlgorithm
virtual ~AthHistogramAlgorithm()
Destructor:
Definition
AthHistogramAlgorithm.cxx:63
AthHistogramAlgorithm::m_histSvc
ServiceHandle< ITHistSvc > m_histSvc
Default constructor: AthHistogramAlgorithm();.
Definition
AthHistogramAlgorithm.h:83
AthHistogramAlgorithm::m_prefix
std::string m_prefix
Name of the ROOT output stream (file).
Definition
AthHistogramAlgorithm.h:88
AthHistogramAlgorithm::m_histNamePostfix
std::string m_histNamePostfix
The postfix for the histogram THx name.
Definition
AthHistogramAlgorithm.h:97
AthHistogramAlgorithm::m_histTitlePostfix
std::string m_histTitlePostfix
The postfix for the histogram THx title.
Definition
AthHistogramAlgorithm.h:103
AthHistogramAlgorithm::m_rootDir
std::string m_rootDir
Name of the ROOT directory.
Definition
AthHistogramAlgorithm.h:91
AthHistogramAlgorithm::m_histTitlePrefix
std::string m_histTitlePrefix
The prefix for the histogram THx title.
Definition
AthHistogramAlgorithm.h:100
AthHistogramAlgorithm::AthHistogramAlgorithm
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Definition
AthHistogramAlgorithm.cxx:31
AthHistogramming::AthHistogramming
AthHistogramming(const std::string &name)
Constructor with parameters:
Definition
AthHistogramming.cxx:26
ServiceHandle
Definition
ClusterMakerTool.h:36
Generated on
for ATLAS Offline Software by
1.17.0