ATLAS Offline Software
AlgD.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef CONDALGS_ALGD_H
6 #define CONDALGS_ALGD_H 1
7 
11 
12 #include "AthExHive/HiveDataObj.h"
13 #include "AthExHive/CondDataObj.h"
14 
15 #include <string>
16 
17 class AlgD : public AthAlgorithm {
18 
19 public:
20 
21  AlgD (const std::string& name, ISvcLocator* pSvcLocator);
22  virtual ~AlgD();
23 
24  virtual bool isClonable() const override { return true; }
25 
26  virtual StatusCode initialize() override;
27  virtual StatusCode execute() override;
28  virtual StatusCode finalize() override;
29 
30 private:
31 
32  SG::ReadHandleKey<HiveDataObj> m_rdh1 {this, "Key_R1", "a1", "read key 1"};
33 
34  SG::ReadCondHandleKey<CondDataObj> m_rch1 {this, "Key_CH1", "X1", "cond read key1"};
35  SG::ReadCondHandleKey<CondDataObj> m_rch2 {this, "Key_CH2", "X2", "cond read key2"};
36 
37 };
38 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
AlgD::initialize
virtual StatusCode initialize() override
Definition: AlgD.cxx:27
AlgD::isClonable
virtual bool isClonable() const override
Definition: AlgD.h:24
AlgD::m_rdh1
SG::ReadHandleKey< HiveDataObj > m_rdh1
Definition: AlgD.h:32
HiveDataObj.h
CondDataObj.h
SG::ReadHandleKey< HiveDataObj >
AlgD::finalize
virtual StatusCode finalize() override
Definition: AlgD.cxx:43
AthAlgorithm.h
AlgD::AlgD
AlgD(const std::string &name, ISvcLocator *pSvcLocator)
Definition: AlgD.cxx:15
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AlgD::m_rch1
SG::ReadCondHandleKey< CondDataObj > m_rch1
Definition: AlgD.h:34
AthAlgorithm
Definition: AthAlgorithm.h:47
ReadCondHandleKey.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
AlgD::execute
virtual StatusCode execute() override
Definition: AlgD.cxx:50
SG::ReadCondHandleKey< CondDataObj >
AlgD
Definition: AlgD.h:17
AlgD::m_rch2
SG::ReadCondHandleKey< CondDataObj > m_rch2
Definition: AlgD.h:35
AlgD::~AlgD
virtual ~AlgD()
Definition: AlgD.cxx:23