From 3a2d7cfac6ce027fbabd9fc60e177603ae565c95 Mon Sep 17 00:00:00 2001 From: scott snyder <snyder@bnl.gov> Date: Fri, 8 Sep 2017 01:09:09 +0200 Subject: [PATCH] StoreGate: 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. --- Control/StoreGate/StoreGate/ReadCondHandle.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Control/StoreGate/StoreGate/ReadCondHandle.h b/Control/StoreGate/StoreGate/ReadCondHandle.h index 6e2a245deba1..ae81e5c1bdbf 100644 --- a/Control/StoreGate/StoreGate/ReadCondHandle.h +++ b/Control/StoreGate/StoreGate/ReadCondHandle.h @@ -92,6 +92,8 @@ namespace SG { if (conditionsRun != EventIDBase::UNDEFNUM) { m_eid.set_run_number (conditionsRun); } + // Event number not used in IOV comparisons, only run+lbn. + m_eid.set_event_number (EventIDBase::UNDEFEVT); if (! m_hkey.isInit()) { MsgStream msg(Athena::getMessageSvc(), "ReadCondHandle"); -- GitLab