ATLAS Offline Software
AlgT.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_ALGT_H
6 #define CONDALGS_ALGT_H 1
7 
11 #include "AthExHive/HiveDataObj.h"
12 #include "AthExHive/IHiveTool.h"
13 
15 
16 #include "GaudiKernel/ToolHandle.h"
17 
18 #include <string>
19 
20 class AlgT : public AthAlgorithm {
21 
22 public:
23 
24  AlgT (const std::string& name, ISvcLocator* pSvcLocator);
25  virtual ~AlgT ();
26 
27  virtual bool isClonable() const override { return true; }
28 
29  virtual StatusCode initialize() override;
30  virtual StatusCode execute() override;
31  virtual StatusCode finalize() override;
32 
33 private:
34 
35  SG::ReadHandleKey<xAOD::EventInfo> m_evt{this, "EvtInfo", "EventInfo", "EventInfo name"};
36  SG::ReadHandleKey<HiveDataObj> m_rdh1{this,"Key_R1","","read key"};
37  SG::WriteHandleKey<HiveDataObj> m_wrh1{this,"Key_W1","t1","write key"};
38 
39 
40  ToolHandle<IHiveTool> m_tool1{this, "Tool1", "HiveTool", "tool 1"};
41  ToolHandle<IHiveTool> m_tool2{this, "Tool2", "HiveTool", "tool 2"};
42  ToolHandle<IHiveTool> m_tool3{this, "Tool3", "HiveTool", "tool 3"};
43 
44 };
45 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
IHiveTool.h
HiveDataObj.h
SG::ReadHandleKey< xAOD::EventInfo >
AlgT::initialize
virtual StatusCode initialize() override
Definition: AlgT.cxx:25
AlgT::finalize
virtual StatusCode finalize() override
Definition: AlgT.cxx:67
AthAlgorithm.h
SG::WriteHandleKey< HiveDataObj >
AlgT::m_tool3
ToolHandle< IHiveTool > m_tool3
Definition: AlgT.h:42
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AlgT::m_rdh1
SG::ReadHandleKey< HiveDataObj > m_rdh1
Definition: AlgT.h:36
AlgT
Definition: AlgT.h:20
AlgT::m_wrh1
SG::WriteHandleKey< HiveDataObj > m_wrh1
Definition: AlgT.h:37
AlgT::~AlgT
virtual ~AlgT()
Definition: AlgT.cxx:23
AthAlgorithm
Definition: AthAlgorithm.h:47
AlgT::AlgT
AlgT(const std::string &name, ISvcLocator *pSvcLocator)
Definition: AlgT.cxx:16
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
AlgT::m_tool1
ToolHandle< IHiveTool > m_tool1
Definition: AlgT.h:40
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
AlgT::execute
virtual StatusCode execute() override
Definition: AlgT.cxx:74
EventInfo.h
AlgT::isClonable
virtual bool isClonable() const override
Definition: AlgT.h:27
AlgT::m_evt
SG::ReadHandleKey< xAOD::EventInfo > m_evt
Definition: AlgT.h:35
AlgT::m_tool2
ToolHandle< IHiveTool > m_tool2
Definition: AlgT.h:41