From 1fad66293663cb677429655260d3a37dee775ad1 Mon Sep 17 00:00:00 2001 From: Giovanni Marchiori Date: Wed, 4 Sep 2024 23:37:40 +0200 Subject: [PATCH] fix bug when crosstalk is off (readCrosstalkMap undefined) --- RecFCCeeCalorimeter/tests/options/ALLEGRO_o1_v03_digi_reco.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/RecFCCeeCalorimeter/tests/options/ALLEGRO_o1_v03_digi_reco.py b/RecFCCeeCalorimeter/tests/options/ALLEGRO_o1_v03_digi_reco.py index d290e17..2aa0447 100644 --- a/RecFCCeeCalorimeter/tests/options/ALLEGRO_o1_v03_digi_reco.py +++ b/RecFCCeeCalorimeter/tests/options/ALLEGRO_o1_v03_digi_reco.py @@ -197,6 +197,8 @@ readCrosstalkMap = ReadCaloCrosstalkMap("ReadCrosstalkMap", fileName="https://fccsw.web.cern.ch/fccsw/filesForSimDigiReco/ALLEGRO/ALLEGRO_o1_v03/xtalk_neighbours_map_ecalB_thetamodulemerged.root", OutputLevel=INFO) +else: + readCrosstalkMap = None # Create cells in ECal barrel (calibrated and positioned - optionally with xtalk and noise added) # from uncalibrated cells (+cellID info) from ddsim @@ -362,7 +364,7 @@ # Create cells in HCal endcap hcalEndcapPositionedCellsName = hcalEndcapReadoutName + "Positioned" - createHCalEndcapCells = CreatePositionedCaloCells("CreateHCalEndcapCaloCells", + createHCalEndcapCells = CreatePositionedCaloCells("CreateHCalEndcapCells", doCellCalibration=True, calibTool=calibHCalEndcap, addCellNoise=False,