ATLAS Offline Software
RootAsciiDumperAlgHandle.h
Go to the documentation of this file.
1 
3 /*
4  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // RootAsciiDumperAlgHandle.h
8 // Header file for class RootAsciiDumperAlgHandle
9 // Author: S.Binet<binet@cern.ch>
11 #ifndef ATHENAROOTCOMPS_ATHENA_ROOTASCIIDUMPERALGHANDLE_H
12 #define ATHENAROOTCOMPS_ATHENA_ROOTASCIIDUMPERALGHANDLE_H 1
13 
14 // STL includes
15 #include <string>
16 #include <vector>
17 #include <stdint.h>
18 
19 // FrameWork includes
23 
24 namespace Athena {
25 
27  : public ::AthAlgorithm
28 {
29 
31  // Public methods:
33  public:
34 
36  using ::AthAlgorithm::AthAlgorithm;
37 
39  virtual ~RootAsciiDumperAlgHandle() = default;
40 
41  // Assignment operator:
42  //RootAsciiDumperAlgHandle &operator=(const RootAsciiDumperAlgHandle &alg);
43 
44  // Athena algorithm's Hooks
45  virtual StatusCode initialize();
46  virtual StatusCode execute();
47  virtual StatusCode finalize();
48 
50  // Const methods:
52 
54  // Non-const methods:
56 
58  // Private data:
60  private:
61 
64 
66  StringProperty m_ofname
67  { this, "AsciiFileName", "d3pd.ascii",
68  "Name of the ascii file where the content of the "
69  "ROOT n-tuple file will be dumped." };
70 
72  int m_ofd = -1;
73 
76 
79  { this, "RunNumber", "RunNumber", "handle to the run-nbr in event (read)" };
80 
83  { this, "EventNumber", "EventNumber", "handle to the evt-nbr in event (read)" };
84 
87  { this, "el_n", "el_n", "handle to the nbr of electrons in event (read)" };
88 
91  { this, "el_eta", "el_eta", "handle to the eta of electrons in event (read)" };
92 
95  { this, "el_jetcone_dr", "el_jetcone_dr", "handle to the jetcone-dR of electrons in event (read)" };
96 
98  { this, "eiKey", "EventInfo", "" };
99 };
100 
101 // I/O operators
103 
105 // Inline methods:
107 
108 } //> end namespace Athena
109 #endif //> !ATHENAROOTCOMPS_ATHENA_ROOTASCIIDUMPERALGHANDLE_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
Athena::RootAsciiDumperAlgHandle::m_eiKey
SG::ReadHandleKey< xAOD::EventInfo > m_eiKey
Definition: RootAsciiDumperAlgHandle.h:98
Athena::RootAsciiDumperAlgHandle::m_ofd
int m_ofd
file handle to the ASCII output file
Definition: RootAsciiDumperAlgHandle.h:72
Athena::RootAsciiDumperAlgHandle
Definition: RootAsciiDumperAlgHandle.h:28
Athena::RootAsciiDumperAlgHandle::finalize
virtual StatusCode finalize()
Definition: RootAsciiDumperAlgHandle.cxx:73
Athena::RootAsciiDumperAlgHandle::m_el_eta
SG::ReadHandleKey< std::vector< float > > m_el_eta
eta of electrons
Definition: RootAsciiDumperAlgHandle.h:91
SG::ReadHandleKey< uint32_t >
Athena::RootAsciiDumperAlgHandle::m_ofname
StringProperty m_ofname
ASCII output file name.
Definition: RootAsciiDumperAlgHandle.h:67
Athena::RootAsciiDumperAlgHandle::m_evtnbr
SG::ReadHandleKey< uint32_t > m_evtnbr
event number
Definition: RootAsciiDumperAlgHandle.h:83
Athena::RootAsciiDumperAlgHandle::m_runnbr
SG::ReadHandleKey< uint32_t > m_runnbr
run number
Definition: RootAsciiDumperAlgHandle.h:79
AthAlgorithm.h
Athena::RootAsciiDumperAlgHandle::m_el_n
SG::ReadHandleKey< int32_t > m_el_n
number of electrons
Definition: RootAsciiDumperAlgHandle.h:87
Athena
Some weak symbol referencing magic...
Definition: AthLegacySequence.h:21
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
Athena::RootAsciiDumperAlgHandle::initialize
virtual StatusCode initialize()
Definition: RootAsciiDumperAlgHandle.cxx:44
xAOD::uint64_t
uint64_t
Definition: EventInfo_v1.cxx:123
Athena::RootAsciiDumperAlgHandle::RootAsciiDumperAlgHandle
RootAsciiDumperAlgHandle()
Default constructor:
AthAlgorithm
Definition: AthAlgorithm.h:47
Athena::RootAsciiDumperAlgHandle::~RootAsciiDumperAlgHandle
virtual ~RootAsciiDumperAlgHandle()=default
Destructor:
Athena::RootAsciiDumperAlgHandle::m_nentries
uint64_t m_nentries
number of entries processed so-far
Definition: RootAsciiDumperAlgHandle.h:75
EventInfo.h
Athena::RootAsciiDumperAlgHandle::execute
virtual StatusCode execute()
Definition: RootAsciiDumperAlgHandle.cxx:87
Athena::RootAsciiDumperAlgHandle::m_el_jetcone_dr
SG::ReadHandleKey< std::vector< std::vector< float > > > m_el_jetcone_dr
jetcone dR
Definition: RootAsciiDumperAlgHandle.h:95