ATLAS Offline Software
Loading...
Searching...
No Matches
RootAsciiDumperAlgHandle.h
Go to the documentation of this file.
1
2
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
24namespace Athena {
25
27 : public ::AthAlgorithm
28{
29
31 // Public methods:
33 public:
34
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
75 uint64_t m_nentries = 0;
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
Property holding a SG store/key/clid from which a ReadHandle is made.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
uint64_t m_nentries
number of entries processed so-far
int m_ofd
file handle to the ASCII output file
SG::ReadHandleKey< int32_t > m_el_n
number of electrons
RootAsciiDumperAlgHandle()
Default constructor:
StringProperty m_ofname
ASCII output file name.
SG::ReadHandleKey< std::vector< std::vector< float > > > m_el_jetcone_dr
jetcone dR
SG::ReadHandleKey< std::vector< float > > m_el_eta
eta of electrons
SG::ReadHandleKey< uint32_t > m_runnbr
run number
virtual ~RootAsciiDumperAlgHandle()=default
Destructor:
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Inherited constructor.
SG::ReadHandleKey< uint32_t > m_evtnbr
event number
SG::ReadHandleKey< xAOD::EventInfo > m_eiKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Some weak symbol referencing magic... These are declared in AthenaKernel/getMessageSvc....