Skip to content

Commit

Permalink
fix bug when crosstalk is off (readCrosstalkMap undefined)
Browse files Browse the repository at this point in the history
  • Loading branch information
giovannimarchiori committed Sep 4, 2024
1 parent 1963212 commit 1fad662
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -362,7 +364,7 @@

# Create cells in HCal endcap
hcalEndcapPositionedCellsName = hcalEndcapReadoutName + "Positioned"
createHCalEndcapCells = CreatePositionedCaloCells("CreateHCalEndcapCaloCells",
createHCalEndcapCells = CreatePositionedCaloCells("CreateHCalEndcapCells",
doCellCalibration=True,
calibTool=calibHCalEndcap,
addCellNoise=False,
Expand Down

0 comments on commit 1fad662

Please sign in to comment.