ATLAS Offline Software
Loading...
Searching...
No Matches
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>
26
27
30{
31public:
32 using AthReentrantAlgorithm::AthReentrantAlgorithm;
33 virtual StatusCode initialize() override final;
34 virtual StatusCode execute (const EventContext& ctx) const override final;
35
36private:
37 SG::WriteHandleKey<MyDataObj> m_dobjKey{this, "DObjKey", "dobj"};
38 SG::WriteHandleKey<MyDataObj> m_dobjKey2{this, "DObjKey2", "dobj2"};
41 SG::WriteHandleKey<std::vector<float> > m_vFloatKey{this, "VFloatKey", "vFloat"};
45 SG::WriteHandleKey<TestDataObject> m_testObjectKey{this, "TestObjectKey", "testobj"};
46
47 SG::WriteHandleKeyArray<MyDataObj> m_dobjKeyArray{this, "DObjKeyArray", {"dobj_a1", "dobj_a2"}};
48
50 StatusCode onError() const;
51};
52
53
54#endif // not ATHEXSTOREGATEEXAMPLE_WRITEDATAREENTRANT_H
Property holding a SG store/key/clid from which a WriteHandle is made.
An algorithm that can be simultaneously executed in multiple threads.
Property holding a SG store/key/clid from which a WriteHandle is made.
virtual StatusCode execute(const EventContext &ctx) const override final
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
virtual StatusCode initialize() override final
SG::WriteHandleKey< MyDataObj > m_dobjKey3
SG::WriteHandleKey< MyDataObj > m_dobjKey
StatusCode onError() const
SG::WriteHandleKey< MapStringFloat > m_mKey
CxxUtils::RefCountedPtr< T > DataObjectSharedPtr
HandleKeyArray< WriteHandle< T >, WriteHandleKey< T >, Gaudi::DataHandle::Writer > WriteHandleKeyArray