ATLAS Offline Software
PFConfigFlags.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2 
3 from AthenaConfiguration.AthConfigFlags import AthConfigFlags
4 
6  pfConfigFlags=AthConfigFlags()
7 
8  pfConfigFlags.addFlag("PF.EOverPMode",False) #This defines whether we use the standard reconstruction or dedicated e/p mode used to measure e/p reference values
9  pfConfigFlags.addFlag("PF.addClusterMoments",True) #This defines whether we add the cluster moments to neutral PFO
10  pfConfigFlags.addFlag("PF.useClusterMoments",True) #This defines whether we add a full list of cluster moments or not. Currently only the HLT config makes use of this flag, it is not used for offline config.
11  pfConfigFlags.addFlag("PF.useCalibHitTruthClusterMoments",False) #This defines whether we calculate the calibration hit moments - only possible on if running from special calibraiton hit ESD samples.
12  pfConfigFlags.addFlag("PF.useElPhotLinks", lambda prevFlags : prevFlags.Reco.EnableEgamma)
13  pfConfigFlags.addFlag("PF.useMuLinks", lambda prevFlags : prevFlags.Reco.EnableCombinedMuon)
14  pfConfigFlags.addFlag("PF.useMLEOverP",False) #Toggle whether to use the Machine Learning based EOverP inference or not
15  pfConfigFlags.addFlag("PF.EOverP_NN_Model",'/afs/cern.ch/user/m/mhodgkin/onnx_15_03_23.onnx') #Model to use in EOverP inference
16  #Reference location for cell ordering and e/p lookup in particle flow.
17  pfConfigFlags.addFlag("PF.EOverP_CellOrdering_ReferenceLocation",'eflowRec/PFCellEOverPTool/Run4/v4/')
18  pfConfigFlags.addFlag("PF.addCPData",False)
19  #Toggle whether to use truth information to cheat the reconstruction or not - only makes sense to do this in MC samples with calibration hits and without pileup
20  #Toggle whether in general we should use truth calibraiton hit information to cheat at reconstructing things - only makes sense to do this in MC samples with calibration hits and without pileup
21  pfConfigFlags.addFlag("PF.useTruthCheating",False)
22  #These flags decide which aspects of hte algorithm would use truth cheating
23  #Toggle whether to use truth information to cheat the reconstruction or not
24  pfConfigFlags.addFlag("PF.useTrackClusterTruthMatching",False)
25  pfConfigFlags.addFlag("PF.useTruthForChargedShowerSubtraction",False)
26 
27  #Toggle whether to use the legacy EOverP (eflowCellEOverPTool_mc12_HLLHC.h) or not. Off by default so we use the new reference - this toggle is so we can compare old/new in the production system
28  #before eventually removing the old tool entirely.
29  pfConfigFlags.addFlag("PF.useLegacyEOverPRun4",False)
30 
31  #Toggle whether to use topoclusters or combined topoclusters + topotowers container
32  pfConfigFlags.addFlag("PF.useTopoTowers",False)
33 
34  #Toggle thinning on and off
35  pfConfigFlags.addFlag("PF.doThinning",True)
36 
37  return pfConfigFlags
PFConfigFlags.createPFConfigFlags
def createPFConfigFlags()
Definition: PFConfigFlags.py:5