23 ISvcLocator *pSvcLocator) :
42 if (
m_tagInfoMgr->addTag(
"EventInfoWriterTag",
"EIW-00-00-01").isFailure()) {
44 return StatusCode::FAILURE;
52 return StatusCode::FAILURE;
60 return StatusCode::SUCCESS;
72 return StatusCode::FAILURE;
76 << eventInfo->runNumber() <<
","
77 << eventInfo->eventNumber() <<
":"
78 << eventInfo->timeStamp() <<
"] "
103 MsgStream log(msgSvc(), name());
107 std::string releaseVersion =
m_tagInfoMgr->findTag(
"AtlasRelease");
108 ATH_MSG_DEBUG(
"Found Release version from TagInfoMgr: " << releaseVersion);
110 return StatusCode::SUCCESS;
120 return StatusCode::SUCCESS;
153 if (
m_tagInfoMgr->removeTagFromInput(
"TagC1").isFailure()) {
158 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
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.
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
SG key for Event Info.
BooleanProperty m_createDummyOverrideTags
For testing only: add in dummy tags which may override existing tags.
BooleanProperty m_createDummyTags
For testing only: add in dummy tags.
StatusCode fillTagInfo()
Add in tags to TagInfoMgr.
ServiceHandle< ITagInfoMgr > m_tagInfoMgr
Access to the TagInfoMgr.
virtual StatusCode execute() override
Algorithm execute once per event.
EventInfoWriter()
Avoid use of default constructor.
BooleanProperty m_removeDummyTags
For testing only: remove input dummy tags.
virtual StatusCode finalize() override
Algorithm finalize at end of job.
virtual bool isValid() override final
Can the handle be successfully dereferenced?