ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
AthenaExamples
AthExStoreGateExample
src
WriteDataReentrant.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
7
// $Id$
14
15
16
#ifndef ATHEXSTOREGATEEXAMPLE_WRITEDATAREENTRANT_H
17
#define ATHEXSTOREGATEEXAMPLE_WRITEDATAREENTRANT_H
18
19
20
#include <string>
21
#include "
AthExStoreGateExample/MyDataObj.h
"
22
#include "
StoreGateExample_ClassDEF.h
"
23
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
24
#include "
StoreGate/WriteHandleKey.h
"
25
#include "
StoreGate/WriteHandleKeyArray.h
"
26
27
28
class
WriteDataReentrant
29
:
public
AthReentrantAlgorithm
30
{
31
public
:
32
using
AthReentrantAlgorithm::AthReentrantAlgorithm;
33
virtual
StatusCode
initialize
()
override
final
;
34
virtual
StatusCode
execute
(
const
EventContext& ctx)
const
override
final
;
35
36
private
:
37
SG::WriteHandleKey<MyDataObj>
m_dobjKey
{
this
,
"DObjKey"
,
"dobj"
};
38
SG::WriteHandleKey<MyDataObj>
m_dobjKey2
{
this
,
"DObjKey2"
,
"dobj2"
};
39
SG::WriteHandleKey<MyDataObj>
m_dobjKey3
{
this
,
"DObjKey3"
,
""
};
40
SG::WriteHandleKey<DataVector<MyContObj>
>
m_cobjKey
{
this
,
"CObjKey"
,
"cobj"
};
41
SG::WriteHandleKey<std::vector<float>
>
m_vFloatKey
{
this
,
"VFloatKey"
,
"vFloat"
};
42
SG::WriteHandleKey<MapStringFloat>
m_mKey
{
this
,
"MKey"
,
"mkey"
};
43
SG::WriteHandleKey<std::list<ElementLink<std::vector<float>
>>>
m_pLinkListKey
{
this
,
"PLinkListKey"
,
""
};
44
SG::WriteHandleKey<std::vector<ElementLink<MapStringFloat>
>>
m_linkVectorKey
{
this
,
"LinkVectorKey"
,
"linkvec"
};
45
SG::WriteHandleKey<TestDataObject>
m_testObjectKey
{
this
,
"TestObjectKey"
,
"testobj"
};
46
47
SG::WriteHandleKeyArray<MyDataObj>
m_dobjKeyArray
{
this
,
"DObjKeyArray"
, {
"dobj_a1"
,
"dobj_a2"
}};
48
49
SG::DataObjectSharedPtr<TestDataObject>
m_testObject
;
50
StatusCode
onError
()
const
;
51
};
52
53
54
#endif
// not ATHEXSTOREGATEEXAMPLE_WRITEDATAREENTRANT_H
AthReentrantAlgorithm.h
MyDataObj.h
StoreGateExample_ClassDEF.h
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
WriteHandleKeyArray.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
WriteDataReentrant
Definition
WriteDataReentrant.h:30
WriteDataReentrant::execute
virtual StatusCode execute(const EventContext &ctx) const override final
Definition
WriteDataReentrant.cxx:63
WriteDataReentrant::m_cobjKey
SG::WriteHandleKey< DataVector< MyContObj > > m_cobjKey
Definition
WriteDataReentrant.h:40
WriteDataReentrant::m_dobjKeyArray
SG::WriteHandleKeyArray< MyDataObj > m_dobjKeyArray
Definition
WriteDataReentrant.h:47
WriteDataReentrant::m_linkVectorKey
SG::WriteHandleKey< std::vector< ElementLink< MapStringFloat > > > m_linkVectorKey
Definition
WriteDataReentrant.h:44
WriteDataReentrant::m_vFloatKey
SG::WriteHandleKey< std::vector< float > > m_vFloatKey
Definition
WriteDataReentrant.h:41
WriteDataReentrant::m_testObjectKey
SG::WriteHandleKey< TestDataObject > m_testObjectKey
Definition
WriteDataReentrant.h:45
WriteDataReentrant::m_pLinkListKey
SG::WriteHandleKey< std::list< ElementLink< std::vector< float > > > > m_pLinkListKey
Definition
WriteDataReentrant.h:43
WriteDataReentrant::m_testObject
SG::DataObjectSharedPtr< TestDataObject > m_testObject
Definition
WriteDataReentrant.h:49
WriteDataReentrant::m_dobjKey2
SG::WriteHandleKey< MyDataObj > m_dobjKey2
Definition
WriteDataReentrant.h:38
WriteDataReentrant::initialize
virtual StatusCode initialize() override final
Definition
WriteDataReentrant.cxx:35
WriteDataReentrant::m_dobjKey3
SG::WriteHandleKey< MyDataObj > m_dobjKey3
Definition
WriteDataReentrant.h:39
WriteDataReentrant::m_dobjKey
SG::WriteHandleKey< MyDataObj > m_dobjKey
Definition
WriteDataReentrant.h:37
WriteDataReentrant::onError
StatusCode onError() const
Definition
WriteDataReentrant.cxx:267
WriteDataReentrant::m_mKey
SG::WriteHandleKey< MapStringFloat > m_mKey
Definition
WriteDataReentrant.h:42
SG::DataObjectSharedPtr
CxxUtils::RefCountedPtr< T > DataObjectSharedPtr
Definition
DataObjectSharedPtr.h:27
SG::WriteHandleKeyArray
HandleKeyArray< WriteHandle< T >, WriteHandleKey< T >, Gaudi::DataHandle::Writer > WriteHandleKeyArray
Definition
WriteHandleKeyArray.h:32
Generated on
for ATLAS Offline Software by
1.17.0