ATLAS Offline Software
HIJetRecUtilsCA.py
Go to the documentation of this file.
1 #
2 # Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 #
4 
5 from AthenaConfiguration.Enums import LHCPeriod
6 
8  """Returns the correct geo.cluster.XXX.root file based on the Run2/Run3 and data/MC"""
9 
10  # TODO: There should be geo.cluster.XXX.root files for each geometry version (flags.GeoModel.AtlasVersion)
11  # that would contain all the relevant runs. Now, we hope that if we have input file from Run2, it's
12  # from 2018. If the input file is from other years, this will not work and the name has to be set manually.
13  # 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  return 'cluster.geo.DATA_PbPb_2018v2.root'
23  else:
24  return 'cluster.geo.DATA_PbPb_2022.root'
HIJetRecUtilsCA.getHIClusterGeoWeightFile
def getHIClusterGeoWeightFile(flags)
Definition: HIJetRecUtilsCA.py:7