ATLAS Offline Software
ReWriteData.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 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: // Constructor and Destructor
28  ReWriteData(const std::string& name, ISvcLocator* pSvcLocator);
30  virtual ~ReWriteData();
31 
32 public:
34  virtual StatusCode initialize() override;
35  virtual StatusCode execute (const EventContext& ctx) const override;
36  virtual StatusCode finalize() override;
37 
38 private:
39  SG::ReadHandleKey<ExampleHitContainer> m_exampleHitKey { this, "ExampleHitKey", "MyHits" };
40  SG::WriteHandleKey<ExampleTrackContainer> m_exampleTrackKey { this, "ExampleTrackKey", "MyTracks" };
41 };
42 
43 } // end AthPoolEx namespace
44 
45 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
AthPoolEx::ReWriteData::~ReWriteData
virtual ~ReWriteData()
Destructor.
Definition: ReWriteData.cxx:29
AthPoolEx::ReWriteData::m_exampleTrackKey
SG::WriteHandleKey< ExampleTrackContainer > m_exampleTrackKey
Definition: ReWriteData.h:40
AthPoolEx::ReWriteData::ReWriteData
ReWriteData(const std::string &name, ISvcLocator *pSvcLocator)
Standard Service Constructor.
Definition: ReWriteData.cxx:24
SG::ReadHandleKey< ExampleHitContainer >
AthPoolEx::ReWriteData::initialize
virtual StatusCode initialize() override
Gaudi Service Interface method implementations:
Definition: ReWriteData.cxx:32
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
SG::WriteHandleKey< ExampleTrackContainer >
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthReentrantAlgorithm.h
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:195
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:39
ExampleTrackContainer.h
This file contains the class definition for the ExampleTrackContainer class.
AthPoolEx
Definition: PassNoneFilter.h:16
ExampleHitContainer.h
This file contains the class definition for the ExampleHitContainer class.
AthPoolEx::ReWriteData::finalize
virtual StatusCode finalize() override
Definition: ReWriteData.cxx:105
AthPoolEx::ReWriteData::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: ReWriteData.cxx:44