5 from AthenaConfiguration.Enums
import LHCPeriod
6 from AthenaCommon.Logging
import logging
7 __log = logging.getLogger(
'HIJetRecUtilsCA')
10 """Returns the correct cluster.geo.XXX.root file based on the year and data/MC"""
15 if flags.HeavyIon.Jet.HIClusterGeoWeightFile !=
"auto":
16 return flags.HeavyIon.Jet.HIClusterGeoWeightFile
19 return 'cluster.geo.HIJING_2018.root'
21 if flags.GeoModel.Run
in [LHCPeriod.Run1, LHCPeriod.Run2]:
22 if flags.Input.DataYear == 2015:
23 return 'cluster.geo.DATA_2015.root'
24 elif flags.Input.DataYear == 2017:
25 return 'cluster.geo.DATA_XeXe_2017_fixedForward.root'
26 elif flags.Input.DataYear == 2018:
27 return 'cluster.geo.DATA_PbPb_2018v2.root'
29 __log.warning(
"Have no cluster.geo weight file for Input.DataYear == "+
str(flags.Input.DataYear)+
", using cluster.geo.DATA_PbPb_2018v2.root")
30 return 'cluster.geo.DATA_PbPb_2018v2.root'
32 if flags.Input.DataYear == 2022:
33 return 'cluster.geo.DATA_PbPb_2022.root'
35 __log.info(
"Have no cluster.geo weight file for Input.DataYear == "+
str(flags.Input.DataYear)+
", using cluster.geo.DATA_PbPb_2022.root")
36 return 'cluster.geo.DATA_PbPb_2022.root'