ATLAS Offline Software
Functions
InDetPhysValMonitoringConfig Namespace Reference

Functions

def extractCollectionPrefix (track_collection_name)
 
def HistogramDefinitionSvcCfg (flags, **kwargs)
 
def InDetRttTruthSelectionToolCfg (flags, name="InDetRttTruthSelectionTool", **kwargs)
 
def GoodRunsListSelectionToolCfg (flags, **kwargs)
 
def InDetVertexTruthMatchToolCfg (flags, **kwargs)
 
def InDetPhysValMonitoringToolCfg (flags, **kwargs)
 
def InDetPhysValMonitoringToolLooseCfg (flags, **kwargs)
 
def InDetPhysValMonitoringToolTightPrimaryCfg (flags, **kwargs)
 
def InDetPhysValMonitoringToolHILooseCfg (flags, **kwargs)
 
def InDetPhysValMonitoringToolGSFCfg (flags, **kwargs)
 
def InDetPhysValMonitoringToolElectronsCfg (flags, **kwargs)
 
def InDetPhysValMonitoringToolMuonsCfg (flags, **kwargs)
 
def InDetLargeD0PhysValMonitoringToolCfg (flags, **kwargs)
 
def InDetMergedLargeD0PhysValMonitoringToolCfg (flags, **kwargs)
 
def InDetLowPtRoIPhysValMonitoringToolCfg (flags, **kwargs)
 
def InDetPhysValMonitoringCfg (flags)
 

Function Documentation

◆ extractCollectionPrefix()

def InDetPhysValMonitoringConfig.extractCollectionPrefix (   track_collection_name)

Definition at line 15 of file InDetPhysValMonitoringConfig.py.

15 def extractCollectionPrefix(track_collection_name):
16  suffixes = ['Tracks', 'TrackParticles']
17  for suffix in suffixes:
18  if track_collection_name.endswith(suffix):
19  return track_collection_name.removesuffix(suffix)
20  return track_collection_name
21 
22 

◆ GoodRunsListSelectionToolCfg()

def InDetPhysValMonitoringConfig.GoodRunsListSelectionToolCfg (   flags,
**  kwargs 
)

Definition at line 75 of file InDetPhysValMonitoringConfig.py.

75 def GoodRunsListSelectionToolCfg(flags, **kwargs):
76  acc = ComponentAccumulator()
77 
78  from GoodRunsLists.GoodRunsListsDictionary import getGoodRunsLists
79  GRLDict = getGoodRunsLists()
80 
81  cvmfs = '/cvmfs/atlas.cern.ch/repo/sw/database/GroupData/'
82  grldict = {
83  '2015': cvmfs + ''.join(GRLDict['GRL2015']),
84  '2016': cvmfs + ''.join(GRLDict['GRL2016']),
85  '2017': cvmfs + ''.join(GRLDict['GRL2017_Triggerno17e33prim']),
86  '2018': cvmfs + ''.join(GRLDict['GRL2018_Triggerno17e33prim']),
87  '2022': cvmfs + ''.join(GRLDict['GRL2022']),
88  '2023': cvmfs + ''.join(GRLDict['GRL2023']),
89  '2024': cvmfs + ''.join(GRLDict['GRL2024'])
90  }
91 
92  acc.setPrivateTools(CompFactory.GoodRunsListSelectionTool(
93  name="GoodRunsListSelectionTool",
94  GoodRunsListVec=[grldict[p] for p in flags.PhysVal.IDPVM.GRL],
95  **kwargs
96  ))
97  return acc
98 
99 

◆ HistogramDefinitionSvcCfg()

def InDetPhysValMonitoringConfig.HistogramDefinitionSvcCfg (   flags,
**  kwargs 
)

Definition at line 23 of file InDetPhysValMonitoringConfig.py.

23 def HistogramDefinitionSvcCfg(flags, **kwargs):
24  acc = ComponentAccumulator()
25  if flags.Detector.GeometryID:
26  if flags.PhysVal.IDPVM.doValidateLargeD0Tracks or flags.PhysVal.IDPVM.doValidateMergedLargeD0Tracks:
27  kwargs.setdefault("DefinitionSource", "InDetPVMPlotDefLRT.xml")
28  else:
29  kwargs.setdefault("DefinitionSource", "InDetPVMPlotDefRun2.xml")
30  elif flags.Detector.GeometryITk:
31  kwargs.setdefault("DefinitionSource", "InDetPVMPlotDefITK.xml")
32  kwargs.setdefault("DefinitionFormat", "text/xml")
33  histoSvc = CompFactory.HistogramDefinitionSvc(**kwargs)
34  acc.addService(histoSvc)
35  return acc
36 
37 

◆ InDetLargeD0PhysValMonitoringToolCfg()

def InDetPhysValMonitoringConfig.InDetLargeD0PhysValMonitoringToolCfg (   flags,
**  kwargs 
)

Definition at line 357 of file InDetPhysValMonitoringConfig.py.

357 def InDetLargeD0PhysValMonitoringToolCfg(flags, **kwargs):
358  acc = ComponentAccumulator()
359 
360  kwargs.setdefault("SubFolder", 'LRT/')
361  kwargs.setdefault("TruthSelectionTool", acc.popToolsAndMerge(
363  kwargs.setdefault("TrackParticleContainerName",
364  'InDetLargeD0TrackParticles'
365  if flags.Tracking.storeSeparateLargeD0Container else
366  'InDetTrackParticles')
367  kwargs.setdefault("useTrackSelection", True)
368 
369  acc.setPrivateTools(acc.popToolsAndMerge(InDetPhysValMonitoringToolCfg(
370  flags, name='InDetPhysValMonitoringToolLargeD0', **kwargs)))
371  return acc
372 
373 

◆ InDetLowPtRoIPhysValMonitoringToolCfg()

def InDetPhysValMonitoringConfig.InDetLowPtRoIPhysValMonitoringToolCfg (   flags,
**  kwargs 
)

Definition at line 390 of file InDetPhysValMonitoringConfig.py.

390 def InDetLowPtRoIPhysValMonitoringToolCfg(flags, **kwargs):
391  acc = ComponentAccumulator()
392  kwargs.setdefault("SubFolder", 'LowPtRoI/') #Subfolder
393  kwargs.setdefault("TruthSelectionTool", acc.popToolsAndMerge(
394  InDetRttTruthSelectionToolCfg(flags,minPt=100)))
395  kwargs.setdefault("TrackParticleContainerName",
396  'InDetLowPtRoITrackParticles')
397  acc.setPrivateTools(acc.popToolsAndMerge(InDetPhysValMonitoringToolCfg(
398  flags, name='InDetPhysValMonitoringToolLowPtRoI', **kwargs)))
399 
400  return acc
401 
402 

◆ InDetMergedLargeD0PhysValMonitoringToolCfg()

def InDetPhysValMonitoringConfig.InDetMergedLargeD0PhysValMonitoringToolCfg (   flags,
**  kwargs 
)

Definition at line 374 of file InDetPhysValMonitoringConfig.py.

374 def InDetMergedLargeD0PhysValMonitoringToolCfg(flags, **kwargs):
375  acc = ComponentAccumulator()
376 
377  kwargs.setdefault("SubFolder", 'LRTMerged/')
378  kwargs.setdefault("TruthSelectionTool", acc.popToolsAndMerge(
380  kwargs.setdefault("TrackParticleContainerName",
381  'InDetWithLRTTrackParticles'
382  if flags.Tracking.storeSeparateLargeD0Container else
383  'InDetTrackParticles')
384  kwargs.setdefault("useTrackSelection", True)
385 
386  acc.setPrivateTools(acc.popToolsAndMerge(InDetPhysValMonitoringToolCfg(
387  flags, name='InDetPhysValMonitoringToolMergedLargeD0', **kwargs)))
388  return acc
389 

◆ InDetPhysValMonitoringCfg()

def InDetPhysValMonitoringConfig.InDetPhysValMonitoringCfg (   flags)

Definition at line 403 of file InDetPhysValMonitoringConfig.py.

403 def InDetPhysValMonitoringCfg(flags):
404  acc = ComponentAccumulator()
405 
406  if flags.PhysVal.IDPVM.doValidateMergedLargeD0Tracks:
407  from DerivationFrameworkInDet.InDetToolsConfig import InDetLRTMergeCfg
408  acc.merge(InDetLRTMergeCfg(flags))
409 
410  mons = [(True,
411  InDetPhysValMonitoringToolCfg),
412  (flags.PhysVal.IDPVM.doValidateMuonMatchedTracks,
413  InDetPhysValMonitoringToolMuonsCfg),
414  (flags.PhysVal.IDPVM.doValidateElectronMatchedTracks,
415  InDetPhysValMonitoringToolElectronsCfg),
416  (flags.PhysVal.IDPVM.doValidateLargeD0Tracks,
417  InDetLargeD0PhysValMonitoringToolCfg),
418  (flags.PhysVal.IDPVM.doValidateMergedLargeD0Tracks,
419  InDetMergedLargeD0PhysValMonitoringToolCfg),
420  (flags.PhysVal.IDPVM.doValidateLowPtRoITracks,
421  InDetLowPtRoIPhysValMonitoringToolCfg),
422  (flags.PhysVal.IDPVM.doValidateLooseTracks,
423  InDetPhysValMonitoringToolLooseCfg),
424  (flags.PhysVal.IDPVM.doValidateTightPrimaryTracks,
425  InDetPhysValMonitoringToolTightPrimaryCfg),
426  (flags.PhysVal.IDPVM.doValidateHILoose,
427  InDetPhysValMonitoringToolHILooseCfg),
428  (flags.PhysVal.IDPVM.doValidateGSFTracks,
429  InDetPhysValMonitoringToolGSFCfg)
430  ]
431 
432  tools = []
433  for enabled, creator in mons:
434  if enabled:
435  tools.append(acc.popToolsAndMerge(creator(flags)))
436 
437  for col in flags.PhysVal.IDPVM.validateExtraTrackCollections:
438  prefix = extractCollectionPrefix(col)
439  tools.append(acc.popToolsAndMerge(InDetPhysValMonitoringToolCfg(
440  flags, name='InDetPhysValMonitoringTool'+prefix,
441  SubFolder=prefix+'Tracks/',
442  TrackParticleContainerName=prefix+'TrackParticles'
443  )))
444 
445  from PhysValMonitoring.PhysValMonitoringConfig import PhysValMonitoringCfg
446  acc.merge(PhysValMonitoringCfg(flags, tools=tools))
447  return acc

◆ InDetPhysValMonitoringToolCfg()

def InDetPhysValMonitoringConfig.InDetPhysValMonitoringToolCfg (   flags,
**  kwargs 
)

Definition at line 106 of file InDetPhysValMonitoringConfig.py.

106 def InDetPhysValMonitoringToolCfg(flags, **kwargs):
107  from InDetPhysValMonitoring.InDetPhysValDecorationConfig import (
108  AddDecoratorIfNeededCfg)
109  acc = AddDecoratorIfNeededCfg(flags)
110  kwargs.setdefault("useTrackSelection", False)
111  kwargs.setdefault("EnableLumi", False)
112 
113  acc.merge(HistogramDefinitionSvcCfg(flags))
114  kwargs.setdefault('VertexContainerName', flags.PhysVal.IDPVM.PrimaryVertexContainer)
115 
116  # if we are running with sumpT(w) hard scatter selection, we need to schedule jet finding
117  if flags.PhysVal.IDPVM.hardScatterStrategy in [2, 3]:
118 
119  from InDetPhysValMonitoring.addRecoJetsConfig import (
120  AddRecoJetsIfNotExistingCfg)
121  acc.merge(AddRecoJetsIfNotExistingCfg(
122  flags, flags.PhysVal.IDPVM.jetsNameForHardScatter))
123 
124  # if we are running with the GNN hard scatter selection, we need to schedule the dependencies
125  if flags.PhysVal.IDPVM.hardScatterStrategy == 3:
126  from InDetConfig.InDetGNNHardScatterSelectionConfig import (
127  GNNSequenceCfg)
128  acc.merge(GNNSequenceCfg(flags))
129 
130  # if we are running with the HGam hard scatter selection, we need to schedule the NN
131  if flags.PhysVal.IDPVM.hardScatterStrategy == 4:
132  from DerivationFrameworkHiggs.HIGG1D1CustomVertexConfig import DiPhotonVertexCfg
133  acc.merge(DiPhotonVertexCfg(flags))
134 
135  if flags.PhysVal.IDPVM.GRL:
136  kwargs.setdefault("useGRL", True)
137  kwargs.setdefault('GoodRunsListSelectionTool', acc.popToolsAndMerge(
139 
140  kwargs.setdefault("doIDTIDEPlots", flags.PhysVal.IDPVM.doIDTIDE)
141 
142  if flags.PhysVal.IDPVM.doValidateTracksInJets:
143  kwargs.setdefault("JetContainerName", flags.PhysVal.IDPVM.jetCollection)
144  kwargs.setdefault("FillTrackInJetPlots", True)
145  kwargs.setdefault('JetAbsEtaMin', 0)
146  kwargs.setdefault('JetAbsEtaMax', flags.PhysVal.IDPVM.JetAbsEtaMax)
147  kwargs.setdefault('JetPtMin', flags.PhysVal.IDPVM.JetPtMin)
148  kwargs.setdefault('JetPtMax', flags.PhysVal.IDPVM.JetPtMax)
149  kwargs.setdefault('maxTrkJetDR', flags.PhysVal.IDPVM.maxTrkJetDR)
150  kwargs.setdefault("FillTrackInBJetPlots",
151  flags.PhysVal.IDPVM.doValidateTracksInBJets)
152  else:
153  kwargs.setdefault("JetContainerName", '')
154  kwargs.setdefault("FillTrackInJetPlots", False)
155 
156 
157  if flags.Input.isMC and not flags.PhysVal.IDPVM.doRecoOnly:
158  kwargs.setdefault("TruthParticleContainerName", "TruthParticles")
159  if 'TruthSelectionTool' not in kwargs:
160  kwargs.setdefault("TruthSelectionTool", acc.popToolsAndMerge(
162 
163  doHyyHSSelection = flags.PhysVal.IDPVM.hardScatterStrategy == 4
164  if 'hardScatterSelectionTool' not in kwargs:
165  from InDetConfig.InDetHardScatterSelectionToolConfig import (
166  InDetHardScatterSelectionToolCfg)
167  kwargs.setdefault("hardScatterSelectionTool", acc.popToolsAndMerge(
169  flags,
170  RedoHardScatter=not doHyyHSSelection,
171  SelectionMode=flags.PhysVal.IDPVM.hardScatterStrategy,
172  # make sure the HS selection tool picks up the correct jets
173  JetContainer=flags.PhysVal.IDPVM.jetsNameForHardScatter,
174  VertexContainer=flags.PhysVal.IDPVM.PrimaryVertexContainer
175  )))
176 
177  if doHyyHSSelection:
178  assert flags.PhysVal.IDPVM.PrimaryVertexContainer == 'HggPrimaryVertices'
179 
180  kwargs.setdefault("FillTruthToRecoNtuple",
181  flags.PhysVal.IDPVM.doValidateTruthToRecoNtuple)
182  kwargs.setdefault("doTruthOriginPlots",
183  flags.PhysVal.IDPVM.doTruthOriginPlots)
184  kwargs.setdefault("doDuplicatePlots",
185  flags.PhysVal.IDPVM.doDuplicatePlots)
186  kwargs.setdefault("doPerAuthorPlots",
187  flags.PhysVal.IDPVM.doPerAuthorPlots)
188  kwargs.setdefault("doHitLevelPlots",
189  flags.PhysVal.IDPVM.doHitLevelPlots)
190 
191  # adding the VertexTruthMatchingTool
192  if not flags.PhysVal.IDPVM.doIDTIDE:
193  kwargs.setdefault("useVertexTruthMatchTool", True)
194  kwargs.setdefault("VertexTruthMatchTool", acc.popToolsAndMerge(
196 
197  if "trackTruthOriginTool" not in kwargs:
198  from InDetTrackSystematicsTools.InDetTrackSystematicsToolsConfig import InDetTrackTruthOriginToolCfg
199  kwargs.setdefault("trackTruthOriginTool", acc.popToolsAndMerge(
201 
202  # Options for Truth Strategy : Requires full pile-up truth containers for some
203  if flags.PhysVal.IDPVM.setTruthStrategy in ['All', 'PileUp']:
204  if not("xAOD::TruthPileupEventContainer#TruthPileupEvents"
205  in flags.Input.TypedCollections):
206  print('WARNING Truth Strategy for InDetPhysValMonitoring set to %s but TruthPileupEvents are missing in the input' % (flags.PhysVal.IDPVM.setTruthStrategy))
207  kwargs.setdefault("PileupSwitch",
208  flags.PhysVal.IDPVM.setTruthStrategy)
209 
210  elif flags.PhysVal.IDPVM.setTruthStrategy != 'HardScatter':
211  print('WARNING Truth Strategy for for InDetPhysValMonitoring set to invalid option %s; valid flags are ["HardScatter", "All", "PileUp"]' % (
212  flags.PhysVal.IDPVM.setTruthStrategy))
213 
214  else:
215  # disable truth monitoring for data
216  kwargs.setdefault("TruthParticleContainerName", '')
217  kwargs.setdefault("TruthVertexContainerName", '')
218  kwargs.setdefault("TruthEvents", '')
219  kwargs.setdefault("TruthPileupEvents", '')
220  kwargs.setdefault("TruthSelectionTool", None)
221  kwargs.setdefault("FillTruthToRecoNtuple", False)
222 
223  if flags.Detector.GeometryITk:
224  # Disable vertex container for now
225  kwargs.setdefault("doTRTExtensionPlots", False)
226  kwargs.setdefault("isITk", True)
227 
228  if flags.PhysVal.IDPVM.doTechnicalEfficiency:
229  kwargs.setdefault("fillTechnicalEfficiency", True)
230  kwargs.setdefault("EtaBins", flags.Tracking.ITkMainPass.etaBins if flags.Detector.GeometryITk
231  else [-1, 9999.]) # Configurable eta bins for determining a "reconstructable" particle
232  kwargs.setdefault("MinNumberClusters", flags.Tracking.ITkMainPass.minClusters if flags.Detector.GeometryITk
233  else [flags.Tracking.MainPass.minClusters]) # Configurable hits per eta bins for determining a "reconstructable" particle
234 
235  # Control the number of output histograms
236  if flags.PhysVal.IDPVM.doPhysValOutput:
237  kwargs.setdefault("DetailLevel", 100)
238 
239  elif flags.PhysVal.IDPVM.doExpertOutput:
240  kwargs.setdefault("DetailLevel", 200)
241 
242  # for IDTIDE derivation
243  if flags.PhysVal.IDPVM.doIDTIDE:
244  kwargs.setdefault("doIDTIDEPlots", True)
245  kwargs.setdefault("JetContainerName", 'AntiKt4EMPFlowJets')
246  kwargs.setdefault("FillTrackInJetPlots", True)
247 
248  # Set Jet cuts used for CTIDE studies
249  kwargs.setdefault('JetAbsEtaMin', 0)
250  kwargs.setdefault('JetAbsEtaMax',
251  flags.PhysVal.IDPVM.JetAbsEtaMax)
252  kwargs.setdefault('maxTrkJetDR',
253  flags.PhysVal.IDPVM.maxTrkJetDR)
254  # Pt cuts are in GeV
255  kwargs.setdefault('JetPtMin', 100)
256  kwargs.setdefault('JetPtMax', 5000)
257 
258  kwargs.setdefault("doPRW", flags.PhysVal.IDPVM.doPRW)
259 
260  acc.setPrivateTools(CompFactory.InDetPhysValMonitoringTool(**kwargs))
261  return acc
262 
263 

◆ InDetPhysValMonitoringToolElectronsCfg()

def InDetPhysValMonitoringConfig.InDetPhysValMonitoringToolElectronsCfg (   flags,
**  kwargs 
)

Definition at line 323 of file InDetPhysValMonitoringConfig.py.

323 def InDetPhysValMonitoringToolElectronsCfg(flags, **kwargs):
324  acc = ComponentAccumulator()
325 
326  kwargs.setdefault("TruthSelectionTool", acc.popToolsAndMerge(
328  flags, name="AthTruthSelectionToolForIDPVM_Electrons",
329  pdgId=11,
330  minPt=5000.
331  )))
332  kwargs.setdefault("onlyFillTruthMatched", True)
333  kwargs.setdefault("SubFolder", 'Electrons/')
334 
335  acc.setPrivateTools(acc.popToolsAndMerge(InDetPhysValMonitoringToolCfg(
336  flags, name='InDetPhysValMonitoringToolElectrons', **kwargs)))
337  return acc
338 
339 

◆ InDetPhysValMonitoringToolGSFCfg()

def InDetPhysValMonitoringConfig.InDetPhysValMonitoringToolGSFCfg (   flags,
**  kwargs 
)

Definition at line 315 of file InDetPhysValMonitoringConfig.py.

315 def InDetPhysValMonitoringToolGSFCfg(flags, **kwargs):
316  kwargs.setdefault("SubFolder", 'GSF/')
317  kwargs.setdefault("TrackParticleContainerName", 'GSFTrackParticles')
318  kwargs.setdefault("useTrackSelection", True)
320  flags, name="InDetPhysValMonitoringToolGSF", **kwargs)
321 
322 

◆ InDetPhysValMonitoringToolHILooseCfg()

def InDetPhysValMonitoringConfig.InDetPhysValMonitoringToolHILooseCfg (   flags,
**  kwargs 
)

Definition at line 298 of file InDetPhysValMonitoringConfig.py.

298 def InDetPhysValMonitoringToolHILooseCfg(flags, **kwargs):
299  acc = ComponentAccumulator()
300 
301  if 'TrackSelectionTool' not in kwargs:
302  from InDetConfig.InDetTrackSelectionToolConfig import (
303  InDetTrackSelectionTool_HILoose_Cfg)
304  kwargs.setdefault("TrackSelectionTool", acc.popToolsAndMerge(
306 
307  kwargs.setdefault("SubFolder", 'HILoose/')
308  kwargs.setdefault("useTrackSelection", True)
309 
310  acc.setPrivateTools(acc.popToolsAndMerge(InDetPhysValMonitoringToolCfg(
311  flags, name="InDetPhysValMonitoringToolHILoose", **kwargs)))
312  return acc
313 
314 

◆ InDetPhysValMonitoringToolLooseCfg()

def InDetPhysValMonitoringConfig.InDetPhysValMonitoringToolLooseCfg (   flags,
**  kwargs 
)

Definition at line 264 of file InDetPhysValMonitoringConfig.py.

264 def InDetPhysValMonitoringToolLooseCfg(flags, **kwargs):
265  acc = ComponentAccumulator()
266 
267  if 'TrackSelectionTool' not in kwargs:
268  from InDetConfig.InDetTrackSelectionToolConfig import (
269  InDetTrackSelectionTool_Loose_Cfg)
270  kwargs.setdefault("TrackSelectionTool", acc.popToolsAndMerge(
272 
273  kwargs.setdefault("SubFolder", 'Loose/')
274  kwargs.setdefault("useTrackSelection", True)
275 
276  acc.setPrivateTools(acc.popToolsAndMerge(InDetPhysValMonitoringToolCfg(
277  flags, name="InDetPhysValMonitoringToolLoose", **kwargs)))
278  return acc
279 
280 

◆ InDetPhysValMonitoringToolMuonsCfg()

def InDetPhysValMonitoringConfig.InDetPhysValMonitoringToolMuonsCfg (   flags,
**  kwargs 
)

Definition at line 340 of file InDetPhysValMonitoringConfig.py.

340 def InDetPhysValMonitoringToolMuonsCfg(flags, **kwargs):
341  acc = ComponentAccumulator()
342 
343  kwargs.setdefault("TruthSelectionTool", acc.popToolsAndMerge(
345  flags, name="AthTruthSelectionToolForIDPVM_Muons",
346  pdgId=13,
347  minPt=5000.
348  )))
349  kwargs.setdefault("onlyFillTruthMatched", True)
350  kwargs.setdefault("SubFolder", 'Muons/')
351 
352  acc.setPrivateTools(acc.popToolsAndMerge(InDetPhysValMonitoringToolCfg(
353  flags, name='InDetPhysValMonitoringToolMuons', **kwargs)))
354  return acc
355 
356 

◆ InDetPhysValMonitoringToolTightPrimaryCfg()

def InDetPhysValMonitoringConfig.InDetPhysValMonitoringToolTightPrimaryCfg (   flags,
**  kwargs 
)

Definition at line 281 of file InDetPhysValMonitoringConfig.py.

281 def InDetPhysValMonitoringToolTightPrimaryCfg(flags, **kwargs):
282  acc = ComponentAccumulator()
283 
284  if 'TrackSelectionTool' not in kwargs:
285  from InDetConfig.InDetTrackSelectionToolConfig import (
286  InDetTrackSelectionTool_TightPrimary_Cfg)
287  kwargs.setdefault("TrackSelectionTool", acc.popToolsAndMerge(
289 
290  kwargs.setdefault("SubFolder", 'TightPrimary/')
291  kwargs.setdefault("useTrackSelection", True)
292 
293  acc.setPrivateTools(acc.popToolsAndMerge(InDetPhysValMonitoringToolCfg(
294  flags, name="InDetPhysValMonitoringToolTightPrimary", **kwargs)))
295  return acc
296 
297 

◆ InDetRttTruthSelectionToolCfg()

def InDetPhysValMonitoringConfig.InDetRttTruthSelectionToolCfg (   flags,
  name = "InDetRttTruthSelectionTool",
**  kwargs 
)

Definition at line 38 of file InDetPhysValMonitoringConfig.py.

39  flags, name="InDetRttTruthSelectionTool", **kwargs):
40  acc = ComponentAccumulator()
41 
42  kwargs.setdefault("requireStable", True)
43  kwargs.setdefault("requireCharged", True)
44  kwargs.setdefault("selectedCharge", flags.PhysVal.IDPVM.selectedCharge)
45  kwargs.setdefault("requireOnlyPrimary",
46  True if kwargs.pop("OnlyDressPrimaryTracks", True)
47  else False)
48  kwargs.setdefault("maxProdVertRadius",
49  flags.PhysVal.IDPVM.maxProdVertRadius)
50 
51  if flags.Detector.GeometryID:
52  if flags.PhysVal.IDPVM.doValidateLargeD0Tracks or flags.PhysVal.IDPVM.doValidateMergedLargeD0Tracks:
53  kwargs.setdefault("maxEta", 3.0)
54  else:
55  kwargs.setdefault("maxEta", 2.5)
56  elif flags.Detector.GeometryITk:
57  kwargs.setdefault("maxEta", 4.0)
58 
59  kwargs.setdefault("minPt", flags.PhysVal.IDPVM.truthMinPt)
60  kwargs.setdefault("ancestorList", flags.PhysVal.IDPVM.ancestorIDs)
61  kwargs.setdefault("requireSiHit", flags.PhysVal.IDPVM.requiredSiHits)
62 
63  if "radiusCylinder" in kwargs or "zDisc" in kwargs:
64  from TrkConfig.AtlasExtrapolatorConfig import AtlasExtrapolatorCfg
65  extrapolator = acc.popToolsAndMerge(AtlasExtrapolatorCfg(flags))
66  acc.addPublicTool(extrapolator) # TODO: migrate to private?
67  kwargs.setdefault("Extrapolator", extrapolator)
68  else:
69  kwargs.setdefault("Extrapolator", None)
70 
71  acc.setPrivateTools(CompFactory.AthTruthSelectionTool(name, **kwargs))
72  return acc
73 
74 

◆ InDetVertexTruthMatchToolCfg()

def InDetPhysValMonitoringConfig.InDetVertexTruthMatchToolCfg (   flags,
**  kwargs 
)

Definition at line 100 of file InDetPhysValMonitoringConfig.py.

100 def InDetVertexTruthMatchToolCfg(flags, **kwargs):
101  acc = ComponentAccumulator()
102  acc.setPrivateTools(CompFactory.InDetVertexTruthMatchTool(**kwargs))
103  return acc
104 
105 
python.InDetHardScatterSelectionToolConfig.InDetHardScatterSelectionToolCfg
def InDetHardScatterSelectionToolCfg(flags, name="InDetHardScatterSelectionTool", **kwargs)
Definition: InDetHardScatterSelectionToolConfig.py:7
python.GoodRunsListsDictionary.getGoodRunsLists
def getGoodRunsLists()
Definition: GoodRunsListsDictionary.py:3
python.InDetTrackSelectionToolConfig.InDetTrackSelectionTool_TightPrimary_Cfg
def InDetTrackSelectionTool_TightPrimary_Cfg(flags, name="InDetTrackSelectionTool_TightPrimary", **kwargs)
Configs based on CutLevel TightPrimary #####.
Definition: InDetTrackSelectionToolConfig.py:63
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
InDetPhysValMonitoringConfig.GoodRunsListSelectionToolCfg
def GoodRunsListSelectionToolCfg(flags, **kwargs)
Definition: InDetPhysValMonitoringConfig.py:75
InDetPhysValMonitoringConfig.InDetPhysValMonitoringToolGSFCfg
def InDetPhysValMonitoringToolGSFCfg(flags, **kwargs)
Definition: InDetPhysValMonitoringConfig.py:315
InDetPhysValMonitoringConfig.InDetPhysValMonitoringToolMuonsCfg
def InDetPhysValMonitoringToolMuonsCfg(flags, **kwargs)
Definition: InDetPhysValMonitoringConfig.py:340
InDetPhysValMonitoringConfig.InDetLowPtRoIPhysValMonitoringToolCfg
def InDetLowPtRoIPhysValMonitoringToolCfg(flags, **kwargs)
Definition: InDetPhysValMonitoringConfig.py:390
InDetPhysValMonitoringConfig.InDetPhysValMonitoringToolElectronsCfg
def InDetPhysValMonitoringToolElectronsCfg(flags, **kwargs)
Definition: InDetPhysValMonitoringConfig.py:323
InDetPhysValMonitoringConfig.InDetPhysValMonitoringCfg
def InDetPhysValMonitoringCfg(flags)
Definition: InDetPhysValMonitoringConfig.py:403
python.InDetTrackSelectionToolConfig.InDetTrackSelectionTool_Loose_Cfg
def InDetTrackSelectionTool_Loose_Cfg(flags, name="InDetTrackSelectionTool_Loose", **kwargs)
Configs based on CutLevel Loose #####.
Definition: InDetTrackSelectionToolConfig.py:36
InDetPhysValMonitoringConfig.InDetVertexTruthMatchToolCfg
def InDetVertexTruthMatchToolCfg(flags, **kwargs)
Definition: InDetPhysValMonitoringConfig.py:100
python.AtlasExtrapolatorConfig.AtlasExtrapolatorCfg
def AtlasExtrapolatorCfg(flags, name='AtlasExtrapolator')
Definition: AtlasExtrapolatorConfig.py:63
InDetPhysValMonitoringConfig.InDetMergedLargeD0PhysValMonitoringToolCfg
def InDetMergedLargeD0PhysValMonitoringToolCfg(flags, **kwargs)
Definition: InDetPhysValMonitoringConfig.py:374
python.HIGG1D1CustomVertexConfig.DiPhotonVertexCfg
def DiPhotonVertexCfg(flags)
Definition: HIGG1D1CustomVertexConfig.py:81
PhysValMonitoringConfig.PhysValMonitoringCfg
def PhysValMonitoringCfg(flags, name="PhysValMonManager", tools=None, **kwargs)
Definition: PhysValMonitoringConfig.py:81
InDetPhysValMonitoringConfig.InDetPhysValMonitoringToolHILooseCfg
def InDetPhysValMonitoringToolHILooseCfg(flags, **kwargs)
Definition: InDetPhysValMonitoringConfig.py:298
InDetPhysValMonitoringConfig.InDetRttTruthSelectionToolCfg
def InDetRttTruthSelectionToolCfg(flags, name="InDetRttTruthSelectionTool", **kwargs)
Definition: InDetPhysValMonitoringConfig.py:38
InDetPhysValMonitoringConfig.InDetPhysValMonitoringToolCfg
def InDetPhysValMonitoringToolCfg(flags, **kwargs)
Definition: InDetPhysValMonitoringConfig.py:106
addRecoJetsConfig.AddRecoJetsIfNotExistingCfg
def AddRecoJetsIfNotExistingCfg(flags, jetCollection)
Definition: addRecoJetsConfig.py:3
InDetPhysValMonitoringConfig.extractCollectionPrefix
def extractCollectionPrefix(track_collection_name)
Definition: InDetPhysValMonitoringConfig.py:15
InDetPhysValMonitoringConfig.InDetPhysValMonitoringToolTightPrimaryCfg
def InDetPhysValMonitoringToolTightPrimaryCfg(flags, **kwargs)
Definition: InDetPhysValMonitoringConfig.py:281
InDetPhysValMonitoringConfig.InDetPhysValMonitoringToolLooseCfg
def InDetPhysValMonitoringToolLooseCfg(flags, **kwargs)
Definition: InDetPhysValMonitoringConfig.py:264
InDetPhysValMonitoringConfig.HistogramDefinitionSvcCfg
def HistogramDefinitionSvcCfg(flags, **kwargs)
Definition: InDetPhysValMonitoringConfig.py:23
print
void print(char *figname, TCanvas *c1)
Definition: TRTCalib_StrawStatusPlots.cxx:25
TCS::join
std::string join(const std::vector< std::string > &v, const char c=',')
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/Root/StringUtils.cxx:10
InDetPhysValMonitoringConfig.InDetLargeD0PhysValMonitoringToolCfg
def InDetLargeD0PhysValMonitoringToolCfg(flags, **kwargs)
Definition: InDetPhysValMonitoringConfig.py:357
python.InDetTrackSelectionToolConfig.InDetTrackSelectionTool_HILoose_Cfg
def InDetTrackSelectionTool_HILoose_Cfg(flags, name="InDetTrackSelectionTool_HILoose", **kwargs)
Definition: InDetTrackSelectionToolConfig.py:68
python.InDetToolsConfig.InDetLRTMergeCfg
def InDetLRTMergeCfg(flags, name="InDetLRTMerge", **kwargs)
Definition: InDetToolsConfig.py:14
python.InDetGNNHardScatterSelectionConfig.GNNSequenceCfg
def GNNSequenceCfg(flags)
Definition: InDetGNNHardScatterSelectionConfig.py:124
InDetPhysValDecorationConfig.AddDecoratorIfNeededCfg
def AddDecoratorIfNeededCfg(flags)
Definition: InDetPhysValDecorationConfig.py:188
InDetTrackSystematicsToolsConfig.InDetTrackTruthOriginToolCfg
def InDetTrackTruthOriginToolCfg(flags, name="InDetTrackTruthOriginTool", **kwargs)
Definition: InDetTrackSystematicsToolsConfig.py:6