ATLAS Offline Software
CondAlgX.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 #ifndef CONDALGS_CONDALGX_H
6 #define CONDALGS_CONDALGX_H 1
7 
9 #include "StoreGate/ReadHandle.h"
11 
12 #include "AthExHive/CondDataObj.h"
14 
16 #include "GaudiKernel/ICondSvc.h"
17 
18 #include <string>
19 
20 class CondAlgX : public AthAlgorithm {
21 
22 public:
23 
24  CondAlgX (const std::string& name, ISvcLocator* pSvcLocator);
25  virtual ~CondAlgX();
26 
27  virtual StatusCode initialize() override;
28  virtual StatusCode execute() override;
29 
30 private:
31 
32  SG::ReadHandleKey<xAOD::EventInfo> m_evt {this,"EvtInfo", "EventInfo", "EventInfo name"};
33 
34  SG::WriteCondHandleKey<CondDataObj> m_wchk {this, "Key_CH", "X2", "cond handle key"};
35 
36  Gaudi::Property<std::string> m_dbKey {this, "Key_DB", "X2", "explicit dbKey for cond handle"};
37 
39 
40 
41 };
42 
43 #endif
CondAlgX::initialize
virtual StatusCode initialize() override
Definition: CondAlgX.cxx:28
IASCIICondDbSvc.h
WriteCondHandleKey.h
CondDataObj.h
CondAlgX::m_dbKey
Gaudi::Property< std::string > m_dbKey
Definition: CondAlgX.h:36
SG::ReadHandleKey< xAOD::EventInfo >
CondAlgX::m_cds
ServiceHandle< IASCIICondDbSvc > m_cds
Definition: CondAlgX.h:38
AthAlgorithm.h
CondAlgX
Definition: CondAlgX.h:20
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgorithm
Definition: AthAlgorithm.h:47
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
CondAlgX::CondAlgX
CondAlgX(const std::string &name, ISvcLocator *pSvcLocator)
Definition: CondAlgX.cxx:19
CondAlgX::~CondAlgX
virtual ~CondAlgX()
Definition: CondAlgX.cxx:26
EventInfo.h
CondAlgX::m_evt
SG::ReadHandleKey< xAOD::EventInfo > m_evt
Definition: CondAlgX.h:32
SG::WriteCondHandleKey< CondDataObj >
CondAlgX::m_wchk
SG::WriteCondHandleKey< CondDataObj > m_wchk
Definition: CondAlgX.h:34
ReadHandle.h
Handle class for reading from StoreGate.
CondAlgX::execute
virtual StatusCode execute() override
Definition: CondAlgX.cxx:41
ServiceHandle< IASCIICondDbSvc >