From c9f583ac939ba42771797227d4a451612f26d3a4 Mon Sep 17 00:00:00 2001
From: Peter Onyisi <ponyisi@utexas.edu>
Date: Thu, 11 Jun 2020 18:16:42 +0200
Subject: [PATCH] py3 fixes

---
 Calorimeter/CaloMonitoring/python/LArCellBinning.py | 2 +-
 Calorimeter/CaloMonitoring/python/LArCellMonAlg.py  | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Calorimeter/CaloMonitoring/python/LArCellBinning.py b/Calorimeter/CaloMonitoring/python/LArCellBinning.py
index 8c293827851b..6e18fde522cd 100644
--- a/Calorimeter/CaloMonitoring/python/LArCellBinning.py
+++ b/Calorimeter/CaloMonitoring/python/LArCellBinning.py
@@ -105,7 +105,7 @@ for Part in lArCellBinningScheme.PartitionLayers:
             if Part=="FCAL":
                   lArCellBinningScheme.etaRange[Part+Lay+"C"] = lArCellBinningScheme.etaRange[Part+Lay+"A"]
             else: #all other partitions
-                  lArCellBinningScheme.etaRange[Part+Lay+"C"] =map(lambda x: x*-1,lArCellBinningScheme.etaRange[Part+Lay+"A"])[::-1]
+                  lArCellBinningScheme.etaRange[Part+Lay+"C"] =list(map(lambda x: x*-1,lArCellBinningScheme.etaRange[Part+Lay+"A"]))[::-1]
                   pass
 
 #energy and time
diff --git a/Calorimeter/CaloMonitoring/python/LArCellMonAlg.py b/Calorimeter/CaloMonitoring/python/LArCellMonAlg.py
index d69a775d192a..3c0dfdf8791e 100644
--- a/Calorimeter/CaloMonitoring/python/LArCellMonAlg.py
+++ b/Calorimeter/CaloMonitoring/python/LArCellMonAlg.py
@@ -289,8 +289,8 @@ def LArCellMonConfig(inputFlags):
                            type='TH2F', path=energyvstime_hist_path,
                            xbins=lArCellBinningScheme.timescale, ybins=lArCellBinningScheme.energyscale)
 
-         cellMonGroup.defineHistogram('cellTime_'+part+'_cut;CellEnergyVsTime_'+part+'_'+str(eCutForTiming[idx/2]),
-                           title='Cell Energy vs Cell Time in '+part+' with CSC veto - Cell Time (E>'+str(eCutForTiming[idx/2])+' [MeV]);Cell Time [ns];Cell Energy [MeV]',
+         cellMonGroup.defineHistogram('cellTime_'+part+'_cut;CellEnergyVsTime_'+part+'_'+str(eCutForTiming[idx//2]),
+                           title='Cell Energy vs Cell Time in '+part+' with CSC veto - Cell Time (E>'+str(eCutForTiming[idx//2])+' [MeV]);Cell Time [ns];Cell Energy [MeV]',
                            weight='cellEnergy_'+part+'_cut',
                            cutmask='enGreaterThanCut_'+part,
                            type='TH1F', path=energyvstime_hist_path,
-- 
GitLab