ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
AthenaExamples
AthExStoreGateExample
src
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>
22
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
23
#include "
AthExStoreGateExample/MyDataObj.h
"
24
#include "
StoreGate/ReadHandleKey.h
"
25
#include "
xAODEventInfo/EventInfo.h
"
26
27
class
ReadDataReentrant
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
:
37
SG::ReadHandleKey<DataVector<MyContObj>
>
m_cobjKey
{
this
,
"CObjKey"
,
"cobj"
};
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"
};
40
SG::ReadHandleKey<std::vector<ElementLink<MapStringFloat>
>>
m_linkVectorKey
{
this
,
"LinkVectorKey"
,
"linkvec"
};
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
AthReentrantAlgorithm.h
MapStringFloat.h
MyContObj.h
MyDataObj.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
ReadDataReentrant
Definition
ReadDataReentrant.h:29
ReadDataReentrant::m_linkVectorKey
SG::ReadHandleKey< std::vector< ElementLink< MapStringFloat > > > m_linkVectorKey
Definition
ReadDataReentrant.h:40
ReadDataReentrant::m_vFloatKey
SG::ReadHandleKey< std::vector< float > > m_vFloatKey
Definition
ReadDataReentrant.h:38
ReadDataReentrant::m_pLinkListKey
SG::ReadHandleKey< std::list< ElementLink< std::vector< float > > > > m_pLinkListKey
Definition
ReadDataReentrant.h:39
ReadDataReentrant::m_cobjKey
SG::ReadHandleKey< DataVector< MyContObj > > m_cobjKey
Definition
ReadDataReentrant.h:37
ReadDataReentrant::execute
virtual StatusCode execute(const EventContext &ctx) const override final
Definition
ReadDataReentrant.cxx:50
ReadDataReentrant::m_dobjKeyArray
SG::ReadHandleKeyArray< MyDataObj > m_dobjKeyArray
Definition
ReadDataReentrant.h:43
ReadDataReentrant::initialize
virtual StatusCode initialize() override final
Definition
ReadDataReentrant.cxx:30
ReadDataReentrant::m_nonexistingKey
SG::ReadHandleKey< MyDataObj > m_nonexistingKey
Definition
ReadDataReentrant.h:44
ReadDataReentrant::m_testObjectKey
SG::ReadHandleKey< TestDataObject > m_testObjectKey
Definition
ReadDataReentrant.h:41
ReadDataReentrant::m_eventInfo
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfo
Definition
ReadDataReentrant.h:42
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::ReadHandleKeyArray
HandleKeyArray< ReadHandle< T >, ReadHandleKey< T >, Gaudi::DataHandle::Reader > ReadHandleKeyArray
Definition
StoreGate/StoreGate/ReadHandleKeyArray.h:32
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0