From 1d4145aab82908d7dba335b60ff783e53f140913 Mon Sep 17 00:00:00 2001
From: scott snyder <scott.snyder@cern.ch>
Date: Mon, 19 Jun 2017 17:57:16 +0200
Subject: [PATCH] MdtRawDataMonitoring: Const fix.

A long-standing bug in DataVector has meant that it was possible to get
a non-const pointer from a const_iterator.  This package was relying on this
bug to compile; fix that.



Former-commit-id: 52fefe98b99c281bf3403895fe05fab644601cf5
---
 .../MdtRawDataMonitoring/src/MdtRawDataValAlg.cxx               | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/MuonSpectrometer/MuonValidation/MuonDQA/MuonRawDataMonitoring/MdtRawDataMonitoring/src/MdtRawDataValAlg.cxx b/MuonSpectrometer/MuonValidation/MuonDQA/MuonRawDataMonitoring/MdtRawDataMonitoring/src/MdtRawDataValAlg.cxx
index 8ffb252be92..fb1dc09ebb2 100755
--- a/MuonSpectrometer/MuonValidation/MuonDQA/MuonRawDataMonitoring/MdtRawDataMonitoring/src/MdtRawDataValAlg.cxx
+++ b/MuonSpectrometer/MuonValidation/MuonDQA/MuonRawDataMonitoring/MdtRawDataMonitoring/src/MdtRawDataValAlg.cxx
@@ -1937,7 +1937,7 @@ StatusCode MdtRawDataValAlg::handleEvent_effCalc(const Trk::SegmentCollection* s
 
   // LOOP OVER SEGMENTS  
   for (Trk::SegmentCollection::const_iterator s = segms->begin(); s != segms->end(); ++s) {
-    Muon::MuonSegment* segment = dynamic_cast<Muon::MuonSegment*>(*s);
+    const Muon::MuonSegment* segment = dynamic_cast<const Muon::MuonSegment*>(*s);
     if (segment == 0) {
       ATH_MSG_DEBUG("no pointer to segment!!!");
       break;
-- 
GitLab