Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
15 #include "GaudiKernel/IIncidentSvc.h"
16 #include "GaudiKernel/FileIncident.h"
25 m_pMetaDataStore (
"StoreGateSvc/MetaDataStore",
name),
26 m_pInputStore (
"StoreGateSvc/InputMetaDataStore",
name) {
42 incSvc->addListener(
this,
"BeginInputFile", 60);
43 incSvc->addListener(
this,
"EndInputFile", 50);
44 return StatusCode::SUCCESS;
49 const FileIncident* fileInc =
dynamic_cast<const FileIncident*
>(&inc);
51 ATH_MSG_ERROR(
" Unable to get FileName from BeginInputFile/EndInputFile incident");
54 ATH_MSG_DEBUG(
"handle() " << inc.type() <<
" for " << fileInc->fileName());
61 std::list<SG::ObjectWithVersion<ExampleHitContainer> > allVersions;
62 if (
m_pInputStore->retrieveAllVersions(allVersions,
"PedestalWriteData").isFailure()) {
63 ATH_MSG_ERROR(
"Could not retrieve all versions for PedestalWriteData");
64 return StatusCode::FAILURE;
80 ATH_MSG_ERROR(
"Could not record DataObject: PedestalWriteData");
81 return StatusCode::FAILURE;
85 ATH_MSG_ERROR(
"Could not find DataObject in output: PedestalWriteData");
86 return StatusCode::FAILURE;
91 int weight_out = entry_out->
getDetector().size() - 2;
100 ATH_MSG_INFO(
"Pedestal x = " <<
obj->getX() <<
" y = " <<
obj->getY() <<
" z = " <<
obj->getZ() <<
" string = " <<
obj->getDetector());
105 return StatusCode::SUCCESS;
void setY(double y)
Set the Y coordinate.
::StatusCode StatusCode
StatusCode definition for legacy code.
This class provides a dummy hit data object for AthenaPool.
void setX(double x)
Set the X coordinate.
const std::string & getDetector() const
value_type push_back(value_type pElem)
Add an element to the end of the collection.
This file contains the class definition for the ExampleHitContainer class.
associate a data object with its VersionedKey The object is held by a ReadHandle to delay its retriev...
This class provides a data vector for ExampleHit objects in AthenaPool.
void setZ(double z)
Set the Z coordinate.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
void setDetector(const std::string &detector)
Set the detector string.