ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Database
AthenaRoot
AthenaRootComps
src
RootAsciiDumperAlg.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
// RootAsciiDumperAlg.h
8
// Header file for class RootAsciiDumperAlg
9
// Author: S.Binet<binet@cern.ch>
11
#ifndef ATHENAROOTCOMPS_ATHENA_ROOTASCIIDUMPERALG_H
12
#define ATHENAROOTCOMPS_ATHENA_ROOTASCIIDUMPERALG_H 1
13
14
// STL includes
15
#include <string>
16
#include <vector>
17
#include <stdint.h>
18
19
// FrameWork includes
20
#include "
AthenaBaseComps/AthAlgorithm.h
"
21
#include "
StoreGate/ReadHandleKey.h
"
22
#include "
xAODEventInfo/EventInfo.h
"
23
24
namespace
Athena
{
25
26
class
RootAsciiDumperAlg
27
:
public
::AthAlgorithm
28
{
29
31
// Public methods:
33
public
:
34
36
using
::
AthAlgorithm::AthAlgorithm
;
37
39
virtual
~RootAsciiDumperAlg
() =
default
;
40
41
// Assignment operator:
42
//RootAsciiDumperAlg &operator=(const RootAsciiDumperAlg &alg);
43
44
// Athena algorithm's Hooks
45
virtual
StatusCode
initialize
();
46
virtual
StatusCode
execute
(
const
EventContext& ctx);
47
virtual
StatusCode
finalize
();
48
50
// Const methods:
52
54
// Non-const methods:
56
58
// Private data:
60
private
:
61
63
RootAsciiDumperAlg
();
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
78
SG::ReadHandleKey<uint32_t>
m_runnbr
79
{
this
,
"RunNumber"
,
"RunNumber"
,
"handle to the run-nbr in event (read)"
};
80
82
SG::ReadHandleKey<uint32_t>
m_evtnbr
83
{
this
,
"EventNumber"
,
"EventNumber"
,
"handle to the evt-nbr in event (read)"
};
84
86
SG::ReadHandleKey<int32_t>
m_el_n
87
{
this
,
"el_n"
,
"el_n"
,
"handle to the nbr of electrons in event (read)"
};
88
90
SG::ReadHandleKey<std::vector<float>
>
m_el_eta
91
{
this
,
"el_eta"
,
"el_eta"
,
"handle to the eta of electrons in event (read)"
};
92
94
SG::ReadHandleKey<std::vector<std::vector<float>
> >
m_el_jetcone_dr
95
{
this
,
"el_jetcone_dr"
,
"el_jetcone_dr"
,
"handle to the jetcone-dR of electrons in event (read)"
};
96
97
SG::ReadHandleKey<xAOD::EventInfo>
m_eiKey
98
{
this
,
"eiKey"
,
"EventInfo"
,
""
};
99
};
100
101
// I/O operators
103
105
// Inline methods:
107
108
}
//> end namespace Athena
109
#endif
//> !ATHENAROOTCOMPS_ATHENA_ROOTASCIIDUMPERALG_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
Athena::RootAsciiDumperAlg::m_ofname
StringProperty m_ofname
ASCII output file name.
Definition
RootAsciiDumperAlg.h:67
Athena::RootAsciiDumperAlg::m_evtnbr
SG::ReadHandleKey< uint32_t > m_evtnbr
event number
Definition
RootAsciiDumperAlg.h:83
Athena::RootAsciiDumperAlg::finalize
virtual StatusCode finalize()
Definition
RootAsciiDumperAlg.cxx:73
Athena::RootAsciiDumperAlg::m_ofd
int m_ofd
file handle to the ASCII output file
Definition
RootAsciiDumperAlg.h:72
Athena::RootAsciiDumperAlg::m_el_jetcone_dr
SG::ReadHandleKey< std::vector< std::vector< float > > > m_el_jetcone_dr
jetcone dR
Definition
RootAsciiDumperAlg.h:95
Athena::RootAsciiDumperAlg::RootAsciiDumperAlg
RootAsciiDumperAlg()
Default constructor:
Athena::RootAsciiDumperAlg::m_eiKey
SG::ReadHandleKey< xAOD::EventInfo > m_eiKey
Definition
RootAsciiDumperAlg.h:98
Athena::RootAsciiDumperAlg::m_runnbr
SG::ReadHandleKey< uint32_t > m_runnbr
run number
Definition
RootAsciiDumperAlg.h:79
Athena::RootAsciiDumperAlg::m_nentries
uint64_t m_nentries
number of entries processed so-far
Definition
RootAsciiDumperAlg.h:75
Athena::RootAsciiDumperAlg::m_el_n
SG::ReadHandleKey< int32_t > m_el_n
number of electrons
Definition
RootAsciiDumperAlg.h:87
Athena::RootAsciiDumperAlg::~RootAsciiDumperAlg
virtual ~RootAsciiDumperAlg()=default
Destructor:
Athena::RootAsciiDumperAlg::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Inherited constructor.
Definition
AthAlgorithm.cxx:10
Athena::RootAsciiDumperAlg::execute
virtual StatusCode execute(const EventContext &ctx)
Execute method.
Definition
RootAsciiDumperAlg.cxx:87
Athena::RootAsciiDumperAlg::m_el_eta
SG::ReadHandleKey< std::vector< float > > m_el_eta
eta of electrons
Definition
RootAsciiDumperAlg.h:91
Athena::RootAsciiDumperAlg::initialize
virtual StatusCode initialize()
Definition
RootAsciiDumperAlg.cxx:44
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
Athena
Some weak symbol referencing magic... These are declared in AthenaKernel/getMessageSvc....
Definition
AthDsoUtils.h:10
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0