Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 from 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  else:
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'
HIJetRecUtilsCA.getHIClusterGeoWeightFile
def getHIClusterGeoWeightFile(flags)
Definition: HIJetRecUtilsCA.py:9
str
Definition: BTagTrackIpAccessor.cxx:11