ATLAS Offline Software
XMLFormatTool.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 JIVEXML__XMLFORMATTOOL_H
6 #define JIVEXML__XMLFORMATTOOL_H
7 
8 #include "JiveXML/IFormatTool.h"
10 
11 namespace JiveXML{
12 
21  class XMLFormatTool : virtual public IFormatTool, public AthAlgTool{
22 
23  public:
24 
26  XMLFormatTool( const std::string&, const std::string&, const IInterface*);
27 
29  virtual StatusCode initialize() override;
30 
32  virtual StatusCode finalize() override;
33 
35  virtual StatusCode SetTag ( const TagType tag ) override;
36 
38  virtual StatusCode StartEvent( const unsigned long EventNumber, const unsigned int RunNumber,
39  const std::string& DateTime,
40  const unsigned int lumiBlock,
41  const std::string& eventProperty,
42  const std::string& geometryVersion ) override;
43 
45  virtual StatusCode EndEvent() override;
46 
48  virtual StatusCode AddToEvent( const std::string& component,
49  const std::string& key,
50  const DataMap* aMap) override;
51 
53  virtual const std::ostringstream* getFormattedEvent() const override;
54 
55 
56  private:
57 
59  std::ostringstream* m_EventBuffer;
60 
62  std::string m_release;
63 
64  };
65 
66 
67 } //namespace
68 
69 #endif
jetMakeRefSamples.geometryVersion
string geometryVersion
Definition: jetMakeRefSamples.py:68
JiveXML::XMLFormatTool::XMLFormatTool
XMLFormatTool(const std::string &, const std::string &, const IInterface *)
Constructor.
Definition: XMLFormatTool.cxx:13
JiveXML::XMLFormatTool::m_release
std::string m_release
the release tag
Definition: XMLFormatTool.h:62
JiveXML::XMLFormatTool::initialize
virtual StatusCode initialize() override
Initialize.
Definition: XMLFormatTool.cxx:26
JiveXML::IFormatTool
Abstract interface to event data formatting classes.
Definition: IFormatTool.h:23
sct_calib_tf.EventNumber
int EventNumber
Definition: sct_calib_tf.py:29
JiveXML::DataMap
std::map< std::string, DataVect > DataMap
Definition: DataType.h:59
JiveXML::XMLFormatTool::AddToEvent
virtual StatusCode AddToEvent(const std::string &component, const std::string &key, const DataMap *aMap) override
Append a formatted version of one event component.
Definition: XMLFormatTool.cxx:112
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
JiveXML::XMLFormatTool::StartEvent
virtual StatusCode StartEvent(const unsigned long EventNumber, const unsigned int RunNumber, const std::string &DateTime, const unsigned int lumiBlock, const std::string &eventProperty, const std::string &geometryVersion) override
Start a new event.
Definition: XMLFormatTool.cxx:60
AthAlgTool.h
JiveXML
This header is shared inbetween the C-style server thread and the C++ Athena ServerSvc.
Definition: BadLArRetriever.cxx:22
JiveXML::XMLFormatTool::SetTag
virtual StatusCode SetTag(const TagType tag) override
Set additional tags.
Definition: XMLFormatTool.cxx:45
EventInfoWrite.RunNumber
RunNumber
Definition: EventInfoWrite.py:50
JiveXML::XMLFormatTool::EndEvent
virtual StatusCode EndEvent() override
Finialize this event.
Definition: XMLFormatTool.cxx:97
JiveXML::TagType
std::pair< std::string, std::string > TagType
Defines a tag as a pair of strings.
Definition: DataType.h:62
JiveXML::XMLFormatTool::m_EventBuffer
std::ostringstream * m_EventBuffer
the string buffer that will hold the complete event
Definition: XMLFormatTool.h:59
JiveXML::XMLFormatTool::finalize
virtual StatusCode finalize() override
Finalize.
Definition: XMLFormatTool.cxx:34
CaloCondBlobAlgs_fillNoiseFromASCII.tag
string tag
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:24
AthAlgTool
Definition: AthAlgTool.h:26
JiveXML::XMLFormatTool
Writes data stored in a DataMap into an XML stream in the format required by the Atlantis event displ...
Definition: XMLFormatTool.h:21
xAOD::lumiBlock
setTeId lumiBlock
Definition: L2StandAloneMuon_v1.cxx:327
JiveXML::XMLFormatTool::getFormattedEvent
virtual const std::ostringstream * getFormattedEvent() const override
Return the formated stringstream.
Definition: XMLFormatTool.cxx:183
IFormatTool.h
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37