ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
TestBeam
TBRec
src
TBXMLWriter.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 TBREC_TBXMLWRITER_H
6
#define TBREC_TBXMLWRITER_H
14
15
#include "
AthenaBaseComps/AthAlgorithm.h
"
16
17
class
TBXMLWriterToolBase
;
18
19
#include <string>
20
#include <vector>
21
#include <map>
22
23
class
TBXMLWriter
:
public
AthAlgorithm
24
{
25
public
:
26
28
// Constructors and Destructor //
30
32
TBXMLWriter
(
const
std::string& name, ISvcLocator* pSvcLocator);
33
virtual
~TBXMLWriter
();
34
36
// Algorithm Methods //
38
39
virtual
StatusCode
initialize
()
override
;
40
virtual
StatusCode
execute
(
const
EventContext& ctx)
override
;
41
virtual
StatusCode
finalize
()
override
;
42
43
// tool support
44
const
std::string&
getFileDir
()
const
{
return
m_topDirectory
; }
45
46
47
private
:
48
50
// Properties //
52
53
unsigned
int
m_outputFrequency
;
54
unsigned
int
m_eventCounter
;
55
56
std::vector<std::string>
m_writerToolNames
;
57
58
std::string
m_topDirectory
;
59
60
std::vector<TBXMLWriterToolBase*>
m_writerTools
;
61
63
// Stores //
65
66
std::map<std::string,unsigned int>
m_toolAccept
;
67
std::map<std::string,unsigned int>
m_toolReject
;
68
std::map<std::string,unsigned int>
m_toolInvoke
;
69
71
// Functions //
73
74
};
75
#endif
AthAlgorithm.h
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
TBXMLWriterToolBase
base class for XML writer tools for 2004 event display
Definition
TBXMLWriterToolBase.h:18
TBXMLWriter::execute
virtual StatusCode execute(const EventContext &ctx) override
Execute method.
Definition
TBXMLWriter.cxx:98
TBXMLWriter::m_toolReject
std::map< std::string, unsigned int > m_toolReject
Definition
TBXMLWriter.h:67
TBXMLWriter::m_toolInvoke
std::map< std::string, unsigned int > m_toolInvoke
Definition
TBXMLWriter.h:68
TBXMLWriter::m_writerTools
std::vector< TBXMLWriterToolBase * > m_writerTools
Definition
TBXMLWriter.h:60
TBXMLWriter::TBXMLWriter
TBXMLWriter(const std::string &name, ISvcLocator *pSvcLocator)
Algorithm constructor.
Definition
TBXMLWriter.cxx:22
TBXMLWriter::finalize
virtual StatusCode finalize() override
Definition
TBXMLWriter.cxx:162
TBXMLWriter::m_toolAccept
std::map< std::string, unsigned int > m_toolAccept
Definition
TBXMLWriter.h:66
TBXMLWriter::m_writerToolNames
std::vector< std::string > m_writerToolNames
Definition
TBXMLWriter.h:56
TBXMLWriter::m_topDirectory
std::string m_topDirectory
Definition
TBXMLWriter.h:58
TBXMLWriter::initialize
virtual StatusCode initialize() override
Definition
TBXMLWriter.cxx:40
TBXMLWriter::m_outputFrequency
unsigned int m_outputFrequency
Definition
TBXMLWriter.h:53
TBXMLWriter::getFileDir
const std::string & getFileDir() const
Definition
TBXMLWriter.h:44
TBXMLWriter::~TBXMLWriter
virtual ~TBXMLWriter()
Definition
TBXMLWriter.cxx:33
TBXMLWriter::m_eventCounter
unsigned int m_eventCounter
Definition
TBXMLWriter.h:54
Generated on
for ATLAS Offline Software by
1.17.0