ATLAS Offline Software
WriteCond.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_WRITECOND_H
6 #define ATHENAPOOLEXAMPLEALGORITHMS_WRITECOND_H
7 
16 
18 
19 namespace AthPoolEx {
20 
25 public:
26  WriteCond(const std::string& name, ISvcLocator* pSvcLocator);
27  virtual ~WriteCond() = default;
28 
29 public:
31  virtual StatusCode initialize() override final;
32  virtual StatusCode execute (const EventContext& ctx) const override final;
33  virtual StatusCode stop() override final;
34 
35 private:
36  Gaudi::Property<std::string> m_conditionName{this, "ConditionName", "PedestalWriteData"};
37  Gaudi::Property<double> m_weight{this, "Weight", 0.0};
38  Gaudi::Property<double> m_offset{this, "Offset", 0.0};
39 
40  SG::ReadHandleKey<ExampleHitContainer> m_exampleHitKey { this, "ExampleHitKey", "MyHits" };
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::WriteCond::WriteCond
WriteCond(const std::string &name, ISvcLocator *pSvcLocator)
Definition: WriteCond.cxx:20
AthPoolEx::WriteCond::~WriteCond
virtual ~WriteCond()=default
AthPoolEx::WriteCond
This class provides an example for writing conditions data objects to Pool.
Definition: WriteCond.h:24
AthPoolEx::WriteCond::m_weight
Gaudi::Property< double > m_weight
Definition: WriteCond.h:37
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
SG::ReadHandleKey< ExampleHitContainer >
Property
Support class for PropertyMgr.
Definition: Property.h:23
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:74
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthPoolEx::WriteCond::stop
virtual StatusCode stop() override final
Definition: WriteCond.cxx:59
AthPoolEx::WriteCond::initialize
virtual StatusCode initialize() override final
Gaudi Service Interface method implementations:
Definition: WriteCond.cxx:25
AthPoolEx::WriteCond::m_offset
Gaudi::Property< double > m_offset
Definition: WriteCond.h:38
AthReentrantAlgorithm.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
AthPoolEx::WriteCond::m_conditionName
Gaudi::Property< std::string > m_conditionName
Definition: WriteCond.h:36
Gaudi
=============================================================================
Definition: CaloGPUClusterAndCellDataMonitorOptions.h:273
private
#define private
Definition: xAODTruthCnvAlg.h:20
AthPoolEx
Definition: PassNoneFilter.h:16
ExampleHitContainer
This class provides a data vector for ExampleHit objects in AthenaPool.
Definition: ExampleHitContainer.h:20
AthPoolEx::WriteCond::execute
virtual StatusCode execute(const EventContext &ctx) const override final
Definition: WriteCond.cxx:39
AthPoolEx::WriteCond::m_exampleHitKey
SG::ReadHandleKey< ExampleHitContainer > m_exampleHitKey
Definition: WriteCond.h:40