ATLAS Offline Software
AlgA.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_ALGA_H
6 #define CONDALGS_ALGA_H 1
7 
11 #include "AthExHive/HiveDataObj.h"
12 
14 
15 #include <string>
16 
17 class AlgA : public AthAlgorithm {
18 
19 public:
20 
21  AlgA (const std::string& name, ISvcLocator* pSvcLocator);
22  virtual ~AlgA ();
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::WriteHandleKey<HiveDataObj> m_wrh1 {this, "Key_W1", "a1", "write key 1"};
33  SG::WriteHandleKey<HiveDataObj> m_wrh2 {this, "Key_W2", "a2", "write key 2"};
34  SG::ReadHandleKey<xAOD::EventInfo> m_evt {this, "EvtInfo", "EventInfo", "EventInfo name"};
35 };
36 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
AlgA::execute
virtual StatusCode execute() override
Definition: AlgA.cxx:45
AlgA::m_wrh1
SG::WriteHandleKey< HiveDataObj > m_wrh1
Definition: AlgA.h:32
HiveDataObj.h
AlgA::finalize
virtual StatusCode finalize() override
Definition: AlgA.cxx:38
SG::ReadHandleKey< xAOD::EventInfo >
AthAlgorithm.h
SG::WriteHandleKey< HiveDataObj >
AlgA::m_wrh2
SG::WriteHandleKey< HiveDataObj > m_wrh2
Definition: AlgA.h:33
AlgA::isClonable
virtual bool isClonable() const override
Definition: AlgA.h:24
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgorithm
Definition: AthAlgorithm.h:47
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
AlgA::AlgA
AlgA(const std::string &name, ISvcLocator *pSvcLocator)
Definition: AlgA.cxx:16
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
EventInfo.h
AlgA::~AlgA
virtual ~AlgA()
Definition: AlgA.cxx:24
AlgA::initialize
virtual StatusCode initialize() override
Definition: AlgA.cxx:26
AlgA::m_evt
SG::ReadHandleKey< xAOD::EventInfo > m_evt
Definition: AlgA.h:34
AlgA
Definition: AlgA.h:17