|
ATLAS Offline Software
|
Go to the documentation of this file.
16 #include "GaudiKernel/IIncidentSvc.h"
17 #include "GaudiKernel/FileIncident.h"
26 m_pMetaDataStore (
"StoreGateSvc/MetaDataStore",
name),
27 m_pInputStore (
"StoreGateSvc/InputMetaDataStore",
name) {
28 declareInterface<IMetaDataTool>(
this);
40 return StatusCode::FAILURE;
44 return StatusCode::FAILURE;
48 if (!incSvc.retrieve().isSuccess()) {
50 return StatusCode::FAILURE;
52 incSvc->addListener(
this,
"BeginInputFile", 60);
53 incSvc->addListener(
this,
"EndInputFile", 50);
54 return StatusCode::SUCCESS;
59 return StatusCode::SUCCESS;
64 const FileIncident* fileInc =
dynamic_cast<const FileIncident*
>(&inc);
66 ATH_MSG_ERROR(
" Unable to get FileName from BeginInputFile/EndInputFile incident");
69 const std::string
fileName = fileInc->fileName();
78 std::list<SG::ObjectWithVersion<ExampleHitContainer> > allVersions;
79 if (
m_pInputStore->retrieveAllVersions(allVersions,
"PedestalWriteData").isFailure()) {
80 ATH_MSG_ERROR(
"Could not retrieve all versions for PedestalWriteData");
81 return StatusCode::FAILURE;
97 ATH_MSG_ERROR(
"Could not record DataObject: PedestalWriteData");
98 return StatusCode::FAILURE;
102 ATH_MSG_ERROR(
"Could not find DataObject in output: PedestalWriteData");
103 return StatusCode::FAILURE;
108 int weight_out = entry_out->
getDetector().size() - 2;
117 ATH_MSG_INFO(
"Pedestal x = " <<
obj->getX() <<
" y = " <<
obj->getY() <<
" z = " <<
obj->getZ() <<
" string = " <<
obj->getDetector());
122 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.