18 ISvcLocator *pSvcLocator) :
31 return StatusCode::SUCCESS;
42 return StatusCode::FAILURE;
46 << eventInfo->runNumber() <<
","
47 << eventInfo->eventNumber() <<
":"
48 << eventInfo->timeStamp() <<
"] " );
51 << eventInfo->mcEventWeight() );
56 for (
const auto& ddTag : eventInfo->detDescrTags() ) {
65 std::string releaseVersion =
m_tagInfoMgr->findTag(
"AtlasRelease");
66 ATH_MSG_DEBUG(
"Found Release version from TagInfoMgr: " << releaseVersion);
68 return StatusCode::SUCCESS;
76 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Test Algorithm for checking TagInfoMgr and the storing of geometry and conditions tags in EventInfo,...
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
virtual StatusCode initialize() override
Algorithm initialize at begin of job.
ServiceHandle< IGeoModelSvc > m_geoModel
Access to GeoModelSvc for tags.
virtual StatusCode execute() override
Algorithm execute once per event.
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
SG key for Event Info.
ServiceHandle< ITagInfoMgr > m_tagInfoMgr
Access to TagInfoMgr for tags.
EventInfoReader()
Avoid use of default constructor.
virtual StatusCode finalize() override
Algorithm finalize at end of job.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
@ IS_SIMULATION
true: simulation, false: data