ATLAS Offline Software
Loading...
Searching...
No Matches
HIJetRecUtilsCA.py
Go to the documentation of this file.
2# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3#
4
5from AthenaConfiguration.Enums import LHCPeriod
6from AthenaCommon.Logging import logging
7__log = logging.getLogger('HIJetRecUtilsCA')
8
10 """Returns the correct cluster.geo.XXX.root file based on the year and data/MC"""
11
12 # TODO: There should be cluster.geo.XXX.root files for each geometry version (flags.GeoModel.AtlasVersion)
13 # that would contain all the relevant runs. See also ATLHI-489
14
15 if flags.HeavyIon.Jet.HIClusterGeoWeightFile != "auto":
16 return flags.HeavyIon.Jet.HIClusterGeoWeightFile
17
18 if flags.Input.isMC:
19 return 'cluster.geo.HIJING_2018.root'
20 else:
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'
28 else:
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'
31 else:
32 if flags.Input.DataYear == 2022:
33 return 'cluster.geo.DATA_PbPb_2022.root'
34 elif flags.Input.DataYear == 2023:
35 return 'cluster.geo.DATA_PbPb_2023.root'
36 elif flags.Input.DataYear == 2024:
37 return 'cluster.geo.DATA_PbPb_2024.root'
38 else:
39 __log.info("Have no cluster.geo weight file for Input.DataYear == "+str(flags.Input.DataYear)+", using cluster.geo.DATA_PbPb_2024.root")
40 return 'cluster.geo.DATA_PbPb_2024.root'
getHIClusterGeoWeightFile(flags)