ATLAS Offline Software
Database/AthenaPOOL/AthenaPoolExample/AthenaPoolExampleAlgorithms/src/WriteData.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_WRITEDATA_H
6 #define ATHENAPOOLEXAMPLEALGORITHMS_WRITEDATA_H
7 
17 
18 namespace AthPoolEx {
19 
24 public: // Constructor and Destructor
26  WriteData(const std::string& name, ISvcLocator* pSvcLocator);
28  virtual ~WriteData();
29 
30 public:
32  virtual StatusCode initialize() override;
33  virtual StatusCode execute (const EventContext& ctx) const override;
34  virtual StatusCode finalize() override;
35 
36  SG::WriteHandleKey<ExampleHitContainer> m_exampleHitKey { this, "ExampleHitKey", "MyHits" };
37  SG::WriteHandleKey<ExampleHitContainer> m_aliasKey { this, "AliasKey", "PetersHits" };
38 };
39 
40 } // end AthPoolEx namespace
41 
42 #endif
AthPoolEx::WriteData::m_aliasKey
SG::WriteHandleKey< ExampleHitContainer > m_aliasKey
Definition: Database/AthenaPOOL/AthenaPoolExample/AthenaPoolExampleAlgorithms/src/WriteData.h:37
AthPoolEx::WriteData
This class provides an example for writing event data objects to Pool.
Definition: Database/AthenaPOOL/AthenaPoolExample/AthenaPoolExampleAlgorithms/src/WriteData.h:23
AthPoolEx::WriteData::~WriteData
virtual ~WriteData()
Destructor.
Definition: Database/AthenaPOOL/AthenaPoolExample/AthenaPoolExampleAlgorithms/src/WriteData.cxx:25
AthPoolEx::WriteData::finalize
virtual StatusCode finalize() override
Definition: Database/AthenaPOOL/AthenaPoolExample/AthenaPoolExampleAlgorithms/src/WriteData.cxx:61
AthPoolEx::WriteData::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: Database/AthenaPOOL/AthenaPoolExample/AthenaPoolExampleAlgorithms/src/WriteData.cxx:35
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
AthPoolEx::WriteData::m_exampleHitKey
SG::WriteHandleKey< ExampleHitContainer > m_exampleHitKey
Definition: Database/AthenaPOOL/AthenaPoolExample/AthenaPoolExampleAlgorithms/src/WriteData.h:36
SG::WriteHandleKey< ExampleHitContainer >
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::WriteData::initialize
virtual StatusCode initialize() override
Gaudi Service Interface method implementations:
Definition: Database/AthenaPOOL/AthenaPoolExample/AthenaPoolExampleAlgorithms/src/WriteData.cxx:28
AthPoolEx
Definition: PassNoneFilter.h:16
ExampleHitContainer.h
This file contains the class definition for the ExampleHitContainer class.
AthPoolEx::WriteData::WriteData
WriteData(const std::string &name, ISvcLocator *pSvcLocator)
Standard Service Constructor.
Definition: Database/AthenaPOOL/AthenaPoolExample/AthenaPoolExampleAlgorithms/src/WriteData.cxx:20