ATLAS Offline Software
Loading...
Searching...
No Matches
RootAsciiDumperAlg.h
Go to the documentation of this file.
1
2
3/*
4 Copyright (C) 2002-2024 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
21
22namespace Athena {
23
25 : public ::AthAlgorithm
26{
27
29 // Public methods:
31 public:
32
33 // Copy constructor:
34
36 RootAsciiDumperAlg( const std::string& name, ISvcLocator* pSvcLocator );
37
39 virtual ~RootAsciiDumperAlg();
40
41 // Assignment operator:
42 //RootAsciiDumperAlg &operator=(const RootAsciiDumperAlg &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 std::string m_ofname;
67
69 int m_ofd{-1};
70
72 uint64_t m_nentries{};
73
75 const uint32_t* m_runnbr{};
76
78 const uint32_t* m_evtnbr{};
79
81 const int32_t* m_el_n{};
82
84 const std::vector<float> *m_el_eta;
85
87 const std::vector<std::vector<float> > *m_el_jetcone_dr;
88
89};
90
91// I/O operators
93
95// Inline methods:
97
98} //> end namespace Athena
99#endif //> !ATHENAROOTCOMPS_ATHENA_ROOTASCIIDUMPERALG_H
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
const uint32_t * m_runnbr
run number
const std::vector< std::vector< float > > * m_el_jetcone_dr
jetcone dR
int m_ofd
file handle to the ASCII output file
const int32_t * m_el_n
number of electrons
std::string m_ofname
ASCII output file name.
const std::vector< float > * m_el_eta
eta of electrons
RootAsciiDumperAlg()
Default constructor:
const uint32_t * m_evtnbr
event number
uint64_t m_nentries
number of entries processed so-far
virtual ~RootAsciiDumperAlg()
Destructor:
RootAsciiDumperAlg(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
virtual StatusCode initialize()
Some weak symbol referencing magic... These are declared in AthenaKernel/getMessageSvc....