ATLAS Offline Software
IOVDbTestAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 /***************************************************************************
6  IOVDB test package
7  -----------------------------------------
8  ***************************************************************************/
9 
10 //<doc><file> $Id: IOVDbTestAlg.h,v 1.17 2009-03-30 12:10:14 ivukotic Exp $
11 //<version> $Name: not supported by cvs2svn $
12 
13 #ifndef IOVDBTESTALG_IOVDBTESTALG_H
14 # define IOVDBTESTALG_IOVDBTESTALG_H
15 
16 
20 
22 #include "StoreGate/DataHandle.h"
24 #include "GaudiKernel/ServiceHandle.h"
25 #include "GaudiKernel/ToolHandle.h"
27 
28 class EventInfo;
31 
37 {
38 public:
39  IOVDbTestAlg (const std::string& name, ISvcLocator* pSvcLocator);
40  virtual ~IOVDbTestAlg();
41 
43  virtual StatusCode execute (const EventContext& ctx) const override;
44  virtual StatusCode finalize() override;
45 
46 private:
47 
48  StatusCode createCondObjects (const EventContext& ctx) const;
53  void waitForSecond() const;
55  StatusCode registerIOV(const CLID& clid);
56 
57  BooleanProperty m_writeCondObjs;
58  BooleanProperty m_regIOV;
59  BooleanProperty m_readWriteCool;
60  BooleanProperty m_twoStepWriteReg;
61  BooleanProperty m_createExtraChans;
62  BooleanProperty m_nameChans;
63  BooleanProperty m_readInInit;
64  BooleanProperty m_writeOnlyCool;
65  BooleanProperty m_fancylist;
66  BooleanProperty m_printLB;
67  BooleanProperty m_writeNewTag;
68  BooleanProperty m_readNewTag;
69  BooleanProperty m_noStream;
70  IntegerProperty m_regTime;
71  StringProperty m_streamName;
72  IntegerProperty m_run;
73  BooleanProperty m_online;
74  std::string m_tagID;
75 
77  ToolHandle<IAthenaOutputStreamTool> m_streamer;
78 };
79 
80 
81 #endif // IOVDBTESTALG_IOVDBTESTALG_H
IOVDbTestAlg::m_tagID
std::string m_tagID
Definition: IOVDbTestAlg.h:74
IOVDbTestAlg::m_writeNewTag
BooleanProperty m_writeNewTag
Definition: IOVDbTestAlg.h:67
IOVDbTestAlg::m_run
IntegerProperty m_run
Definition: IOVDbTestAlg.h:72
IOVDbTestAlg::m_readNewTag
BooleanProperty m_readNewTag
Definition: IOVDbTestAlg.h:68
IOVDbTestAlg::m_writeOnlyCool
BooleanProperty m_writeOnlyCool
Definition: IOVDbTestAlg.h:64
IOVDbTestMDTEleMap.h
IOVDbTestAlg::registerCondObjects
StatusCode registerCondObjects()
Definition: IOVDbTestAlg.cxx:706
initialize
void initialize()
Definition: run_EoverP.cxx:894
IOVDbTestAlg::m_readWriteCool
BooleanProperty m_readWriteCool
Definition: IOVDbTestAlg.h:59
IOVDbTestAlg::m_regIOV
BooleanProperty m_regIOV
Definition: IOVDbTestAlg.h:58
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:62
DataHandle.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
IOVDbTestAlg::testCallBack
StatusCode testCallBack(IOVSVC_CALLBACK_ARGS)
Definition: IOVDbTestAlg.cxx:112
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:37
IOVDbTestAlg::m_streamName
StringProperty m_streamName
Definition: IOVDbTestAlg.h:71
IOVDbTestAlg::m_writeCondObjs
BooleanProperty m_writeCondObjs
Definition: IOVDbTestAlg.h:57
IOVDbTestAlg::waitForSecond
void waitForSecond() const
Definition: IOVDbTestAlg.cxx:83
IOVDbTestAlg::m_regTime
IntegerProperty m_regTime
Definition: IOVDbTestAlg.h:70
IOVDbTestAlg::m_regSvc
ServiceHandle< IIOVRegistrationSvc > m_regSvc
Definition: IOVDbTestAlg.h:76
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:77
IOVDbTestAlg::printCondObjects
StatusCode printCondObjects() const
Definition: IOVDbTestAlg.cxx:394
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:158
IOVDbTestAlg::m_fancylist
BooleanProperty m_fancylist
Definition: IOVDbTestAlg.h:65
AthReentrantAlgorithm.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
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:69
IOVDbTestAlg::m_twoStepWriteReg
BooleanProperty m_twoStepWriteReg
Definition: IOVDbTestAlg.h:60
IOVDbTestAlg::m_readInInit
BooleanProperty m_readInInit
Definition: IOVDbTestAlg.h:63
IOVDbTestAlg::streamOutCondObjects
StatusCode streamOutCondObjects()
Definition: IOVDbTestAlg.cxx:672
IOVDbTestAlg::registerIOV
StatusCode registerIOV(const CLID &clid)
IOVDbTestAlg::finalize
virtual StatusCode finalize() override
Definition: IOVDbTestAlg.cxx:650
IOVSvcDefs.h
defines and typedefs for IOVSvc
IOVDbTestAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: IOVDbTestAlg.cxx:587
IOVDbTestAlg::createCondObjects
StatusCode createCondObjects(const EventContext &ctx) const
Definition: IOVDbTestAlg.cxx:176
IOVDbTestAlg::~IOVDbTestAlg
virtual ~IOVDbTestAlg()
Definition: IOVDbTestAlg.cxx:79
checker_macros.h
Define macros for attributes used to control the static checker.
IOVDbTestAlg::m_createExtraChans
BooleanProperty m_createExtraChans
Definition: IOVDbTestAlg.h:61
IOVDbTestAlg::m_printLB
BooleanProperty m_printLB
Definition: IOVDbTestAlg.h:66
IOVDbTestAlg::m_online
BooleanProperty m_online
Definition: IOVDbTestAlg.h:73
ServiceHandle< IIOVRegistrationSvc >