Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Functions
InDetTrackSystematicsToolsConfig Namespace Reference

Functions

def InDetTrackTruthOriginToolCfg (flags, name="InDetTrackTruthOriginTool", **kwargs)
 
def InDetTrackTruthFilterToolCfg (flags, name="InDetTrackTruthFilterTool", **kwargs)
 
def JetTrackFilterToolCfg (flags, name="JetTrackFilterTool", **kwargs)
 
def InclusiveTrackFilterToolCfg (flags, name="InclusiveTrackFilterTool", **kwargs)
 
def TrackSystematicsAlgCfg (flags, name="InDetTrackSystematicsAlg", **kwargs)
 

Function Documentation

◆ InclusiveTrackFilterToolCfg()

def InDetTrackSystematicsToolsConfig.InclusiveTrackFilterToolCfg (   flags,
  name = "InclusiveTrackFilterTool",
**  kwargs 
)

Definition at line 74 of file InDetTrackSystematicsToolsConfig.py.

74 def InclusiveTrackFilterToolCfg(flags, name="InclusiveTrackFilterTool", **kwargs):
75  acc = ComponentAccumulator()
76 
77  from AthenaConfiguration.Enums import LHCPeriod
78  # 2022 recommendations (MC23a)
79  if flags.GeoModel.Run == LHCPeriod.Run3 and flags.Input.MCCampaign == Campaign.MC23a:
80  kwargs.setdefault("calibFileLRTEff", "InDetTrackSystematicsTools/CalibData_25.2_2025-v00/LargeD0TrackingRecommendations_mc23a.root")
81  elif flags.GeoModel.Run == LHCPeriod.Run3 and flags.Input.MCCampaign == Campaign.MC23d:
82  kwargs.setdefault("calibFileLRTEff", "InDetTrackSystematicsTools/CalibData_25.2_2025-v00/LargeD0TrackingRecommendations_mc23d.root")
83  # Run 2 recommendations (MC20)
84  elif flags.GeoModel.Run == LHCPeriod.Run2:
85  kwargs.setdefault("calibFileLRTEff", "InDetTrackSystematicsTools/CalibData_24.0_2023-v00/LargeD0TrackingRecommendations_20230824.root")
86  else:
87  raise ValueError(f"InclusiveTrackFilterTool: Recommendations not yet available for campaign {flags.Input.MCCampaign}! Please check the configuration and contact Tracking CP if you believe this message is in error.")
88 
89  acc.setPrivateTools(
90  CompFactory.InDet.InclusiveTrackFilterTool(name, **kwargs))
91  return acc
92 

◆ InDetTrackTruthFilterToolCfg()

def InDetTrackSystematicsToolsConfig.InDetTrackTruthFilterToolCfg (   flags,
  name = "InDetTrackTruthFilterTool",
**  kwargs 
)

Definition at line 27 of file InDetTrackSystematicsToolsConfig.py.

27 def InDetTrackTruthFilterToolCfg(flags, name="InDetTrackTruthFilterTool", **kwargs):
28  acc = ComponentAccumulator()
29 
30  if "trackOriginTool" not in kwargs:
31  kwargs.setdefault("trackOriginTool", acc.popToolsAndMerge(
33 
34  from AthenaConfiguration.Enums import LHCPeriod
35  # 2022 recommendations (MC23a)
36  if flags.GeoModel.Run == LHCPeriod.Run3 and flags.Input.MCCampaign == Campaign.MC23a:
37  kwargs.setdefault("calibFileNomEff", "InDetTrackSystematicsTools/CalibData_22.0_2022-v00/TrackingRecommendations_prelim_rel22.root")
38  kwargs.setdefault("fFakeLoose", 0.40)
39  kwargs.setdefault("fFakeTight", 1.00)
40  elif flags.GeoModel.Run == LHCPeriod.Run3 and flags.Input.MCCampaign == Campaign.MC23d:
41  kwargs.setdefault("calibFileNomEff", "InDetTrackSystematicsTools/CalibData_22.0_2022-v00/TrackingRecommendations_prelim_rel22.root")
42  kwargs.setdefault("fFakeLoose", 0.40)
43  kwargs.setdefault("fFakeTight", 1.00)
44  # Run 2 recommendations (MC20)
45  elif flags.GeoModel.Run == LHCPeriod.Run2:
46  kwargs.setdefault("calibFileNomEff", "InDetTrackSystematicsTools/CalibData_22.0_2022-v00/TrackingRecommendations_prelim_rel22.root")
47  kwargs.setdefault("fFakeLoose", 0.10)
48  kwargs.setdefault("fFakeTight", 1.00)
49  else:
50  raise ValueError(f"InDetTrackTruthFilterTool: Recommendations not yet available for campaign {flags.Input.MCCampaign}! Please check the configuration and contact Tracking CP if you believe this message is in error.")
51 
52  acc.setPrivateTools(
53  CompFactory.InDet.InDetTrackTruthFilterTool(name, **kwargs))
54  return acc
55 

◆ InDetTrackTruthOriginToolCfg()

def InDetTrackSystematicsToolsConfig.InDetTrackTruthOriginToolCfg (   flags,
  name = "InDetTrackTruthOriginTool",
**  kwargs 
)

Definition at line 8 of file InDetTrackSystematicsToolsConfig.py.

8 def InDetTrackTruthOriginToolCfg(flags, name="InDetTrackTruthOriginTool", **kwargs):
10 
11  log = logging.getLogger("InDetTrackTruthOriginTool")
12  # this might fail if we're in AthAnalysis
13  try:
14  kwargs.setdefault("isFullPileUpTruth", flags.Digitization.PileUp
15  and flags.Digitization.DigiSteeringConf in ['StandardPileUpToolsAlg',
16  'StandardInTimeOnlyTruthPileUpToolsAlg',
17  'StandardInTimeOnlyGeantinoTruthPileUpToolsAlg'])
18  except AttributeError:
19  # assume this should be false if we're unable to load flags (temporary solution)
20  kwargs.setdefault("isFullPileUpTruth", False)
21  log.warning("Unable to load digi flags, assuming isFullPileUpTruth=False. Normal if you're in AthAnalysis.")
22 
23  acc.setPrivateTools(
24  CompFactory.InDet.InDetTrackTruthOriginTool(name, **kwargs))
25  return acc
26 

◆ JetTrackFilterToolCfg()

def InDetTrackSystematicsToolsConfig.JetTrackFilterToolCfg (   flags,
  name = "JetTrackFilterTool",
**  kwargs 
)

Definition at line 56 of file InDetTrackSystematicsToolsConfig.py.

56 def JetTrackFilterToolCfg(flags, name="JetTrackFilterTool", **kwargs):
57  acc = ComponentAccumulator()
58 
59  if "trackOriginTool" not in kwargs:
60  kwargs.setdefault("trackOriginTool", acc.popToolsAndMerge(
62 
63  from AthenaConfiguration.Enums import LHCPeriod
64  # Run 3 recommendations (MC23): https://indico.cern.ch/event/1424738/#20-run-3-recommendations-fake
65  if flags.GeoModel.Run >= LHCPeriod.Run3:
66  kwargs.setdefault("FakeUncertainty", 0.30)
67  # Run 2 recommendations (MC20): https://cds.cern.ch/record/2859907
68  else:
69  kwargs.setdefault("FakeUncertainty", 0.35)
70 
71  acc.setPrivateTools(CompFactory.InDet.JetTrackFilterTool(name, **kwargs))
72  return acc
73 

◆ TrackSystematicsAlgCfg()

def InDetTrackSystematicsToolsConfig.TrackSystematicsAlgCfg (   flags,
  name = "InDetTrackSystematicsAlg",
**  kwargs 
)

Definition at line 93 of file InDetTrackSystematicsToolsConfig.py.

93 def TrackSystematicsAlgCfg(flags, name="InDetTrackSystematicsAlg", **kwargs):
94  acc = ComponentAccumulator()
95 
96  if "TrackFilterToolLRT" not in kwargs:
97  kwargs.setdefault("TrackFilterToolLRT", acc.popToolsAndMerge(
99 
100  if "TrackFilterToolSTD" not in kwargs:
101  kwargs.setdefault("TrackFilterToolSTD", acc.popToolsAndMerge(
103 
104  acc.addEventAlgo(CompFactory.InDet.TrackSystematicsAlg(name, **kwargs))
105  return acc
InDetTrackSystematicsToolsConfig.JetTrackFilterToolCfg
def JetTrackFilterToolCfg(flags, name="JetTrackFilterTool", **kwargs)
Definition: InDetTrackSystematicsToolsConfig.py:56
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
InDetTrackSystematicsToolsConfig.InDetTrackTruthFilterToolCfg
def InDetTrackTruthFilterToolCfg(flags, name="InDetTrackTruthFilterTool", **kwargs)
Definition: InDetTrackSystematicsToolsConfig.py:27
InDetTrackSystematicsToolsConfig.TrackSystematicsAlgCfg
def TrackSystematicsAlgCfg(flags, name="InDetTrackSystematicsAlg", **kwargs)
Definition: InDetTrackSystematicsToolsConfig.py:93
InDetTrackSystematicsToolsConfig.InclusiveTrackFilterToolCfg
def InclusiveTrackFilterToolCfg(flags, name="InclusiveTrackFilterTool", **kwargs)
Definition: InDetTrackSystematicsToolsConfig.py:74
InDetTrackSystematicsToolsConfig.InDetTrackTruthOriginToolCfg
def InDetTrackTruthOriginToolCfg(flags, name="InDetTrackTruthOriginTool", **kwargs)
Definition: InDetTrackSystematicsToolsConfig.py:8