ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
DataModelTest
DataModelTestDataCommon
src
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$
14
15
16
#ifndef DATAMODELTESTDATACOMMON_CONDWRITERALG_H
17
#define DATAMODELTESTDATACOMMON_CONDWRITERALG_H
18
19
20
#include "
xAODEventInfo/EventInfo.h
"
21
#include "
AthenaBaseComps/AthAlgorithm.h
"
22
#include "
RegistrationServices/IIOVRegistrationSvc.h
"
23
#include "
StoreGate/ReadHandleKey.h
"
24
#include "GaudiKernel/ServiceHandle.h"
25
#include "GaudiKernel/ToolHandle.h"
26
#include "
AthenaKernel/IAthenaOutputStreamTool.h
"
27
28
29
namespace
DMTest
{
30
31
32
class
CondWriterAlg
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
(
const
EventContext& ctx)
override
;
54
55
56
private
:
57
StatusCode
writeSCond
(
unsigned
int
count
);
58
StatusCode
writeRLTest
(
unsigned
int
count
);
59
StatusCode
writeTSTest
(
unsigned
int
count
);
60
61
ServiceHandle<IIOVRegistrationSvc>
m_regSvc
;
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
AthAlgorithm.h
IAthenaOutputStreamTool.h
Interface to an output stream tool.
IIOVRegistrationSvc.h
This is an interface to a tool used to register conditions objects in the Interval of Validity (IOV) ...
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
DMTest::CondWriterAlg::writeRLTest
StatusCode writeRLTest(unsigned int count)
Definition
CondWriterAlg.cxx:77
DMTest::CondWriterAlg::CondWriterAlg
CondWriterAlg(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
CondWriterAlg.cxx:30
DMTest::CondWriterAlg::m_tstestKey
std::string m_tstestKey
Definition
CondWriterAlg.h:67
DMTest::CondWriterAlg::m_s2Key
std::string m_s2Key
Definition
CondWriterAlg.h:65
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::execute
virtual StatusCode execute(const EventContext &ctx) override
Algorithm event processing.
Definition
CondWriterAlg.cxx:135
DMTest::CondWriterAlg::m_rltestKey
std::string m_rltestKey
Definition
CondWriterAlg.h:66
DMTest::CondWriterAlg::m_attrListKey
std::string m_attrListKey
Definition
CondWriterAlg.h:64
DMTest::CondWriterAlg::writeTSTest
StatusCode writeTSTest(unsigned int count)
Definition
CondWriterAlg.cxx:105
DMTest::CondWriterAlg::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Definition
CondWriterAlg.h:63
DMTest::CondWriterAlg::writeSCond
StatusCode writeSCond(unsigned int count)
Definition
CondWriterAlg.cxx:55
DMTest::CondWriterAlg::m_regSvc
ServiceHandle< IIOVRegistrationSvc > m_regSvc
Definition
CondWriterAlg.h:61
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
ServiceHandle
Definition
ClusterMakerTool.h:36
count
int count(std::string s, const std::string ®x)
count how many occurances of a regx are in a string
Definition
hcg.cxx:148
DMTest
Definition
B.h:23
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0