ATLAS Offline Software
HiveAlgG.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_ALGG_H
12 #define ATHEXHIVE_ALGG_H 1
13 
14 #include "HiveAlgBase.h"
17 #include "AthExHive/HiveDataObj.h"
18 
19 #include <string>
20 
21 class HiveAlgG : public HiveAlgBase {
22 
23 public:
24 
25  // Standard Algorithm Constructor:
26 
27  HiveAlgG (const std::string& name, ISvcLocator* pSvcLocator);
28  ~HiveAlgG();
29 
30  // Define the initialize, execute and finalize methods:
31 
32  virtual StatusCode initialize() override;
33  virtual StatusCode execute() override;
34  virtual StatusCode finalize() override;
35 
36 private:
37 
38  // By default this DataHandle is created by HiveAlgD
39  SG::ReadHandleKey<HiveDataObj> m_rdh1 {this, "Key_R1", "d1", "Read key 1"};
40 
41  SG::WriteHandleKey<HiveDataObj> m_wrh1 {this, "Key_W1", "g1", "Write key 1"};
42 
43 };
44 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
HiveAlgG::m_rdh1
SG::ReadHandleKey< HiveDataObj > m_rdh1
Definition: HiveAlgG.h:39
HiveDataObj.h
SG::ReadHandleKey< HiveDataObj >
HiveAlgG::execute
virtual StatusCode execute() override
Definition: HiveAlgG.cxx:34
HiveAlgG::m_wrh1
SG::WriteHandleKey< HiveDataObj > m_wrh1
Definition: HiveAlgG.h:41
HiveAlgG::HiveAlgG
HiveAlgG(const std::string &name, ISvcLocator *pSvcLocator)
Definition: HiveAlgG.cxx:7
SG::WriteHandleKey< HiveDataObj >
HiveAlgG::initialize
virtual StatusCode initialize() override
Definition: HiveAlgG.cxx:17
HiveAlgG::finalize
virtual StatusCode finalize() override
Definition: HiveAlgG.cxx:28
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
HiveAlgBase
Definition: HiveAlgBase.h:26
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
HiveAlgG
Definition: HiveAlgG.h:21
HiveAlgG::~HiveAlgG
~HiveAlgG()
Definition: HiveAlgG.cxx:14
HiveAlgBase.h
Base class for AthExHive example Algs to provide functionality to sleep for a certain amount of time,...