ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
HeavyIonRec
HIJetRec
python
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
9
def
getHIClusterGeoWeightFile
(flags):
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
elif
flags.Input.DataYear == 2025:
39
return
'cluster.geo.DATA_PbPb_2025.root'
40
elif
flags.Input.DataYear == 2026:
41
return
'cluster.geo.DATA_PbPb_2026.root'
42
else
:
43
__log.info(
"Have no cluster.geo weight file for Input.DataYear == "
+str(flags.Input.DataYear)+
", using cluster.geo.DATA_PbPb_2026.root"
)
44
return
'cluster.geo.DATA_PbPb_2026.root'
HIJetRecUtilsCA.getHIClusterGeoWeightFile
getHIClusterGeoWeightFile(flags)
Definition
HIJetRecUtilsCA.py:9
Generated on
for ATLAS Offline Software by
1.17.0