From 03e33ad29470d3fab31d056e477112243987e596 Mon Sep 17 00:00:00 2001 From: scott snyder <snyder@bnl.gov> Date: Fri, 8 Sep 2017 01:10:57 +0200 Subject: [PATCH] IOVSvc: Remove EventIDBase comparison hack. EventIDBase values used in IOVRanges are timestamp or run+lbn. Clear out the event number in order for comparisons to work properly. Former-commit-id: eaac2790907cb618da73e815bb74ed6260777a5a --- Control/IOVSvc/src/CondInputLoader.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Control/IOVSvc/src/CondInputLoader.cxx b/Control/IOVSvc/src/CondInputLoader.cxx index 2a818d560a8..f089c16d7bf 100644 --- a/Control/IOVSvc/src/CondInputLoader.cxx +++ b/Control/IOVSvc/src/CondInputLoader.cxx @@ -243,6 +243,9 @@ CondInputLoader::execute() #endif } + EventIDBase now_event = now; + now.set_event_number (EventIDBase::UNDEFEVT); + // For a MC event, the run number we need to use to look up the conditions // may be different from that of the event itself. Override the run // number with the conditions run number from the event context, @@ -269,7 +272,7 @@ CondInputLoader::execute() } if (ccb->valid(now)) { - ATH_MSG_INFO( " CondObj " << vhk.fullKey() << " is still valid at " << now ); + ATH_MSG_INFO( " CondObj " << vhk.fullKey() << " is still valid at " << now_event ); evtStore()->addedNewTransObject(vhk.fullKey().clid(), vhk.key()); continue; } -- GitLab