ATLAS Offline Software
Loading...
Searching...
No Matches
WriteDataReentrant Class Reference

#include <WriteDataReentrant.h>

Inheritance diagram for WriteDataReentrant:

Public Member Functions

virtual StatusCode initialize () override final
virtual StatusCode execute (const EventContext &ctx) const override final
virtual StatusCode sysInitialize () override
 Override sysInitialize.
virtual bool isClonable () const override
 Specify if the algorithm is clonable.
virtual unsigned int cardinality () const override
 Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.
virtual StatusCode sysExecute (const EventContext &ctx) override
 Execute an algorithm.
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies.
virtual bool filterPassed (const EventContext &ctx) const
virtual void setFilterPassed (bool state, const EventContext &ctx) const
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysStart () override
 Handle START transition.
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles.
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles.
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
void updateVHKA (Gaudi::Details::PropertyBase &)
MsgStream & msg () const
bool msgLvl (const MSG::Level lvl) const

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed.

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t

Private Member Functions

StatusCode onError () const
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

SG::WriteHandleKey< MyDataObjm_dobjKey {this, "DObjKey", "dobj"}
SG::WriteHandleKey< MyDataObjm_dobjKey2 {this, "DObjKey2", "dobj2"}
SG::WriteHandleKey< MyDataObjm_dobjKey3 {this, "DObjKey3", ""}
SG::WriteHandleKey< DataVector< MyContObj > > m_cobjKey {this, "CObjKey", "cobj"}
SG::WriteHandleKey< std::vector< float > > m_vFloatKey {this, "VFloatKey", "vFloat"}
SG::WriteHandleKey< MapStringFloatm_mKey {this, "MKey", "mkey"}
SG::WriteHandleKey< std::list< ElementLink< std::vector< float > > > > m_pLinkListKey {this,"PLinkListKey", ""}
SG::WriteHandleKey< std::vector< ElementLink< MapStringFloat > > > m_linkVectorKey {this, "LinkVectorKey", "linkvec"}
SG::WriteHandleKey< TestDataObjectm_testObjectKey {this, "TestObjectKey", "testobj"}
SG::WriteHandleKeyArray< MyDataObjm_dobjKeyArray {this, "DObjKeyArray", {"dobj_a1", "dobj_a2"}}
SG::DataObjectSharedPtr< TestDataObjectm_testObject
DataObjIDColl m_extendedExtraObjects
 Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default)
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
bool m_varHandleArraysDeclared

Detailed Description

Definition at line 28 of file WriteDataReentrant.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Member Function Documentation

◆ cardinality()

unsigned int AthCommonReentrantAlgorithm< Gaudi::Algorithm >::cardinality ( ) const
overridevirtualinherited

Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.

Override this to return 0 for reentrant algorithms.

Definition at line 75 of file AthCommonReentrantAlgorithm.cxx.

64{
65 return 0;
66}

◆ declareGaudiProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareGaudiProperty ( Gaudi::Property< T, V, H > & hndl,
const SG::VarHandleKeyType &  )
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158 {
160 hndl.value(),
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)

◆ declareProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( Gaudi::Property< T, V, H > & t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145 {
146 typedef typename SG::HandleClassifier<T>::type htype;
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>

◆ detStore()

const ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

◆ evtStore()

ServiceHandle< StoreGateSvc > & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

◆ execute()

StatusCode WriteDataReentrant::execute ( const EventContext & ctx) const
finaloverridevirtual

Definition at line 63 of file WriteDataReentrant.cxx.

64{
65 //this example illustrates how to record objects into the StoreGate(SG)
66 //with and without providing a key
67 //It then covers the new DataLink class and its usage as a persistable
68 //reference among objects in the SG
69 //Finally it shows how to use symlinks to record an object using its
70 //concrete type and its base class(es).
71
72 ATH_MSG_INFO ("in execute()");
73
74 // For algorithms that produce new data objects like this one
75 // the SG works like a bulletin board: the algorithm posts the
76 // new object to the SG (optionally providing a "name" for it).
77 // The SG assigns a unique identifier to the object and puts it on display
78 // alongside others of the same type.
79 // At preset intervals all objects are removed from the board to make room
80 // for new ones and filed.
81
82 // Part 1: Recording objects to SG
83 SG::WriteHandle<MyDataObj> dobj (m_dobjKey, ctx);
84 dobj = std::make_unique<MyDataObj>(1);
85
86 //now we create a second MyDataObj instance...
87 //...try to record it as we did for the first. Since dobj2 is also a
88 //MyDataObj we expect to see an error
89 ATH_MSG_WARNING ("we expect an error message here");
90 EXPECT_EXCEPTION (std::runtime_error,
91 dobj = std::make_unique<MyDataObj>(2));
92 ATH_MSG_WARNING ("end of error message");
93
94 //here we go again...
95 //... but this time we register the dobj3 using this algo name as key
96 auto dobj3 = SG::makeHandle (m_dobjKey3, ctx);
97 dobj3 = std::make_unique<MyDataObj>(3);
98
99 SG::WriteHandle<TestDataObject> testobj (m_testObjectKey, ctx);
100 if (m_testObject->refCount() != 1) std::abort();
101 ATH_CHECK( testobj.record (m_testObject) );
102 if (m_testObject->refCount() != 2) std::abort();
103
104 // Writing an array of objects.
105 size_t i = 0;
106 for (const SG::WriteHandleKey<MyDataObj>& k : m_dobjKeyArray) {
107 SG::WriteHandle<MyDataObj> h (k, ctx);
108 ATH_CHECK( h.record (std::make_unique<MyDataObj> (i+100)) );
109 ++i;
110 }
111
113
114 // Part 2: storing collections in the SG
115
116 SG::WriteHandle<DataVector<MyContObj> > cobj (m_cobjKey, ctx);
117 ATH_CHECK( cobj.record (std::make_unique<DataVector<MyContObj> >()) );
118 cobj->reserve(10);
119 cobj->push_back (std::make_unique<MyContObj> (11.3, 132));
120 cobj->push_back (std::make_unique<MyContObj> (41.7, 291));
121
122 // as above with a vector of integers
123 SG::WriteHandle<std::vector<float> > vFloat (m_vFloatKey, ctx);
124 vFloat = std::make_unique<std::vector<float> >();
125 vFloat->push_back(1.0);
126 vFloat->push_back(2.0);
127 vFloat->push_back(3.0);
128
129 SG::WriteHandle<MapStringFloat> m (m_mKey, ctx);
130 ATH_CHECK( m.record (std::make_unique<MapStringFloat>()) );
131 (*m)["uno"]=1.0;
132 (*m)["due"]=2.0;
133
135 //
136 // Part 3: Data Links
137 //
138 // Data links are persistable references. Typically they will replace
139 // pointers from one object in the event to another, hence they have
140 // the usual "pointer" syntax (op *, op ->, op !, ...)
141 // (to be pedantic they have the moniker syntax as they don't define ++, --)
142 // For example in Atlfast::Cell
143 // class Cell {
144 // ...
145 // private:
146 // std::vector<const HepMC::Particle*> m_particles;
147 // };
148 // m_particles would become
149 // std::vector<HepMCLink<Particle>::type > m_particles;
150 //
151 // To understand data links it is important to observe that the SG
152 // is not able to identify every single object in the event.
153 // In particular individual elements of a container (the MyContObj
154 // in the vector above or the Particles in McEventCollection) are not
155 // recorded individually into SG, only their owner (the container) is.
156 // For this reason data links are supported by two class templates:
157 // DataLink<DATAOBJ> is a link to a data object i.e. an object
158 // identified by SG
159 // ElementLink<CONTAINER> is a link to an element of a container (which
160 // in turn is a SG data object)
161 // To make a DataLink persistable we need to provide its SG identifier
162 // (its type and key).
163 // To make an ElementLink persistable we need two pieces of information:
164 // i) the SG identifier (type/key) of the data object owning the element
165 // ii) the identifier of the contained object within the owner
166 // For example when we write out a link to the third element of
167 // our vector<float> we want to write the SG id of the vector
168 // and the index (2) of the element in the vector
169 //
170 // Since the indexing mechanism of a container depends on the container
171 // type we need to specialize ElementLink for different containers
172 // Elements of STL sequences (lists, vectors, deques but also DataVector
173 // and DataList) are dealt with automatically.
174 // For other STL or STL-like containers, the data object designer (or the
175 // client must "help" ElementLink identifying the type of container
176 // Three macros in the header StoreGate/DeclareIndexingPolicy.h
177 // are provided to this end:
178 // for sequences use CONTAINER_IS_SEQUENCE( MySequence )
179 // for sets use CONTAINER_IS_SET( MySet )
180 // for maps and related containers use CONTAINER_IS_MAP( MyMap )
181 //
182 // It is also possible to define custom specializations of ElementLink
183 // for custom containers (e.g. GenParticleLink for McEventCollection).
184 //
185 //Enough! Let's now create our first DataLink. It refers to the first
186 // MyDataObj we recorded. DataLink constructors use references
187 // as input arguments
188 //
189 // DataLink referring to a storable object
190 //
191 DataLink<MyDataObj> dobjLink(*dobj);
192 //since dobj is identifiable in the SG a reference to it is all we need
193
194 SG::WriteHandle<MyDataObj> dobj2 (m_dobjKey2, ctx);
195 dobj2 = std::make_unique<MyDataObj> (2);
196
197 //Otherwise one could first create an empty link
198 DataLink<MyDataObj> dobjLink2;
199 //and later on set it to refer to its target
200 dobjLink2.toStorableObject(*dobj2);
201
202
203 // Added Aug 30, 2001 HMA
204 // DataLink made from a key. This should work for either an object
205 // already registered in the store, or an object that has a
206 // persistency for it. we use dobj3, which is an object registered with
207 // a key.
208
209 DataLink<MyDataObj> dobjLink3(name());
210 // now access it. DataLink will do a retrieve to get it from the store.
211 (void)dobjLink3.cptr();
212
213 //
214 // ElementLinks referring to contained objects
215 //
216 typedef ElementLink<std::vector<float> > VecElemLink;
217
218
219 VecElemLink thirdElementLink(*vFloat, 2); //THIS CRASHES SUN CC
220
221 //sometimes we would not know the index of the element we want to refer to
222
223 //reference to an element of the vector
224 float& anElement = vFloat->operator[](0);
225
226 //starting from an empty link
227 VecElemLink aLink;
228 //we can refer it to its target without knowing its index
229 aLink.toContainedElement(*vFloat, anElement);
230 //it is better though to remember that toContainedElement for an
231 //ElementLink performs a linear search of "anElement" into "vFloat".
232 // If vFloat has a million elements think twice before using
233 // toContainedElement!
234
235 SG::WriteHandle<std::list<VecElemLink> > pLinkList (m_pLinkListKey, ctx);
236 pLinkList = std::make_unique<std::list<VecElemLink> >();
237 pLinkList->push_back(aLink);
238 pLinkList->push_back(thirdElementLink);
239
240 //
241 // Part 3b: create a vector of links to the elements of the map above
242 //
243 typedef ElementLink<MapStringFloat> MapElemLink;
244 SG::WriteHandle<std::vector<MapElemLink> > linkVector (m_linkVectorKey, ctx);
245 linkVector = std::make_unique<std::vector<MapElemLink> >();
246 linkVector->push_back(MapElemLink(*m, "uno"));
247 MapElemLink mLink;
248 mLink.toContainedElement(*m, (*m)["due"]);
249 linkVector->push_back(mLink);
250
251 // Part 4
252 // make a link to dobj as its base class after it has been registered
253 // this allows later to retrieve different concrete types as a common ABC
254
255 const BaseClass * pDO = 0;
256 if ( (evtStore()->symLink(dobj.cptr(), pDO)).isFailure() ) {
257 ATH_MSG_ERROR (" could not make link to BaseClass");
258 return( onError() );
259 }
260
261 // make a link as its base class, with the same name
262 if ( ( evtStore()->symLink(dobj3.cptr(), pDO)).isFailure() ) {
263 ATH_MSG_ERROR (" could not make link to BaseClass");
264 return( onError() );
265 }
266
267 // Part 5
268 // finally dump the structure of the StoreGate before returning
269 ATH_MSG_INFO (" registered all data objects");
270 ATH_MSG_INFO (" StoreGate structure before returning from execute \n"
271 << evtStore()->dump());
272
273 return StatusCode::SUCCESS;
274}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_ERROR(x)
#define ATH_MSG_INFO(x)
#define ATH_MSG_WARNING(x)
SG::WriteHandleKey< DataVector< MyContObj > > m_cobjKey
SG::WriteHandleKeyArray< MyDataObj > m_dobjKeyArray
SG::WriteHandleKey< std::vector< ElementLink< MapStringFloat > > > m_linkVectorKey
SG::WriteHandleKey< std::vector< float > > m_vFloatKey
SG::WriteHandleKey< TestDataObject > m_testObjectKey
SG::WriteHandleKey< std::list< ElementLink< std::vector< float > > > > m_pLinkListKey
SG::DataObjectSharedPtr< TestDataObject > m_testObject
SG::WriteHandleKey< MyDataObj > m_dobjKey2
SG::WriteHandleKey< MyDataObj > m_dobjKey3
SG::WriteHandleKey< MyDataObj > m_dobjKey
StatusCode onError() const
SG::WriteHandleKey< MapStringFloat > m_mKey
#define EXPECT_EXCEPTION(EXC, CODE)
Helper to check that an exception is thrown.
std::ostream & dump(std::ostream &out, const I4MomIter iBeg, const I4MomIter iEnd)
Helper to stream out a range of I4Momentum objects.
Definition P4Dumper.h:24
RoIThresholdsTool< xAOD::MuonRoI, xAOD::MuonRoIContainer, ContainerName, ThresholdType > BaseClass
SG::ReadCondHandle< T > makeHandle(const SG::ReadCondHandleKey< T > &key, const EventContext &ctx=Gaudi::Hive::currentContext())

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase & ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ extraOutputDeps()

const DataObjIDColl & AthCommonReentrantAlgorithm< Gaudi::Algorithm >::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

This list is extended to include symlinks implied by inheritance relations.

Definition at line 94 of file AthCommonReentrantAlgorithm.cxx.

90{
91 // If we didn't find any symlinks to add, just return the collection
92 // from the base class. Otherwise, return the extended collection.
93 if (!m_extendedExtraObjects.empty()) {
95 }
97}
An algorithm that can be simultaneously executed in multiple threads.

◆ filterPassed()

virtual bool AthCommonReentrantAlgorithm< Gaudi::Algorithm >::filterPassed ( const EventContext & ctx) const
inlinevirtualinherited

Definition at line 96 of file AthCommonReentrantAlgorithm.h.

96 {
97 return execState( ctx ).filterPassed();
98 }
virtual bool filterPassed(const EventContext &ctx) const

◆ initialize()

StatusCode WriteDataReentrant::initialize ( )
finaloverridevirtual

Definition at line 35 of file WriteDataReentrant.cxx.

36{
38
39 // If user did not set a key, use our own name. This cannot be done in the
40 // constructor as "DefaultName" is used during configurable generation (genconf).
41 if (m_dobjKey3.empty()) m_dobjKey3 = name();
42 if (m_pLinkListKey.empty()) m_pLinkListKey = name();
43
44 ATH_MSG_INFO ("in initialize()");
45 ATH_CHECK( m_dobjKey.initialize() );
46 ATH_CHECK( m_dobjKey2.initialize() );
47 ATH_CHECK( m_dobjKey3.initialize() );
48 ATH_CHECK( m_cobjKey.initialize() );
49 ATH_CHECK( m_vFloatKey.initialize() );
50 ATH_CHECK( m_pLinkListKey.initialize() );
51 ATH_CHECK( m_mKey.initialize() );
52 ATH_CHECK( m_linkVectorKey.initialize() );
53 ATH_CHECK( m_testObjectKey.initialize() );
54 ATH_CHECK( m_dobjKeyArray.initialize() );
55
57 SG::DataObjectSharedPtr<TestDataObject> (new TestDataObject(10));
58 return StatusCode::SUCCESS;
59}
static void hideErrorLocus(bool flag=true)
If set to true, hide the source file and line number in the output.
CxxUtils::RefCountedPtr< T > DataObjectSharedPtr

◆ inputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::inputHandles ( ) const
overridevirtualinherited

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ isClonable()

◆ msg()

MsgStream & AthCommonMsg< Gaudi::Algorithm >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24 {
25 return this->msgStream();
26 }

◆ msgLvl()

bool AthCommonMsg< Gaudi::Algorithm >::msgLvl ( const MSG::Level lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30 {
31 return this->msgLevel(lvl);
32 }

◆ onError()

StatusCode WriteDataReentrant::onError ( ) const
private

Definition at line 278 of file WriteDataReentrant.cxx.

279{
280 ATH_MSG_ERROR ("Dumping StoreGate after error occurred\n"
281 << evtStore()->dump());
282 return StatusCode::FAILURE;
283}

◆ outputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::outputHandles ( ) const
overridevirtualinherited

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ renounce()

std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounce ( T & h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381 {
382 h.renounce();
384 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364 {
366 }

◆ setFilterPassed()

virtual void AthCommonReentrantAlgorithm< Gaudi::Algorithm >::setFilterPassed ( bool state,
const EventContext & ctx ) const
inlinevirtualinherited

Definition at line 100 of file AthCommonReentrantAlgorithm.h.

100 {
102 }
virtual void setFilterPassed(bool state, const EventContext &ctx) const

◆ sysExecute()

StatusCode AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysExecute ( const EventContext & ctx)
overridevirtualinherited

Execute an algorithm.

We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.

Definition at line 85 of file AthCommonReentrantAlgorithm.cxx.

77{
78 return BaseAlg::sysExecute (ctx);
79}

◆ sysInitialize()

StatusCode AthCommonReentrantAlgorithm< Gaudi::Algorithm >::sysInitialize ( )
overridevirtualinherited

Override sysInitialize.

Override sysInitialize from the base class.

Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc

Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc

Reimplemented from AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >.

Reimplemented in HypoBase, and InputMakerBase.

Definition at line 61 of file AthCommonReentrantAlgorithm.cxx.

107 {
109
110 if (sc.isFailure()) {
111 return sc;
112 }
113
114 ServiceHandle<ICondSvc> cs("CondSvc",name());
115 for (auto h : outputHandles()) {
116 if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
117 // do this inside the loop so we don't create the CondSvc until needed
118 if ( cs.retrieve().isFailure() ) {
119 ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
120 return StatusCode::SUCCESS;
121 }
122 if (cs->regHandle(this,*h).isFailure()) {
124 ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
125 << " with CondSvc");
126 }
127 }
128 }
129 return sc;
130}
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::updateVHKA ( Gaudi::Details::PropertyBase & )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308 {
309 // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310 // << " size: " << m_vhka.size() << endmsg;
311 for (auto &a : m_vhka) {
313 for (auto k : keys) {
314 k->setOwner(this);
315 }
316 }
317 }

Member Data Documentation

◆ m_cobjKey

SG::WriteHandleKey<DataVector<MyContObj> > WriteDataReentrant::m_cobjKey {this, "CObjKey", "cobj"}
private

Definition at line 40 of file WriteDataReentrant.h.

40{this, "CObjKey", "cobj"};

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_dobjKey

SG::WriteHandleKey<MyDataObj> WriteDataReentrant::m_dobjKey {this, "DObjKey", "dobj"}
private

Definition at line 37 of file WriteDataReentrant.h.

37{this, "DObjKey", "dobj"};

◆ m_dobjKey2

SG::WriteHandleKey<MyDataObj> WriteDataReentrant::m_dobjKey2 {this, "DObjKey2", "dobj2"}
private

Definition at line 38 of file WriteDataReentrant.h.

38{this, "DObjKey2", "dobj2"};

◆ m_dobjKey3

SG::WriteHandleKey<MyDataObj> WriteDataReentrant::m_dobjKey3 {this, "DObjKey3", ""}
private

Definition at line 39 of file WriteDataReentrant.h.

39{this, "DObjKey3", ""};

◆ m_dobjKeyArray

SG::WriteHandleKeyArray<MyDataObj> WriteDataReentrant::m_dobjKeyArray {this, "DObjKeyArray", {"dobj_a1", "dobj_a2"}}
private

Definition at line 47 of file WriteDataReentrant.h.

47{this, "DObjKeyArray", {"dobj_a1", "dobj_a2"}};

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthCommonReentrantAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
privateinherited

Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.

Empty if no symlinks were found.

Definition at line 114 of file AthCommonReentrantAlgorithm.h.

◆ m_linkVectorKey

SG::WriteHandleKey<std::vector<ElementLink<MapStringFloat> > > WriteDataReentrant::m_linkVectorKey {this, "LinkVectorKey", "linkvec"}
private

Definition at line 44 of file WriteDataReentrant.h.

44{this, "LinkVectorKey", "linkvec"};

◆ m_mKey

SG::WriteHandleKey<MapStringFloat> WriteDataReentrant::m_mKey {this, "MKey", "mkey"}
private

Definition at line 42 of file WriteDataReentrant.h.

42{this, "MKey", "mkey"};

◆ m_pLinkListKey

SG::WriteHandleKey<std::list<ElementLink<std::vector<float> > > > WriteDataReentrant::m_pLinkListKey {this,"PLinkListKey", ""}
private

Definition at line 43 of file WriteDataReentrant.h.

43{this,"PLinkListKey", ""};

◆ m_testObject

SG::DataObjectSharedPtr<TestDataObject> WriteDataReentrant::m_testObject
private

Definition at line 49 of file WriteDataReentrant.h.

◆ m_testObjectKey

SG::WriteHandleKey<TestDataObject> WriteDataReentrant::m_testObjectKey {this, "TestObjectKey", "testobj"}
private

Definition at line 45 of file WriteDataReentrant.h.

45{this, "TestObjectKey", "testobj"};

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vFloatKey

SG::WriteHandleKey<std::vector<float> > WriteDataReentrant::m_vFloatKey {this, "VFloatKey", "vFloat"}
private

Definition at line 41 of file WriteDataReentrant.h.

41{this, "VFloatKey", "vFloat"};

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files: