ATLAS Offline Software
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
7 
16 
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() 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
TBXMLWriter::m_toolReject
std::map< std::string, unsigned int > m_toolReject
Definition: TBXMLWriter.h:67
TBXMLWriter
Definition: TBXMLWriter.h:24
TBXMLWriter::m_writerTools
std::vector< TBXMLWriterToolBase * > m_writerTools
Definition: TBXMLWriter.h:60
AthAlgorithm.h
TBXMLWriter::m_toolAccept
std::map< std::string, unsigned int > m_toolAccept
Definition: TBXMLWriter.h:66
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TBXMLWriter::m_topDirectory
std::string m_topDirectory
Definition: TBXMLWriter.h:58
TBXMLWriter::execute
virtual StatusCode execute() override
Definition: TBXMLWriter.cxx:115
TBXMLWriter::TBXMLWriter
TBXMLWriter(const std::string &name, ISvcLocator *pSvcLocator)
Algorithm constructor.
Definition: TBXMLWriter.cxx:22
AthAlgorithm
Definition: AthAlgorithm.h:47
TBXMLWriter::m_writerToolNames
std::vector< std::string > m_writerToolNames
Definition: TBXMLWriter.h:56
TBXMLWriter::~TBXMLWriter
virtual ~TBXMLWriter()
Definition: TBXMLWriter.cxx:33
TBXMLWriter::initialize
virtual StatusCode initialize() override
Definition: TBXMLWriter.cxx:40
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
TBXMLWriter::m_toolInvoke
std::map< std::string, unsigned int > m_toolInvoke
Definition: TBXMLWriter.h:68
TBXMLWriterToolBase
base class for XML writer tools for 2004 event display
Definition: TBXMLWriterToolBase.h:17
TBXMLWriter::finalize
virtual StatusCode finalize() override
Definition: TBXMLWriter.cxx:180
TBXMLWriter::m_eventCounter
unsigned int m_eventCounter
Definition: TBXMLWriter.h:54
TBXMLWriter::m_outputFrequency
unsigned int m_outputFrequency
Definition: TBXMLWriter.h:53
TBXMLWriter::getFileDir
const std::string & getFileDir() const
Definition: TBXMLWriter.h:44