ATLAS Offline Software
Loading...
Searching...
No Matches
ReadDataReentrant.h
Go to the documentation of this file.
1// This file's extension implies that it's C, but it's really -*- C++ -*-.
2
3/*
4 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
5*/
6
13
14
15#ifndef ATHEXSTOREGATEEXAMPLE_READDATAREENTRANT_H
16#define ATHEXSTOREGATEEXAMPLE_READDATAREENTRANT_H
17
18#include "MyContObj.h"
19#include "MapStringFloat.h"
20
21#include <string>
26
29{
30public:
31 using AthReentrantAlgorithm::AthReentrantAlgorithm;
32
33 virtual StatusCode initialize() override final;
34 virtual StatusCode execute (const EventContext& ctx) const override final;
35
36private:
39 SG::ReadHandleKey<std::list<ElementLink<std::vector<float>>>> m_pLinkListKey{this, "PLinkListKey", "WriteDataReentrant"};
41 SG::ReadHandleKey<TestDataObject> m_testObjectKey{this, "TestObjectKey", "testobj"};
42 SG::ReadHandleKey<xAOD::EventInfo> m_eventInfo{this, "EvtInfo", "EventInfo", "EventInfo name"};
43 SG::ReadHandleKeyArray<MyDataObj> m_dobjKeyArray{this, "DObjKeyArray", {"dobj_a1", "dobj_a2"}};
44 SG::ReadHandleKey<MyDataObj> m_nonexistingKey{this, "NonExistingKey", "foo"};
45};
46
47
48#endif // not ATHEXSTOREGATEEXAMPLE_READDATAREENTRANT_H
Property holding a SG store/key/clid from which a ReadHandle is made.
An algorithm that can be simultaneously executed in multiple threads.
SG::ReadHandleKey< std::vector< ElementLink< MapStringFloat > > > m_linkVectorKey
SG::ReadHandleKey< std::vector< float > > m_vFloatKey
SG::ReadHandleKey< std::list< ElementLink< std::vector< float > > > > m_pLinkListKey
SG::ReadHandleKey< DataVector< MyContObj > > m_cobjKey
virtual StatusCode execute(const EventContext &ctx) const override final
SG::ReadHandleKeyArray< MyDataObj > m_dobjKeyArray
virtual StatusCode initialize() override final
SG::ReadHandleKey< MyDataObj > m_nonexistingKey
SG::ReadHandleKey< TestDataObject > m_testObjectKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfo
Property holding a SG store/key/clid from which a ReadHandle is made.
HandleKeyArray< ReadHandle< T >, ReadHandleKey< T >, Gaudi::DataHandle::Reader > ReadHandleKeyArray