ATLAS Offline Software
HiveAlgA.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
11 #ifndef ATHEXHIVE_ALGA_H
12 #define ATHEXHIVE_ALGA_H 1
13 
14 #include "HiveAlgBase.h"
17 #include "AthExHive/HiveDataObj.h"
18 
20 
21 #include <string>
22 
23 class HiveAlgA : public HiveAlgBase {
24 
25 public:
26 
27  // Standard Algorithm Constructor:
28 
29  HiveAlgA (const std::string& name, ISvcLocator* pSvcLocator);
30  ~HiveAlgA ();
31 
32  // Define the initialize, execute and finalize methods:
33 
34  virtual StatusCode initialize() override;
35  virtual StatusCode execute() override;
36  virtual StatusCode finalize() override;
37 
38 private:
39 
40  SG::ReadHandleKey<xAOD::EventInfo> m_evt {this,"EvtInfo", "EventInfo", "xAOD EventInfo name"};
41 
42  SG::WriteHandleKey<HiveDataObj> m_wrh1 {this, "Key_W1", "a1", "WHK 1"};
43  SG::WriteHandleKey<HiveDataObj> m_wrh2 {this, "Key_W2", "a2", "WHK 2"};
44 
45 };
46 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
HiveDataObj.h
SG::ReadHandleKey< xAOD::EventInfo >
HiveAlgA::m_wrh2
SG::WriteHandleKey< HiveDataObj > m_wrh2
Definition: HiveAlgA.h:43
SG::WriteHandleKey< HiveDataObj >
HiveAlgA::finalize
virtual StatusCode finalize() override
Definition: HiveAlgA.cxx:31
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
HiveAlgA::initialize
virtual StatusCode initialize() override
Definition: HiveAlgA.cxx:18
HiveAlgA::m_evt
SG::ReadHandleKey< xAOD::EventInfo > m_evt
Definition: HiveAlgA.h:40
HiveAlgA::~HiveAlgA
~HiveAlgA()
Definition: HiveAlgA.cxx:14
HiveAlgBase
Definition: HiveAlgBase.h:26
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
HiveAlgA
Definition: HiveAlgA.h:23
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
HiveAlgA::execute
virtual StatusCode execute() override
Definition: HiveAlgA.cxx:38
EventInfo.h
HiveAlgA::m_wrh1
SG::WriteHandleKey< HiveDataObj > m_wrh1
Definition: HiveAlgA.h:42
HiveAlgA::HiveAlgA
HiveAlgA(const std::string &name, ISvcLocator *pSvcLocator)
Definition: HiveAlgA.cxx:8
HiveAlgBase.h
Base class for AthExHive example Algs to provide functionality to sleep for a certain amount of time,...