ATLAS Offline Software
HiveAlgR.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
12 #ifndef ATHEXHIVE_HIVEALGR_H
13 #define ATHEXHIVE_HIVEALGR_H 1
14 
16 
19 #include "AthExHive/HiveDataObj.h"
21 
22 // to make an Algorithm Re-entrant, you must inherit from AthReentrantAlgorithm
24 
25 public:
26 
27  // Standard Algorithm Constructor:
28 
29  HiveAlgR (const std::string& name, ISvcLocator* pSvcLocator);
30  ~HiveAlgR ();
31 
32  // Define the initialize, execute and finalize methods:
33  virtual StatusCode initialize() override;
34  virtual StatusCode finalize() override;
35 
36  // Re-entrant version of execute is const and takes an EventContext param
37  virtual StatusCode execute(const EventContext&) const override;
38 
39 private:
40 
41  SG::ReadHandleKey<xAOD::EventInfo> m_evt{this, "EvtInfo", "EventInfo", "event info key"};
42 
43  SG::WriteHandleKey<HiveDataObj> m_wrh1 {this, "Key_W1", "ar1", "write handle key"};
44 
45 };
46 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
HiveAlgR::HiveAlgR
HiveAlgR(const std::string &name, ISvcLocator *pSvcLocator)
Definition: HiveAlgR.cxx:8
HiveDataObj.h
HiveAlgR
Definition: HiveAlgR.h:23
HiveAlgR::execute
virtual StatusCode execute(const EventContext &) const override
Definition: HiveAlgR.cxx:34
SG::ReadHandleKey< xAOD::EventInfo >
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
HiveAlgR::~HiveAlgR
~HiveAlgR()
Definition: HiveAlgR.cxx:14
SG::WriteHandleKey< HiveDataObj >
HiveAlgR::initialize
virtual StatusCode initialize() override
Definition: HiveAlgR.cxx:17
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
HiveAlgR::m_wrh1
SG::WriteHandleKey< HiveDataObj > m_wrh1
Definition: HiveAlgR.h:43
AthReentrantAlgorithm.h
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
HiveAlgR::m_evt
SG::ReadHandleKey< xAOD::EventInfo > m_evt
Definition: HiveAlgR.h:41
EventInfo.h
HiveAlgR::finalize
virtual StatusCode finalize() override
Definition: HiveAlgR.cxx:28