ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
AthenaExamples
AthExHistNtup
src
Hist.h
Go to the documentation of this file.
1
2
3
/*
4
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
// Hist.h
8
// Header file for class AthEx::Hist
9
// Author: S.Binet<binet@cern.ch>
11
#ifndef ATHEXHISTNTUP_ATHEXHIST_H
12
#define ATHEXHISTNTUP_ATHEXHIST_H 1
13
14
// STL includes
15
#include <string>
16
17
// FrameWork includes
18
#include "
AthenaBaseComps/AthAlgorithm.h
"
19
#include "GaudiKernel/ITHistSvc.h"
20
#include "GaudiKernel/ServiceHandle.h"
21
#include "
StoreGate/ReadHandleKey.h
"
22
#include "
xAODEventInfo/EventInfo.h
"
23
24
// fwd declares
25
class
TH1F
;
26
27
namespace
AthEx
{
28
29
class
Hist
30
:
public
::AthAlgorithm
31
{
32
34
// Public methods:
36
public
:
37
38
// Copy constructor:
39
41
Hist
(
const
std::string& name, ISvcLocator* pSvcLocator );
42
44
virtual
~Hist
();
45
46
// Assignment operator:
47
//Hist &operator=(const Hist &alg);
48
49
// Athena algorithm's Hooks
50
virtual
StatusCode
initialize
();
51
virtual
StatusCode
execute
(
const
EventContext& ctx);
52
virtual
StatusCode
finalize
();
53
55
// Private data:
57
private
:
58
60
Hist
();
61
63
ServiceHandle<ITHistSvc>
m_histSvc
{
this
,
"THistSvc"
,
"THistSvc"
,
"Handle to the histogram service"
};
64
66
TH1F *
m_hist
;
67
69
SG::ReadHandleKey<xAOD::EventInfo>
m_evt
{
this
,
"EventInfo"
,
"EventInfo"
,
"xAOD EventInfo name"
};
70
};
71
72
}
//> namespace AthEx
73
74
#endif
//> !ATHEXHISTNTUP_ATHEXHIST_H
AthAlgorithm.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
AthEx::Hist::~Hist
virtual ~Hist()
Destructor:
Definition
Hist.cxx:34
AthEx::Hist::Hist
Hist()
Default constructor:
AthEx::Hist::initialize
virtual StatusCode initialize()
Definition
Hist.cxx:39
AthEx::Hist::execute
virtual StatusCode execute(const EventContext &ctx)
Execute method.
Definition
Hist.cxx:63
AthEx::Hist::Hist
Hist(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Definition
Hist.cxx:26
AthEx::Hist::finalize
virtual StatusCode finalize()
Definition
Hist.cxx:56
AthEx::Hist::m_evt
SG::ReadHandleKey< xAOD::EventInfo > m_evt
key to the event-info
Definition
Hist.h:69
AthEx::Hist::m_hist
TH1F * m_hist
pointer to our histogram
Definition
Hist.h:66
AthEx::Hist::m_histSvc
ServiceHandle< ITHistSvc > m_histSvc
handle to the histogram service
Definition
Hist.h:63
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
ServiceHandle
Definition
ClusterMakerTool.h:36
AthEx
Definition
Hist.h:27
python.TrigEgammaMonitorHelper.TH1F
TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
Definition
TrigEgammaMonitorHelper.py:24
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0