28 auto pPedestal = std::make_unique<ExampleHitContainer>();
29 auto pEntry = std::make_unique<ExampleHit>();
30 pEntry->setDetector(
"<");
31 pPedestal->push_back(std::move(pEntry));
36 return StatusCode::SUCCESS;
47 ATH_MSG_INFO(
"Hit x = " << hit->getX() <<
" y = " << hit->getY() <<
" z = " << hit->getZ() <<
" detector = " << hit->getDetector());
56 return StatusCode::SUCCESS;
66 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
This file contains the class definition for the ExampleHitContainer class.
Handle class for reading from StoreGate.
This file contains the class definition for the WriteCond class.
const ServiceHandle< StoreGateSvc > & detStore() const
Gaudi::Property< double > m_offset
virtual StatusCode stop() override final
Gaudi::Property< double > m_weight
WriteCond(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode execute(const EventContext &ctx) const override final
SG::ReadHandleKey< ExampleHitContainer > m_exampleHitKey
virtual StatusCode initialize() override final
Gaudi Service Interface method implementations:
Gaudi::Property< std::string > m_conditionName
An algorithm that can be simultaneously executed in multiple threads.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
This class provides a data vector for ExampleHit objects in AthenaPool.
This class provides a dummy hit data object for AthenaPool.
void setZ(double z)
Set the Z coordinate.
void setX(double x)
Set the X coordinate.
void setDetector(const std::string &detector)
Set the detector string.
void setY(double y)
Set the Y coordinate.
const std::string & getDetector() const