From 381d3d2380cfc4ddbf9ca71a95b112dec132523d Mon Sep 17 00:00:00 2001
From: scott snyder <scott.snyder@cern.ch>
Date: Mon, 24 Apr 2017 13:56:54 +0200
Subject: [PATCH] TrigT1CaloCalibTools: DataVector const fix

A long-standing DataVector bug has allowed getting a non-const pointer
from a const_iterator.  Fix a const problem in this package that relied
on this bug.
---
 .../TrigT1/TrigT1CaloCalibTools/src/L1CaloLArTowerEnergy.cxx    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Trigger/TrigT1/TrigT1CaloCalibTools/src/L1CaloLArTowerEnergy.cxx b/Trigger/TrigT1/TrigT1CaloCalibTools/src/L1CaloLArTowerEnergy.cxx
index 35251b7d2f08..86b6e7d46b26 100644
--- a/Trigger/TrigT1/TrigT1CaloCalibTools/src/L1CaloLArTowerEnergy.cxx
+++ b/Trigger/TrigT1/TrigT1CaloCalibTools/src/L1CaloLArTowerEnergy.cxx
@@ -99,7 +99,7 @@ namespace LVL1{
 
     mapSum::iterator it_map;
 
-    LVL1::TriggerTower *tt;
+    const LVL1::TriggerTower *tt;
     TriggerTowerCollection::const_iterator p_itTT = triggerTowerCollection.begin();
     TriggerTowerCollection::const_iterator p_itTTEnd = triggerTowerCollection.end();
 
-- 
GitLab