ATLAS Offline Software
Loading...
Searching...
No Matches
HiveAlgR.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
10
11
12#ifndef ATHEXHIVE_HIVEALGR_H
13#define ATHEXHIVE_HIVEALGR_H 1
14
16
21
22// to make an Algorithm Re-entrant, you must inherit from AthReentrantAlgorithm
24
25public:
26
27 // Standard Algorithm Constructor:
28
29 HiveAlgR (const std::string& name, ISvcLocator* pSvcLocator);
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
39private:
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
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
An algorithm that can be simultaneously executed in multiple threads.
SG::ReadHandleKey< xAOD::EventInfo > m_evt
Definition HiveAlgR.h:41
virtual StatusCode finalize() override
Definition HiveAlgR.cxx:28
HiveAlgR(const std::string &name, ISvcLocator *pSvcLocator)
Definition HiveAlgR.cxx:8
virtual StatusCode execute(const EventContext &) const override
Definition HiveAlgR.cxx:34
SG::WriteHandleKey< HiveDataObj > m_wrh1
Definition HiveAlgR.h:43
virtual StatusCode initialize() override
Definition HiveAlgR.cxx:17
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.