ATLAS Offline Software
WriteCond.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_WRITECOND_H
6 #define ATHENAPOOLEXAMPLEALGORITHMS_WRITECOND_H
7 
17 
18 namespace AthPoolEx {
19 
24 public: // Constructor and Destructor
26  WriteCond(const std::string& name, ISvcLocator* pSvcLocator);
28  virtual ~WriteCond();
29 
30 public:
32  virtual StatusCode initialize() override;
33  virtual StatusCode execute (const EventContext& ctx) const override;
34  virtual StatusCode stop() override;
35 
36 private:
37  StringProperty m_conditionName;
38  DoubleProperty m_weight;
39  DoubleProperty m_offset;
40 
41  SG::ReadHandleKey<ExampleHitContainer> m_exampleHitKey { this, "ExampleHitKey", "MyHits" };
42 };
43 
44 } // end AthPoolEx namespace
45 
46 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
AthPoolEx::WriteCond::WriteCond
WriteCond(const std::string &name, ISvcLocator *pSvcLocator)
Standard Service Constructor.
Definition: WriteCond.cxx:20
AthPoolEx::WriteCond::m_conditionName
StringProperty m_conditionName
Definition: WriteCond.h:37
AthPoolEx::WriteCond
This class provides an example for writing conditions data objects to Pool.
Definition: WriteCond.h:23
SG::ReadHandleKey< ExampleHitContainer >
AthPoolEx::WriteCond::m_offset
DoubleProperty m_offset
Definition: WriteCond.h:39
AthPoolEx::WriteCond::stop
virtual StatusCode stop() override
Definition: WriteCond.cxx:71
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
AthPoolEx::WriteCond::m_weight
DoubleProperty m_weight
Definition: WriteCond.h:38
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthPoolEx::WriteCond::initialize
virtual StatusCode initialize() override
Gaudi Service Interface method implementations:
Definition: WriteCond.cxx:31
AthReentrantAlgorithm.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
AthPoolEx::WriteCond::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: WriteCond.cxx:48
AthPoolEx
Definition: PassNoneFilter.h:16
ExampleHitContainer.h
This file contains the class definition for the ExampleHitContainer class.
AthPoolEx::WriteCond::~WriteCond
virtual ~WriteCond()
Destructor.
Definition: WriteCond.cxx:28
AthPoolEx::WriteCond::m_exampleHitKey
SG::ReadHandleKey< ExampleHitContainer > m_exampleHitKey
Definition: WriteCond.h:41