ATLAS Offline Software
CondReaderAlg.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$
16 #ifndef DATAMODELTESTDATACOMMON_CONDREADERALG_H
17 #define DATAMODELTESTDATACOMMON_CONDREADERALG_H
18 
19 
27 #include "GaudiKernel/ServiceHandle.h"
28 #include "GaudiKernel/IChronoStatSvc.h"
29 
30 
31 namespace DMTest {
32 
33 
35  : public AthReentrantAlgorithm
36 {
37 public:
43  CondReaderAlg (const std::string &name, ISvcLocator *pSvcLocator);
44 
45 
49  virtual StatusCode initialize() override;
50 
51 
55  virtual StatusCode execute (const EventContext& ctx) const override;
56 
57 
58 private:
60  SG::ReadHandleKey<xAOD::EventInfo> m_eventInfoKey{this, "EvtInfo", "EventInfo", "EventInfo name"};
67  size_t m_spins;
68 };
69 
70 
71 } // namespace DMTest
72 
73 
74 #endif // not DATAMODELTESTDATACOMMON_CONDREADERALG_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
DMTest::CondReaderAlg
Definition: CondReaderAlg.h:36
DMTest::CondReaderAlg::m_scondKey
SG::ReadCondHandleKey< DMTest::S1 > m_scondKey
Definition: CondReaderAlg.h:62
S3Cond.h
Conditions declarations for S3.
DMTest::CondReaderAlg::m_rltestKey
SG::ReadCondHandleKey< AthenaAttributeList > m_rltestKey
Definition: CondReaderAlg.h:65
S1Cond.h
Conditions declarations for S1.
DMTest::CondReaderAlg::initialize
virtual StatusCode initialize() override
Algorithm initialization; called at the beginning of the job.
Definition: CondReaderAlg.cxx:50
SG::ReadHandleKey< xAOD::EventInfo >
AthenaAttributeList.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
DMTest::CondReaderAlg::m_spins
size_t m_spins
Definition: CondReaderAlg.h:67
DMTest::CondReaderAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Algorithm event processing.
Definition: CondReaderAlg.cxx:71
DMTest::CondReaderAlg::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Definition: CondReaderAlg.h:60
ReadCondHandleKey.h
AthReentrantAlgorithm.h
DMTest::CondReaderAlg::m_s2Key
SG::ReadCondHandleKey< DMTest::S1 > m_s2Key
Definition: CondReaderAlg.h:63
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
EventInfo.h
SG::ReadCondHandleKey< AthenaAttributeList >
DMTest::CondReaderAlg::CondReaderAlg
CondReaderAlg(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition: CondReaderAlg.cxx:26
DMTest::CondReaderAlg::m_s3Key
SG::ReadCondHandleKey< DMTest::S3 > m_s3Key
Definition: CondReaderAlg.h:64
DMTest::CondReaderAlg::m_chronoSvc
ServiceHandle< IChronoStatSvc > m_chronoSvc
Definition: CondReaderAlg.h:59
DMTest::CondReaderAlg::m_tstestKey
SG::ReadCondHandleKey< AthenaAttributeList > m_tstestKey
Definition: CondReaderAlg.h:66
DMTest
Definition: B.h:23
DMTest::CondReaderAlg::m_attrListKey
SG::ReadCondHandleKey< AthenaAttributeList > m_attrListKey
Definition: CondReaderAlg.h:61
ServiceHandle< IChronoStatSvc >