ATLAS Offline Software
IOVDbTestAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 /***************************************************************************
6  IOVDB test package
7  -----------------------------------------
8  ***************************************************************************/
9 
10 //<version> $Name: not supported by cvs2svn $
11 
12 #ifndef IOVDBTESTALG_IOVDBTESTALG_H
13 # define IOVDBTESTALG_IOVDBTESTALG_H
14 
15 
19 
21 #include "StoreGate/DataHandle.h"
23 #include "GaudiKernel/ServiceHandle.h"
24 #include "GaudiKernel/ToolHandle.h"
26 
27 class EventInfo;
30 
36 {
37 public:
38  IOVDbTestAlg (const std::string& name, ISvcLocator* pSvcLocator);
39  virtual ~IOVDbTestAlg();
40 
42  virtual StatusCode execute (const EventContext& ctx) const override;
43  virtual StatusCode finalize() override;
44 
45 private:
46 
47  StatusCode createCondObjects (const EventContext& ctx) const;
52  void waitForSecond() const;
54  StatusCode registerIOV(const CLID& clid);
55 
56  BooleanProperty m_writeCondObjs{this, "WriteCondObjs", false};
57  BooleanProperty m_regIOV{this, "RegisterIOV", false};
58  BooleanProperty m_readWriteCool{this, "ReadWriteCool", false};
59  BooleanProperty m_twoStepWriteReg{this, "TwoStepWriteReg", false};
60  BooleanProperty m_createExtraChans{this, "CreateExtraChanns", false};
61  BooleanProperty m_nameChans{this, "NameChanns", false};
62  BooleanProperty m_readInInit{this, "ReadInInit", false};
63  BooleanProperty m_writeOnlyCool{this, "WriteOnlyCool", false};
64  BooleanProperty m_fancylist{this, "FancyList", false};
65  BooleanProperty m_printLB{this, "PrintLB", false};
66  BooleanProperty m_writeNewTag{this, "WriteNewTag", false};
67  BooleanProperty m_readNewTag{this, "ReadNewTag", false};
68  BooleanProperty m_noStream{this, "NoStream", false};
69  IntegerProperty m_regTime{this, "RegTime", 0, "Register time in sec"};
70  StringProperty m_streamName{this, "StreamName", "CondStream1"};
71  IntegerProperty m_run{this, "run", 0};
72  BooleanProperty m_online{this, "online", false};
73  StringProperty m_tagID{this, "TagID", ""};
74 
76  ToolHandle<IAthenaOutputStreamTool> m_streamer;
77 };
78 
79 
80 #endif // IOVDBTESTALG_IOVDBTESTALG_H
IOVDbTestAlg::m_writeNewTag
BooleanProperty m_writeNewTag
Definition: IOVDbTestAlg.h:66
IOVDbTestAlg::m_run
IntegerProperty m_run
Definition: IOVDbTestAlg.h:71
IOVDbTestAlg::m_readNewTag
BooleanProperty m_readNewTag
Definition: IOVDbTestAlg.h:67
IOVDbTestAlg::m_writeOnlyCool
BooleanProperty m_writeOnlyCool
Definition: IOVDbTestAlg.h:63
IOVDbTestMDTEleMap.h
IOVDbTestAlg::registerCondObjects
StatusCode registerCondObjects()
Definition: IOVDbTestAlg.cxx:665
initialize
void initialize()
Definition: run_EoverP.cxx:894
IOVDbTestAlg::m_tagID
StringProperty m_tagID
Definition: IOVDbTestAlg.h:73
IOVDbTestAlg::m_readWriteCool
BooleanProperty m_readWriteCool
Definition: IOVDbTestAlg.h:58
IOVDbTestAlg::m_regIOV
BooleanProperty m_regIOV
Definition: IOVDbTestAlg.h:57
IAthenaOutputStreamTool
This is a tool that allows streaming out of DataObjects. This has been factorized out from AthenaOutp...
Definition: IAthenaOutputStreamTool.h:69
IIOVRegistrationSvc.h
This is an interface to a tool used to register conditions objects in the Interval of Validity (IOV) ...
IOVSVC_CALLBACK_ARGS
#define IOVSVC_CALLBACK_ARGS
short hand for IOVSvc call back argument list, to be used when no access to formal arguments is neede...
Definition: IOVSvcDefs.h:24
IOVDbTestAlg::m_nameChans
BooleanProperty m_nameChans
Definition: IOVDbTestAlg.h:61
DataHandle.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:74
IOVDbTestAlg::testCallBack
StatusCode testCallBack(IOVSVC_CALLBACK_ARGS)
Definition: IOVDbTestAlg.cxx:78
IAthenaOutputStreamTool.h
Interface to an output stream tool.
IOVDbTestAlg::IOVDbTestAlg
IOVDbTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: IOVDbTestAlg.cxx:36
IOVDbTestAlg
Algorithm to test writing conditions data and reading them back.
Definition: IOVDbTestAlg.h:36
IOVDbTestAlg::m_streamName
StringProperty m_streamName
Definition: IOVDbTestAlg.h:70
IOVDbTestAlg::m_writeCondObjs
BooleanProperty m_writeCondObjs
Definition: IOVDbTestAlg.h:56
IOVDbTestAlg::waitForSecond
void waitForSecond() const
Definition: IOVDbTestAlg.cxx:49
IOVDbTestAlg::m_regTime
IntegerProperty m_regTime
Definition: IOVDbTestAlg.h:69
IOVDbTestAlg::m_regSvc
ServiceHandle< IIOVRegistrationSvc > m_regSvc
Definition: IOVDbTestAlg.h:75
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
IOVDbTestAlg::m_streamer
ToolHandle< IAthenaOutputStreamTool > m_streamer
Definition: IOVDbTestAlg.h:76
IOVDbTestAlg::printCondObjects
StatusCode printCondObjects() const
Definition: IOVDbTestAlg.cxx:360
IIOVRegistrationSvc
This is an interface to a service used to register conditions objects in the Interval of Validity (IO...
Definition: IIOVRegistrationSvc.h:51
IOVDbTestAlg::ATLAS_NOT_THREAD_SAFE
virtual StatusCode initialize ATLAS_NOT_THREAD_SAFE() override
CLID
uint32_t CLID
The Class ID type.
Definition: Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:47
IOVDbTestAlg::readWithBeginRun
StatusCode readWithBeginRun()
Definition: IOVDbTestAlg.cxx:124
IOVDbTestAlg::m_fancylist
BooleanProperty m_fancylist
Definition: IOVDbTestAlg.h:64
AthReentrantAlgorithm.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
EventInfo
This class provides general information about an event. Event information is provided by the accessor...
Definition: EventInfo/EventInfo/EventInfo.h:43
IOVDbTestAlg::m_noStream
BooleanProperty m_noStream
Definition: IOVDbTestAlg.h:68
IOVDbTestAlg::m_twoStepWriteReg
BooleanProperty m_twoStepWriteReg
Definition: IOVDbTestAlg.h:59
IOVDbTestAlg::m_readInInit
BooleanProperty m_readInInit
Definition: IOVDbTestAlg.h:62
IOVDbTestAlg::streamOutCondObjects
StatusCode streamOutCondObjects()
Definition: IOVDbTestAlg.cxx:638
IOVDbTestAlg::registerIOV
StatusCode registerIOV(const CLID &clid)
IOVDbTestAlg::finalize
virtual StatusCode finalize() override
Definition: IOVDbTestAlg.cxx:616
IOVSvcDefs.h
defines and typedefs for IOVSvc
IOVDbTestAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: IOVDbTestAlg.cxx:553
IOVDbTestAlg::createCondObjects
StatusCode createCondObjects(const EventContext &ctx) const
Definition: IOVDbTestAlg.cxx:142
IOVDbTestAlg::~IOVDbTestAlg
virtual ~IOVDbTestAlg()
Definition: IOVDbTestAlg.cxx:45
checker_macros.h
Define macros for attributes used to control the static checker.
IOVDbTestAlg::m_createExtraChans
BooleanProperty m_createExtraChans
Definition: IOVDbTestAlg.h:60
IOVDbTestAlg::m_printLB
BooleanProperty m_printLB
Definition: IOVDbTestAlg.h:65
IOVDbTestAlg::m_online
BooleanProperty m_online
Definition: IOVDbTestAlg.h:72
ServiceHandle< IIOVRegistrationSvc >