Skip to content
Snippets Groups Projects
Commit fd226fad authored by Edward Moyse's avatar Edward Moyse
Browse files

Merge branch 'flagUpdate.TileRecAlgs-20180523' into 'master'

TileRecAlgs: Fix setting of event flags.

See merge request atlas/athena!11558

Former-commit-id: 9808cd3d
parents b1d5d6bd 342b3c99
No related merge requests found
...@@ -61,10 +61,8 @@ StatusCode MBTSTimeDiffEventInfoAlg::finalize() { ...@@ -61,10 +61,8 @@ StatusCode MBTSTimeDiffEventInfoAlg::finalize() {
StatusCode MBTSTimeDiffEventInfoAlg::execute() { StatusCode MBTSTimeDiffEventInfoAlg::execute() {
const EventInfo * eventInfo_c = 0; const EventInfo * eventInfo = 0;
CHECK( evtStore()->retrieve(eventInfo_c)); CHECK( evtStore()->retrieve(eventInfo));
EventInfo* eventInfo = const_cast<EventInfo*>(eventInfo_c);
float eneA = 0.F; float eneA = 0.F;
float eneC = 0.F; float eneC = 0.F;
...@@ -133,16 +131,16 @@ StatusCode MBTSTimeDiffEventInfoAlg::execute() { ...@@ -133,16 +131,16 @@ StatusCode MBTSTimeDiffEventInfoAlg::execute() {
if (timediff > m_timeDiffThreshold) { if (timediff > m_timeDiffThreshold) {
ATH_MSG_DEBUG( "Event identified as background, set bit 'MBTSTimeDiffHalo' in EventInfo Background word" ); ATH_MSG_DEBUG( "Event identified as background, set bit 'MBTSTimeDiffHalo' in EventInfo Background word" );
if (eventInfo->setEventFlagBit(EventInfo::Background, if (eventInfo->updateEventFlagBit(EventInfo::Background,
EventInfo::MBTSTimeDiffHalo) == false) EventInfo::MBTSTimeDiffHalo) == false)
ATH_MSG_WARNING( "Failed to set EventInfo Background word!" ); ATH_MSG_WARNING( "Failed to set EventInfo Background word!" );
} //end if above theshold } //end if above theshold
else { else {
ATH_MSG_DEBUG( "Event identified as collision, set bit 'MBTSTimeDiffCol' in EventInfo Background word" ); ATH_MSG_DEBUG( "Event identified as collision, set bit 'MBTSTimeDiffCol' in EventInfo Background word" );
if (eventInfo->setEventFlagBit(EventInfo::Background, if (eventInfo->updateEventFlagBit(EventInfo::Background,
EventInfo::MBTSTimeDiffCol) == false) EventInfo::MBTSTimeDiffCol) == false)
ATH_MSG_WARNING( "Failed to set EventInfo Background word!" ); ATH_MSG_WARNING( "Failed to set EventInfo Background word!" );
} //end if below threshold } //end if below threshold
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment