ATLAS Offline Software
Loading...
Searching...
No Matches
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
20#include "GaudiKernel/ServiceHandle.h"
21
22
23// Some needed forward declarations
24class ITHistSvc;
25
26
27
28
30 : public ::AthAlgorithm,
32{
33
35 // Public methods:
37public:
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:
71private:
74
75
76
78 // Private data:
80private:
81
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
104
105
106
107};
108
109// I/O operators
111
112// For the THistSvc
114{
115 return m_histSvc;
116}
117
118
119#endif //> !ATHENABASECOMPS_ATHHISTOGRAMALGORITHM_H
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
const ServiceHandle< ITHistSvc > & histSvc() const
The standard THistSvc (for writing histograms and TTrees and more to a root file) Returns (kind of) a...
std::string m_histNamePrefix
The prefix for the histogram THx name.
virtual StatusCode sysInitialize()
Initialization method invoked by the framework.
virtual ~AthHistogramAlgorithm()
Destructor:
ServiceHandle< ITHistSvc > m_histSvc
Default constructor: AthHistogramAlgorithm();.
std::string m_prefix
Name of the ROOT output stream (file)
std::string m_histNamePostfix
The postfix for the histogram THx name.
std::string m_histTitlePostfix
The postfix for the histogram THx title.
std::string m_rootDir
Name of the ROOT directory.
std::string m_histTitlePrefix
The prefix for the histogram THx title.
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
AthHistogramming(const std::string &name)
Constructor with parameters: