ATLAS Offline Software
EventInfoRDOAnalysis.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef EVENT_INFO_RDO_ANALYSIS_H
6 #define EVENT_INFO_RDO_ANALYSIS_H
7 
9 #include <GaudiKernel/ServiceHandle.h>
10 #include <GaudiKernel/ITHistSvc.h>
13 
14 #include <string>
15 #include <vector>
16 
17 class TH1;
18 class TTree;
19 
21 {
22 
23 public:
24  EventInfoRDOAnalysis(const std::string& name, ISvcLocator* pSvcLocator);
25 
26  virtual StatusCode initialize() override final;
27  virtual StatusCode execute() override final;
28 
29 private:
30  SG::ReadHandleKey<xAOD::EventInfo> m_eventInfoKey {this, "EventInfo", "EventInfo", "Input event info key name"};
31 
32  Gaudi::Property<std::string> m_histPath {this, "HistPath", "/RDOAnalysis/histos/", ""};
33  Gaudi::Property<std::string> m_ntuplePath {this, "NtuplePath", "/RDOAnalysis/ntuples/", ""};
34  Gaudi::Property<std::string> m_ntupleName {this, "NtupleName", "EventInfo", ""};
35 
36  ServiceHandle<ITHistSvc> m_thistSvc {this, "HistSvc", "THistSvc", ""};
37 
38  // Branches
40  unsigned long long m_eventNumber{};
43 
46 
47  float m_beamPosX{};
48  float m_beamPosY{};
49  float m_beamPosZ{};
50 
51  float m_beamPosSigmaX{};
52  float m_beamPosSigmaY{};
53  float m_beamPosSigmaZ{};
54 
55  // Histograms
58 
59  TTree *m_tree{};
60 };
61 
62 #endif // EVENT_INFO_RDO_ANALYSIS_H
EventInfoRDOAnalysis::m_lumiBlock
uint32_t m_lumiBlock
Definition: EventInfoRDOAnalysis.h:41
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
EventInfoRDOAnalysis::m_h_actualInteractionsPerCrossing
TH1 * m_h_actualInteractionsPerCrossing
Definition: EventInfoRDOAnalysis.h:56
EventInfoRDOAnalysis::m_beamPosSigmaY
float m_beamPosSigmaY
Definition: EventInfoRDOAnalysis.h:52
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
EventInfoRDOAnalysis::m_beamPosSigmaZ
float m_beamPosSigmaZ
Definition: EventInfoRDOAnalysis.h:53
EventInfoRDOAnalysis::m_beamPosZ
float m_beamPosZ
Definition: EventInfoRDOAnalysis.h:49
EventInfoRDOAnalysis::initialize
virtual StatusCode initialize() override final
Definition: EventInfoRDOAnalysis.cxx:16
EventInfoRDOAnalysis::m_h_averageInteractionsPerCrossing
TH1 * m_h_averageInteractionsPerCrossing
Definition: EventInfoRDOAnalysis.h:57
EventInfoRDOAnalysis::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Definition: EventInfoRDOAnalysis.h:30
SG::ReadHandleKey< xAOD::EventInfo >
EventInfoRDOAnalysis::m_beamPosX
float m_beamPosX
Definition: EventInfoRDOAnalysis.h:47
AthAlgorithm.h
EventInfoRDOAnalysis::m_tree
TTree * m_tree
Definition: EventInfoRDOAnalysis.h:59
EventInfoRDOAnalysis::m_averageInteractionsPerCrossing
float m_averageInteractionsPerCrossing
Definition: EventInfoRDOAnalysis.h:45
EventInfoRDOAnalysis::m_bcid
uint32_t m_bcid
Definition: EventInfoRDOAnalysis.h:42
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
EventInfoRDOAnalysis::m_actualInteractionsPerCrossing
float m_actualInteractionsPerCrossing
Definition: EventInfoRDOAnalysis.h:44
EventInfoRDOAnalysis::m_runNumber
uint32_t m_runNumber
Definition: EventInfoRDOAnalysis.h:39
EventInfoRDOAnalysis::EventInfoRDOAnalysis
EventInfoRDOAnalysis(const std::string &name, ISvcLocator *pSvcLocator)
Definition: EventInfoRDOAnalysis.cxx:11
EventInfoRDOAnalysis::m_thistSvc
ServiceHandle< ITHistSvc > m_thistSvc
Definition: EventInfoRDOAnalysis.h:36
EventInfoRDOAnalysis::m_eventNumber
unsigned long long m_eventNumber
Definition: EventInfoRDOAnalysis.h:40
EventInfoRDOAnalysis::m_histPath
Gaudi::Property< std::string > m_histPath
Definition: EventInfoRDOAnalysis.h:32
AthAlgorithm
Definition: AthAlgorithm.h:47
EventInfoRDOAnalysis::m_ntuplePath
Gaudi::Property< std::string > m_ntuplePath
Definition: EventInfoRDOAnalysis.h:33
EventInfoRDOAnalysis::m_ntupleName
Gaudi::Property< std::string > m_ntupleName
Definition: EventInfoRDOAnalysis.h:34
EventInfoRDOAnalysis::m_beamPosSigmaX
float m_beamPosSigmaX
Definition: EventInfoRDOAnalysis.h:51
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
EventInfo.h
EventInfoRDOAnalysis::execute
virtual StatusCode execute() override final
Definition: EventInfoRDOAnalysis.cxx:59
EventInfoRDOAnalysis::m_beamPosY
float m_beamPosY
Definition: EventInfoRDOAnalysis.h:48
EventInfoRDOAnalysis
Definition: EventInfoRDOAnalysis.h:21
ServiceHandle< ITHistSvc >