ATLAS Offline Software
CondWriterAlg.h
Go to the documentation of this file.
1 // This file's extension implies that it's C, but it's really -*- C++ -*-.
2 /*
3  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
4 */
5 /*
6  */
7 // $Id$
16 #ifndef DATAMODELTESTDATACOMMON_CONDWRITERALG_H
17 #define DATAMODELTESTDATACOMMON_CONDWRITERALG_H
18 
19 
24 #include "GaudiKernel/ServiceHandle.h"
25 #include "GaudiKernel/ToolHandle.h"
27 
28 
29 namespace DMTest {
30 
31 
33  : public AthAlgorithm
34 {
35 public:
41  CondWriterAlg (const std::string &name, ISvcLocator *pSvcLocator);
42 
43 
47  virtual StatusCode initialize() override;
48 
49 
53  virtual StatusCode execute() override;
54 
55 
56 private:
57  StatusCode writeSCond (unsigned int count);
58  StatusCode writeRLTest (unsigned int count);
59  StatusCode writeTSTest (unsigned int count);
60 
62  ToolHandle<IAthenaOutputStreamTool> m_streamer;
63  SG::ReadHandleKey<xAOD::EventInfo> m_eventInfoKey{this, "EvtInfo", "EventInfo", "EventInfo name"};
64  std::string m_attrListKey;
65  std::string m_s2Key;
66  std::string m_rltestKey;
67  std::string m_tstestKey;
68 };
69 
70 
71 } // namespace DMTest
72 
73 
74 #endif // not DATAMODELTESTDATACOMMON_CONDWRITERALG_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
DMTest::CondWriterAlg::m_rltestKey
std::string m_rltestKey
Definition: CondWriterAlg.h:66
DMTest::CondWriterAlg::writeTSTest
StatusCode writeTSTest(unsigned int count)
Definition: CondWriterAlg.cxx:105
IIOVRegistrationSvc.h
This is an interface to a tool used to register conditions objects in the Interval of Validity (IOV) ...
SG::ReadHandleKey< xAOD::EventInfo >
DMTest::CondWriterAlg::m_regSvc
ServiceHandle< IIOVRegistrationSvc > m_regSvc
Definition: CondWriterAlg.h:61
XMLtoHeader.count
count
Definition: XMLtoHeader.py:85
IAthenaOutputStreamTool.h
Interface to an output stream tool.
AthAlgorithm.h
DMTest::CondWriterAlg::m_attrListKey
std::string m_attrListKey
Definition: CondWriterAlg.h:64
DMTest::CondWriterAlg::CondWriterAlg
CondWriterAlg(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition: CondWriterAlg.cxx:30
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
DMTest::CondWriterAlg::writeSCond
StatusCode writeSCond(unsigned int count)
Definition: CondWriterAlg.cxx:55
AthAlgorithm
Definition: AthAlgorithm.h:47
DMTest::CondWriterAlg::m_s2Key
std::string m_s2Key
Definition: CondWriterAlg.h:65
DMTest::CondWriterAlg::execute
virtual StatusCode execute() override
Algorithm event processing.
Definition: CondWriterAlg.cxx:135
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
DMTest::CondWriterAlg::writeRLTest
StatusCode writeRLTest(unsigned int count)
Definition: CondWriterAlg.cxx:77
EventInfo.h
DMTest::CondWriterAlg::initialize
virtual StatusCode initialize() override
Algorithm initialization; called at the beginning of the job.
Definition: CondWriterAlg.cxx:46
DMTest::CondWriterAlg::m_streamer
ToolHandle< IAthenaOutputStreamTool > m_streamer
Definition: CondWriterAlg.h:62
DMTest::CondWriterAlg
Definition: CondWriterAlg.h:34
DMTest::CondWriterAlg::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Definition: CondWriterAlg.h:63
DMTest::CondWriterAlg::m_tstestKey
std::string m_tstestKey
Definition: CondWriterAlg.h:67
DMTest
Definition: B.h:23
ServiceHandle< IIOVRegistrationSvc >