From 5728461cd85cd3e0a2122cdbd3a98c440e77c1fe Mon Sep 17 00:00:00 2001
From: Rosen Matev <r.matev@gmail.com>
Date: Tue, 19 Apr 2016 19:56:31 +0200
Subject: [PATCH] Fix ODIN filter for lumi events in the HltReferenceRateSvc

---
 Hlt/HltCommon/doc/release.notes           | 3 +++
 Hlt/HltCommon/src/HltReferenceRateSvc.cpp | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/Hlt/HltCommon/doc/release.notes b/Hlt/HltCommon/doc/release.notes
index 908352ba0..5500dde72 100755
--- a/Hlt/HltCommon/doc/release.notes
+++ b/Hlt/HltCommon/doc/release.notes
@@ -4,6 +4,9 @@
 ! Purpose     : Common algorithms and tools for Hlt
 !----------------------------------------------------------------------------
 
+! 2016-04-19 - Rosen Matev
+ - Fix ODIN filter for lumi events in the HltReferenceRateSvc
+
 !========================= HltCommon v10r8 2016-04-11 =========================
 
 ! 2016-03-28 - Roel Aaij
diff --git a/Hlt/HltCommon/src/HltReferenceRateSvc.cpp b/Hlt/HltCommon/src/HltReferenceRateSvc.cpp
index 6d040e234..0337046cf 100644
--- a/Hlt/HltCommon/src/HltReferenceRateSvc.cpp
+++ b/Hlt/HltCommon/src/HltReferenceRateSvc.cpp
@@ -231,7 +231,7 @@ void HltReferenceRateSvc::handle( const Incident& /*incident*/ )
         m_incidentSvc->fireIncident( Incident( name(), IncidentType::AbortEvent ) );
         return;
     }
-    if ( odin->triggerType() == LHCb::ODIN::LumiTrigger ) ++m_tick;
+    if ( odin->eventType() & LHCb::ODIN::Lumi ) ++m_tick;
     ulonglong gps = odin->gpsTime();
     m_first = std::min( m_first, gps) ;
     m_last  = std::max( m_last, gps );
-- 
GitLab