ATLAS Offline Software
ReWriteData.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef ATHENAPOOLEXAMPLEALGORITHMS_REWRITEDATA_H
6 #define ATHENAPOOLEXAMPLEALGORITHMS_REWRITEDATA_H
7 
19 
20 namespace AthPoolEx {
21 
26  public:
27  ReWriteData(const std::string& name, ISvcLocator* pSvcLocator);
28  virtual ~ReWriteData() = default;
29 
30  public:
32  virtual StatusCode initialize() override final;
33  virtual StatusCode execute(const EventContext& ctx) const override final;
34  virtual StatusCode finalize() override final;
35 
36  private:
37  SG::ReadHandleKey<ExampleHitContainer> m_exampleHitKey{this, "ExampleHitKey", "MyHits"};
38  SG::WriteHandleKey<ExampleTrackContainer> m_exampleTrackKey{this, "ExampleTrackKey", "MyTracks"};
39 };
40 
41 } // namespace AthPoolEx
42 
43 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
AthPoolEx::ReWriteData::m_exampleTrackKey
SG::WriteHandleKey< ExampleTrackContainer > m_exampleTrackKey
Definition: ReWriteData.h:38
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
AthPoolEx::ReWriteData::ReWriteData
ReWriteData(const std::string &name, ISvcLocator *pSvcLocator)
Definition: ReWriteData.cxx:24
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:74
AthPoolEx::ReWriteData::execute
virtual StatusCode execute(const EventContext &ctx) const override final
Definition: ReWriteData.cxx:41
SG::WriteHandleKey< ExampleTrackContainer >
AthPoolEx::ReWriteData::~ReWriteData
virtual ~ReWriteData()=default
AthPoolEx::ReWriteData::finalize
virtual StatusCode finalize() override final
Definition: ReWriteData.cxx:112
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthReentrantAlgorithm.h
AthPoolEx::ReWriteData::initialize
virtual StatusCode initialize() override final
Gaudi Service Interface method implementations:
Definition: ReWriteData.cxx:29
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
AthPoolEx::ReWriteData
This class provides an example for reading and writing data objects from/to Pool.
Definition: ReWriteData.h:25
AthPoolEx::ReWriteData::m_exampleHitKey
SG::ReadHandleKey< ExampleHitContainer > m_exampleHitKey
Definition: ReWriteData.h:37
ExampleTrackContainer.h
This file contains the class definition for the ExampleTrackContainer class.
private
#define private
Definition: xAODTruthCnvAlg.h:20
AthPoolEx
Definition: PassNoneFilter.h:16
ExampleHitContainer.h
This file contains the class definition for the ExampleHitContainer class.
ExampleHitContainer
This class provides a data vector for ExampleHit objects in AthenaPool.
Definition: ExampleHitContainer.h:20