ATLAS Offline Software
Loading...
Searching...
No Matches
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
24#include "GaudiKernel/ServiceHandle.h"
25#include "GaudiKernel/ToolHandle.h"
27
28
29namespace DMTest {
30
31
33 : public AthAlgorithm
34{
35public:
41 CondWriterAlg (const std::string &name, ISvcLocator *pSvcLocator);
42
43
47 virtual StatusCode initialize() override;
48
49
53 virtual StatusCode execute() override;
54
55
56private:
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
Interface to an output stream tool.
This is an interface to a tool used to register conditions objects in the Interval of Validity (IOV) ...
Property holding a SG store/key/clid from which a ReadHandle is made.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
virtual StatusCode execute() override
Algorithm event processing.
StatusCode writeRLTest(unsigned int count)
CondWriterAlg(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
virtual StatusCode initialize() override
Algorithm initialization; called at the beginning of the job.
ToolHandle< IAthenaOutputStreamTool > m_streamer
std::string m_attrListKey
StatusCode writeTSTest(unsigned int count)
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
StatusCode writeSCond(unsigned int count)
ServiceHandle< IIOVRegistrationSvc > m_regSvc
Property holding a SG store/key/clid from which a ReadHandle is made.
int count(std::string s, const std::string &regx)
count how many occurances of a regx are in a string
Definition hcg.cxx:146
Definition B.h:23