ATLAS Offline Software
Loading...
Searching...
No Matches
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
23#include "GaudiKernel/ServiceHandle.h"
24#include "GaudiKernel/ToolHandle.h"
26
27class EventInfo;
30
34
36{
37public:
38 IOVDbTestAlg (const std::string& name, ISvcLocator* pSvcLocator);
39 virtual ~IOVDbTestAlg();
40
41 virtual StatusCode initialize ATLAS_NOT_THREAD_SAFE() override;
42 virtual StatusCode execute (const EventContext& ctx) const override;
43 virtual StatusCode finalize() override;
44
45private:
46
47 StatusCode createCondObjects (const EventContext& ctx) const;
48 StatusCode printCondObjects() const;
49 StatusCode streamOutCondObjects();
50 StatusCode registerCondObjects();
51 StatusCode readWithBeginRun();
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
defines an "iterator" over instances of a given type in StoreGateSvc
uint32_t CLID
The Class ID type.
Interface to an output stream tool.
This is an interface to a tool used to register conditions objects in the Interval of Validity (IOV) ...
defines and typedefs for IOVSvc
#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
Define macros for attributes used to control the static checker.
An algorithm that can be simultaneously executed in multiple threads.
This is a tool that allows streaming out of DataObjects.
This is an interface to a service used to register conditions objects in the Interval of Validity (IO...
BooleanProperty m_writeNewTag
BooleanProperty m_regIOV
virtual StatusCode finalize() override
StatusCode streamOutCondObjects()
IntegerProperty m_run
void waitForSecond() const
BooleanProperty m_twoStepWriteReg
StringProperty m_tagID
StatusCode testCallBack(IOVSVC_CALLBACK_ARGS)
BooleanProperty m_online
BooleanProperty m_fancylist
BooleanProperty m_noStream
BooleanProperty m_readInInit
BooleanProperty m_createExtraChans
virtual StatusCode initialize ATLAS_NOT_THREAD_SAFE() override
BooleanProperty m_writeCondObjs
StatusCode readWithBeginRun()
virtual StatusCode execute(const EventContext &ctx) const override
BooleanProperty m_readWriteCool
IOVDbTestAlg(const std::string &name, ISvcLocator *pSvcLocator)
virtual ~IOVDbTestAlg()
BooleanProperty m_printLB
ToolHandle< IAthenaOutputStreamTool > m_streamer
IntegerProperty m_regTime
BooleanProperty m_readNewTag
ServiceHandle< IIOVRegistrationSvc > m_regSvc
StatusCode registerCondObjects()
BooleanProperty m_nameChans
StatusCode printCondObjects() const
StringProperty m_streamName
StatusCode registerIOV(const CLID &clid)
BooleanProperty m_writeOnlyCool
StatusCode createCondObjects(const EventContext &ctx) const
void initialize()