ATLAS Offline Software
CondAlgY.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_CONDALGY_H
6 #define CONDALGS_CONDALGY_H 1
7 
9 #include "StoreGate/ReadHandle.h"
11 
12 #include "AthExHive/CondDataObjY.h"
14 
15 #include <string>
16 
17 class CondAlgY : public AthAlgorithm {
18 
19 public:
20 
21  CondAlgY (const std::string& name, ISvcLocator* pSvcLocator);
22  virtual ~CondAlgY();
23 
24  virtual StatusCode initialize() override;
25  virtual StatusCode execute() override;
26 
27 private:
28 
29  SG::WriteCondHandleKey<CondDataObjY> m_wch1 {this, "Key_CH1", "Y1", "cond handle key 1"};
30  SG::WriteCondHandleKey<CondDataObjY> m_wch2 {this, "Key_CH2", "Y2", "cond handle key 2"};
31 
32  Gaudi::Property<std::string> m_dbk1 {this, "Key_DB1", "Y1", "explicit dbKey for cond handle 1"};
33  Gaudi::Property<std::string> m_dbk2 {this, "Key_DB2", "Y2", "explicit dbKey for cond handle 2"};
34 
36 
37 };
38 
39 #endif
IASCIICondDbSvc.h
CondAlgY::CondAlgY
CondAlgY(const std::string &name, ISvcLocator *pSvcLocator)
Definition: CondAlgY.cxx:15
WriteCondHandleKey.h
CondAlgY
Definition: CondAlgY.h:17
CondAlgY::execute
virtual StatusCode execute() override
Definition: CondAlgY.cxx:38
CondAlgY::initialize
virtual StatusCode initialize() override
Definition: CondAlgY.cxx:24
CondAlgY::m_dbk1
Gaudi::Property< std::string > m_dbk1
Definition: CondAlgY.h:32
AthAlgorithm.h
CondAlgY::m_cds
ServiceHandle< IASCIICondDbSvc > m_cds
Definition: CondAlgY.h:35
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CondAlgY::m_wch2
SG::WriteCondHandleKey< CondDataObjY > m_wch2
Definition: CondAlgY.h:30
AthAlgorithm
Definition: AthAlgorithm.h:47
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
CondAlgY::~CondAlgY
virtual ~CondAlgY()
Definition: CondAlgY.cxx:22
CondDataObjY.h
SG::WriteCondHandleKey< CondDataObjY >
ReadHandle.h
Handle class for reading from StoreGate.
CondAlgY::m_wch1
SG::WriteCondHandleKey< CondDataObjY > m_wch1
Definition: CondAlgY.h:29
CondAlgY::m_dbk2
Gaudi::Property< std::string > m_dbk2
Definition: CondAlgY.h:33
ServiceHandle< IASCIICondDbSvc >