Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 
15 #ifndef ATHEXSTOREGATEEXAMPLE_READDATAREENTRANT_H
16 #define ATHEXSTOREGATEEXAMPLE_READDATAREENTRANT_H
17 
18 #include "MyContObj.h"
19 #include "MapStringFloat.h"
20 
21 #include <string>
26 
28  : public AthReentrantAlgorithm
29 {
30 public:
31  using AthReentrantAlgorithm::AthReentrantAlgorithm;
32 
33  virtual StatusCode initialize() override final;
34  virtual StatusCode execute (const EventContext& ctx) const override final;
35 
36 private:
38  SG::ReadHandleKey<std::vector<float>> m_vFloatKey{this, "VFloatKey", "vFloat"};
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
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
ReadDataReentrant::m_pLinkListKey
SG::ReadHandleKey< std::list< ElementLink< std::vector< float > > > > m_pLinkListKey
Definition: ReadDataReentrant.h:39
MyContObj.h
ReadDataReentrant::m_eventInfo
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfo
Definition: ReadDataReentrant.h:42
ReadDataReentrant::m_dobjKeyArray
SG::ReadHandleKeyArray< MyDataObj > m_dobjKeyArray
Definition: ReadDataReentrant.h:43
SG::HandleKeyArray
Definition: StoreGate/StoreGate/HandleKeyArray.h:38
ReadDataReentrant
Definition: ReadDataReentrant.h:29
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
ReadDataReentrant::m_vFloatKey
SG::ReadHandleKey< std::vector< float > > m_vFloatKey
Definition: ReadDataReentrant.h:38
ReadDataReentrant::m_linkVectorKey
SG::ReadHandleKey< std::vector< ElementLink< MapStringFloat > > > m_linkVectorKey
Definition: ReadDataReentrant.h:40
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:74
ReadDataReentrant::m_cobjKey
SG::ReadHandleKey< DataVector< MyContObj > > m_cobjKey
Definition: ReadDataReentrant.h:37
MapStringFloat.h
ReadDataReentrant::initialize
virtual StatusCode initialize() override final
Definition: ReadDataReentrant.cxx:30
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
MyDataObj.h
ReadDataReentrant::m_nonexistingKey
SG::ReadHandleKey< MyDataObj > m_nonexistingKey
Definition: ReadDataReentrant.h:44
AthReentrantAlgorithm.h
ReadDataReentrant::m_testObjectKey
SG::ReadHandleKey< TestDataObject > m_testObjectKey
Definition: ReadDataReentrant.h:41
EventInfo.h
ReadDataReentrant::execute
virtual StatusCode execute(const EventContext &ctx) const override final
Definition: ReadDataReentrant.cxx:50