ATLAS Offline Software
Loading...
Searching...
No Matches
python.LLPToolsConfig Namespace Reference

Functions

 VSITrackParticleThinningCfg (flags, name, **kwargs)
 JetTrackParticleThinningCfg (flags, name, **kwargs)
 JetLargeD0TrackParticleThinningCfg (flags, name, **kwargs)
 TauLRTThinningCfg (flags, name, **kwargs)
 RCJetSubstructureAugCfg (flags, name, **kwargs)
 AugmentationToolLeadingJetsCfg (flags)
 TrackParametersKVUCfg (flags, name, **kwargs)
 TrackParticleCaloCellDecoratorCfg (flags, name, **kwargs)
 PixeldEdxTrackParticleThinningCfg (flags, name, **kwargs)
 LLP1TriggerSkimmingToolCfg (flags, name, TriggerListsHelper, **kwargs)
 LLP1TriggerMatchingToolRun2Cfg (flags, name, **kwargs)
 LRTMuonMergerAlg (flags, name="LLP1_MuonLRTMergingAlg", **kwargs)
 ZeroPixelHitMuonMergerAlgCfg (flags, name='LLP1_MuonZPHMergingAlg', **kwargs)
 LRTElectronMergerAlg (flags, name="LLP1_ElectronLRTMergingAlg", **kwargs)
 PhotonIsEMSelectorsCfg (flags)
 LRTElectronLHSelectorsCfg (flags)
 RecoverZeroPixelHitMuonsCfg (flags)
 LLP1eeMassToolCfg (flags)
 LLP1mumuMassToolCfg (flags)

Function Documentation

◆ AugmentationToolLeadingJetsCfg()

AugmentationToolLeadingJetsCfg ( flags)
Configure the RC jet substructure computation tool

Definition at line 82 of file LLPToolsConfig.py.

82def AugmentationToolLeadingJetsCfg(flags):
83 """Configure the RC jet substructure computation tool"""
84 acc = ComponentAccumulator()
85 acc.addPublicTool(CompFactory.DerivationFramework.AugmentationToolLeadingJets(name = "LLP1AugmentationToolLeadingJets"),
86 primary = True)
87 return acc
88
89
90# Vertex constraint tool

◆ JetLargeD0TrackParticleThinningCfg()

JetLargeD0TrackParticleThinningCfg ( flags,
name,
** kwargs )
Configure the track particle merger tool

Definition at line 31 of file LLPToolsConfig.py.

31def JetLargeD0TrackParticleThinningCfg(flags, name, **kwargs):
32 """Configure the track particle merger tool"""
33 acc = ComponentAccumulator()
34 JetLargeD0TrackParticleThinning = CompFactory.DerivationFramework.JetLargeD0TrackParticleThinning
35 acc.addPublicTool(JetLargeD0TrackParticleThinning(name, **kwargs),
36 primary = True)
37 return acc
38

◆ JetTrackParticleThinningCfg()

JetTrackParticleThinningCfg ( flags,
name,
** kwargs )
Configure the track particle merger tool

Definition at line 22 of file LLPToolsConfig.py.

22def JetTrackParticleThinningCfg(flags, name, **kwargs):
23 """Configure the track particle merger tool"""
24 acc = ComponentAccumulator()
25 JetTrackParticleThinning = CompFactory.DerivationFramework.JetTrackParticleThinning
26 acc.addPublicTool(JetTrackParticleThinning(name, **kwargs),
27 primary = True)
28 return acc
29
30# Thinning for LRT tracks in jets

◆ LLP1eeMassToolCfg()

LLP1eeMassToolCfg ( flags)
Di-electron invariant mass (OS loose-electron pairs). Used to gate the
photon-cone track thinning: only events with a di-lepton mass > 40 GeV keep
all tracks within dR < 0.6 of photons.

Definition at line 476 of file LLPToolsConfig.py.

476def LLP1eeMassToolCfg(flags):
477 """Di-electron invariant mass (OS loose-electron pairs). Used to gate the
478 photon-cone track thinning: only events with a di-lepton mass > 40 GeV keep
479 all tracks within dR < 0.6 of photons."""
480 acc = ComponentAccumulator()
481
482 requirementElectrons = " && ".join(
483 ["(Electrons.DFCommonElectronsLHLoose)", "(Electrons.pt > 9.5*GeV)"]
484 )
485
486 acc.setPrivateTools(
487 CompFactory.DerivationFramework.EGInvariantMassTool(
488 name="LLP1eeMassTool",
489 Object1Requirements=requirementElectrons,
490 Object2Requirements=requirementElectrons,
491 StoreGateEntryName="LLP1_DiElectronMass",
492 Mass1Hypothesis=0.511 * MeV,
493 Mass2Hypothesis=0.511 * MeV,
494 Container1Name="Electrons",
495 Container2Name="Electrons",
496 CheckCharge=True,
497 DoTransverseMass=False,
498 MinDeltaR=0.0,
499 )
500 )
501 return acc
502
503

◆ LLP1mumuMassToolCfg()

LLP1mumuMassToolCfg ( flags)
Di-muon invariant mass (OS muon pairs). Used to gate the photon-cone
track thinning.

Definition at line 504 of file LLPToolsConfig.py.

504def LLP1mumuMassToolCfg(flags):
505 """Di-muon invariant mass (OS muon pairs). Used to gate the photon-cone
506 track thinning."""
507 acc = ComponentAccumulator()
508
509 requirementMuons = " && ".join(
510 ["Muons.pt>4.5*GeV", "abs(Muons.eta)<2.7", "Muons.DFCommonMuonPassPreselection"]
511 )
512
513 acc.setPrivateTools(
514 CompFactory.DerivationFramework.EGInvariantMassTool(
515 name="LLP1mumuMassTool",
516 Object1Requirements=requirementMuons,
517 Object2Requirements=requirementMuons,
518 StoreGateEntryName="LLP1_DiMuonMass",
519 Mass1Hypothesis=105 * MeV,
520 Mass2Hypothesis=105 * MeV,
521 Container1Name="Muons",
522 Container2Name="Muons",
523 CheckCharge=True,
524 DoTransverseMass=False,
525 MinDeltaR=0.0,
526 )
527 )
528 return acc

◆ LLP1TriggerMatchingToolRun2Cfg()

LLP1TriggerMatchingToolRun2Cfg ( flags,
name,
** kwargs )
Configure the common trigger matching for run 2 DAODs

Definition at line 221 of file LLPToolsConfig.py.

221def LLP1TriggerMatchingToolRun2Cfg(flags, name, **kwargs):
222 """Configure the common trigger matching for run 2 DAODs"""
223
224 triggerList = kwargs['TriggerList']
225 outputContainerPrefix = kwargs['OutputContainerPrefix']
226
227 kwargs.setdefault('InputElectrons', 'LRTElectrons')
228 kwargs.setdefault('InputMuons', 'MuonsLRT')
229 kwargs.setdefault('DRThreshold', None)
230
231 acc = ComponentAccumulator()
232
233 # Create trigger matching decorations
234 from DerivationFrameworkTrigger.TriggerMatchingToolConfig import TriggerMatchingToolCfg
235 if kwargs['DRThreshold'] is None:
236 PhysCommonTriggerMatchingTool = acc.getPrimaryAndMerge(TriggerMatchingToolCfg(
237 flags,
238 name=name,
239 ChainNames = triggerList,
240 OutputContainerPrefix = outputContainerPrefix,
241 InputElectrons = kwargs['InputElectrons'],
242 InputMuons = kwargs['InputMuons']))
243 else:
244 PhysCommonTriggerMatchingTool = acc.getPrimaryAndMerge(TriggerMatchingToolCfg(
245 flags,
246 name=name,
247 ChainNames = triggerList,
248 OutputContainerPrefix = outputContainerPrefix,
249 DRThreshold = kwargs['DRThreshold'],
250 InputElectrons = kwargs['InputElectrons'],
251 InputMuons = kwargs['InputMuons']))
252 CommonAugmentation = CompFactory.DerivationFramework.CommonAugmentation
253 acc.addEventAlgo(CommonAugmentation(f"{outputContainerPrefix}TriggerMatchingKernel",
254 AugmentationTools=[PhysCommonTriggerMatchingTool]))
255 return(acc)
256

◆ LLP1TriggerSkimmingToolCfg()

LLP1TriggerSkimmingToolCfg ( flags,
name,
TriggerListsHelper,
** kwargs )

Definition at line 159 of file LLPToolsConfig.py.

159def LLP1TriggerSkimmingToolCfg(flags, name, TriggerListsHelper, **kwargs):
160
161 from TriggerMenuMT.TriggerAPI.TriggerAPI import TriggerAPI
162 from TriggerMenuMT.TriggerAPI.TriggerEnums import TriggerPeriod, TriggerType
163
164 # tapi chain lists
165 trig_tapis = {k: [] for k in ('el','mu','g','xe','elmu','mug','tau','tauxe','exotics','gxe')}
166 if flags.Trigger.EDMVersion <= 2:
167 # Run 2: use the Run 2 TriggerAPI
168 allperiods = TriggerPeriod.y2015 | TriggerPeriod.y2016 | TriggerPeriod.y2017 | TriggerPeriod.y2018 | TriggerPeriod.future2e34
169 TriggerAPI.setConfigFlags(flags)
170 trig_tapis['el'] = TriggerAPI.getLowestUnprescaledAnyPeriod(allperiods, triggerType=TriggerType.el, livefraction=0.8)
171 trig_tapis['mu'] = TriggerAPI.getLowestUnprescaledAnyPeriod(allperiods, triggerType=TriggerType.mu, livefraction=0.8)
172 trig_tapis['g'] = TriggerAPI.getLowestUnprescaledAnyPeriod(allperiods, triggerType=TriggerType.g, livefraction=0.8)
173 trig_tapis['xe'] = TriggerAPI.getLowestUnprescaledAnyPeriod(allperiods, triggerType=TriggerType.xe, livefraction=0.8)
174 trig_tapis['elmu'] = TriggerAPI.getLowestUnprescaledAnyPeriod(allperiods, triggerType=TriggerType.el, additionalTriggerType=TriggerType.mu, livefraction=0.8)
175 trig_tapis['mug'] = TriggerAPI.getLowestUnprescaledAnyPeriod(allperiods, triggerType=TriggerType.mu, additionalTriggerType=TriggerType.g, livefraction=0.8)
176 trig_tapis['tau'] = TriggerAPI.getLowestUnprescaledAnyPeriod(allperiods, triggerType=TriggerType.tau, livefraction=0.8)
177 trig_tapis['tauxe']= TriggerAPI.getLowestUnprescaledAnyPeriod(allperiods, triggerType=TriggerType.tau, additionalTriggerType=TriggerType.xe, livefraction=0.8)
178 else:
179 # Run 3: use the TriggerAPI session via tapis session
180 from DerivationFrameworkPhys.TriggerListsHelper import getTapisSession
181 session = getTapisSession(flags)
182 trig_tapis['el'] = list(session.getLowestUnprescaled(triggerType=TriggerType.el, livefraction=0.75))
183 trig_tapis['mu'] = list(session.getLowestUnprescaled(triggerType=TriggerType.mu, livefraction=0.75))
184 trig_tapis['g'] = list(session.getLowestUnprescaled(triggerType=TriggerType.g, livefraction=0.75))
185 trig_tapis['xe'] = list(session.getLowestUnprescaled(triggerType=TriggerType.xe, livefraction=0.75))
186 trig_tapis['elmu'] = list(session.getLowestUnprescaled(triggerType=[TriggerType.el, TriggerType.mu], livefraction=0.75))
187 trig_tapis['mug'] = list(session.getLowestUnprescaled(triggerType=[TriggerType.mu, TriggerType.g], livefraction=0.75))
188 trig_tapis['tau'] = list(session.getLowestUnprescaled(triggerType=TriggerType.tau, livefraction=0.75))
189 trig_tapis['tauxe'] = list(session.getLowestUnprescaled(triggerType=[TriggerType.tau, TriggerType.xe], livefraction=0.75))
190 trig_tapis['exotics'] = list(session.getLowestUnprescaled(triggerType=TriggerType.exotics, livefraction=0.75))
191 trig_tapis['gxe'] = list(session.getLowestUnprescaled(triggerType=[TriggerType.g, TriggerType.xe], livefraction=0.75))
192
193 # All chains not picked up by tapis are hardcoded in LLP1Triggers.txt and loaded below; see comments there for details
194 # (just take every non-comment, non-empty line)
195 from PathResolver import PathResolver
196 with open(PathResolver.FindCalibFile("DerivationFrameworkLLP/LLP1Triggers.txt")) as fp:
197 trig_hardcoded = [
198 line for ln in fp
199 if (line := ln.strip()) and not line.startswith('#')
200 ]
201
202 triggers = sorted(set(sum(trig_tapis.values(), []) + trig_hardcoded))
203
204 # debug printout of the final trigger list when needed
205 from AthenaCommon.Logging import logging
206 log = logging.getLogger("LLP1TriggerSkimmingToolCfg")
207 log.debug("LLP1 skimming trigger list (%d chains):", len(triggers))
208 for t in triggers:
209 log.debug(" %s", t)
210
211 acc = ComponentAccumulator()
212 TriggerSkimmingTool = CompFactory.DerivationFramework.TriggerSkimmingTool
213 acc.addPublicTool(TriggerSkimmingTool(name,
214 TriggerListAND = [],
215 TriggerListOR = triggers,
216 **kwargs),
217 primary = True)
218 return acc
219
220
static std::string FindCalibFile(const std::string &logical_file_name)
STL class.

◆ LRTElectronLHSelectorsCfg()

LRTElectronLHSelectorsCfg ( flags)

Definition at line 328 of file LLPToolsConfig.py.

328def LRTElectronLHSelectorsCfg(flags):
329
330 acc = ComponentAccumulator()
331
332 from ElectronPhotonSelectorTools.AsgElectronLikelihoodToolsConfig import AsgElectronLikelihoodToolCfg
333 from ElectronPhotonSelectorTools.ElectronLikelihoodToolMapping import electronLHmenu
334 from ROOT import LikeEnum
335
336 lhMenu = electronLHmenu.offlineMC21
337 if flags.GeoModel.Run is LHCPeriod.Run2:
338 lhMenu = electronLHmenu.offlineMC20
339
340 ElectronLHSelectorVeryLooseNoPix = acc.popToolsAndMerge(AsgElectronLikelihoodToolCfg(
341 flags,
342 name="ElectronLHSelectorVeryLooseNoPix",
343 quality=LikeEnum.VeryLooseLLP,
344 menu=lhMenu)
345 )
346 ElectronLHSelectorVeryLooseNoPix.primaryVertexContainer = "PrimaryVertices"
347
348 ElectronLHSelectorLooseNoPix = acc.popToolsAndMerge(AsgElectronLikelihoodToolCfg(
349 flags,
350 name="ElectronLHSelectorLooseNoPix",
351 quality=LikeEnum.LooseLLP,
352 menu=lhMenu)
353 )
354 ElectronLHSelectorLooseNoPix.primaryVertexContainer = "PrimaryVertices"
355
356 ElectronLHSelectorMediumNoPix = acc.popToolsAndMerge(AsgElectronLikelihoodToolCfg(
357 flags,
358 name="ElectronLHSelectorMediumNoPix",
359 quality=LikeEnum.MediumLLP,
360 menu=lhMenu)
361 )
362 ElectronLHSelectorMediumNoPix.primaryVertexContainer = "PrimaryVertices"
363
364 ElectronLHSelectorTightNoPix = acc.popToolsAndMerge(AsgElectronLikelihoodToolCfg(
365 flags,
366 name="ElectronLHSelectorTightNoPix",
367 quality=LikeEnum.TightLLP,
368 menu=lhMenu)
369 )
370 ElectronLHSelectorTightNoPix.primaryVertexContainer = "PrimaryVertices"
371
372 from DerivationFrameworkEGamma.EGammaToolsConfig import EGElectronLikelihoodToolWrapperCfg
373
374 # decorate electrons with the output of LH very loose
375 ElectronPassLHVeryLooseNoPix = acc.addPublicTool(acc.popToolsAndMerge(EGElectronLikelihoodToolWrapperCfg(
376 flags,
377 name="ElectronPassLHVeryLooseNoPix",
378 EGammaElectronLikelihoodTool=ElectronLHSelectorVeryLooseNoPix,
379 CutType="",
380 StoreGateEntryName="DFCommonElectronsLHVeryLooseNoPix",
381 ContainerName="Electrons",
382 StoreTResult=True)))
383
384 ElectronPassLHVeryLooseNoPixLRT = acc.addPublicTool(acc.popToolsAndMerge(EGElectronLikelihoodToolWrapperCfg(
385 flags,
386 name="ElectronPassLHVeryLooseNoPixLRT",
387 EGammaElectronLikelihoodTool=ElectronLHSelectorVeryLooseNoPix,
388 CutType="",
389 StoreGateEntryName="DFCommonElectronsLHVeryLooseNoPix",
390 ContainerName="LRTElectrons",
391 StoreTResult=True)))
392
393 # decorate electrons with the output of LH loose
394 ElectronPassLHLooseNoPix = acc.addPublicTool(acc.popToolsAndMerge(EGElectronLikelihoodToolWrapperCfg(
395 flags,
396 name="ElectronPassLHLooseNoPix",
397 EGammaElectronLikelihoodTool=ElectronLHSelectorLooseNoPix,
398 CutType="",
399 StoreGateEntryName="DFCommonElectronsLHLooseNoPix",
400 ContainerName="Electrons",
401 StoreTResult=False)))
402
403 ElectronPassLHLooseNoPixLRT = acc.addPublicTool(acc.popToolsAndMerge(EGElectronLikelihoodToolWrapperCfg(
404 flags,
405 name="ElectronPassLHLooseNoPixLRT",
406 EGammaElectronLikelihoodTool=ElectronLHSelectorLooseNoPix,
407 CutType="",
408 StoreGateEntryName="DFCommonElectronsLHLooseNoPix",
409 ContainerName="LRTElectrons",
410 StoreTResult=False)))
411
412 # decorate electrons with the output of LH medium
413 ElectronPassLHMediumNoPix = acc.addPublicTool(acc.popToolsAndMerge(EGElectronLikelihoodToolWrapperCfg(
414 flags,
415 name="ElectronPassLHMediumNoPix",
416 EGammaElectronLikelihoodTool=ElectronLHSelectorMediumNoPix,
417 CutType="",
418 StoreGateEntryName="DFCommonElectronsLHMediumNoPix",
419 ContainerName="Electrons",
420 StoreTResult=False)))
421
422 ElectronPassLHMediumNoPixLRT = acc.addPublicTool(acc.popToolsAndMerge(EGElectronLikelihoodToolWrapperCfg(
423 flags,
424 name="ElectronPassLHMediumNoPixLRT",
425 EGammaElectronLikelihoodTool=ElectronLHSelectorMediumNoPix,
426 CutType="",
427 StoreGateEntryName="DFCommonElectronsLHMediumNoPix",
428 ContainerName="LRTElectrons",
429 StoreTResult=False)))
430
431 # decorate electrons with the output of LH tight
432 ElectronPassLHTightNoPix = acc.addPublicTool(acc.popToolsAndMerge(EGElectronLikelihoodToolWrapperCfg(
433 flags,
434 name="ElectronPassLHTightNoPix",
435 EGammaElectronLikelihoodTool=ElectronLHSelectorTightNoPix,
436 CutType="",
437 StoreGateEntryName="DFCommonElectronsLHTightNoPix",
438 ContainerName="Electrons",
439 StoreTResult=False)))
440
441 ElectronPassLHTightNoPixLRT = acc.addPublicTool(acc.popToolsAndMerge(EGElectronLikelihoodToolWrapperCfg(
442 flags,
443 name="ElectronPassLHTightNoPixLRT",
444 EGammaElectronLikelihoodTool=ElectronLHSelectorTightNoPix,
445 CutType="",
446 StoreGateEntryName="DFCommonElectronsLHTightNoPix",
447 ContainerName="LRTElectrons",
448 StoreTResult=False)))
449
450 LRTEGAugmentationTools = [ElectronPassLHVeryLooseNoPix,
451 ElectronPassLHVeryLooseNoPixLRT,
452 ElectronPassLHLooseNoPix,
453 ElectronPassLHLooseNoPixLRT,
454 ElectronPassLHMediumNoPix,
455 ElectronPassLHMediumNoPixLRT,
456 ElectronPassLHTightNoPix,
457 ElectronPassLHTightNoPixLRT]
458
459 acc.addEventAlgo(CompFactory.DerivationFramework.CommonAugmentation(
460 "LLP1EGammaLRTKernel",
461 AugmentationTools=LRTEGAugmentationTools
462 ))
463
464 return acc
465
466# RecoverZeroPixelHitMuons setup

◆ LRTElectronMergerAlg()

LRTElectronMergerAlg ( flags,
name = "LLP1_ElectronLRTMergingAlg",
** kwargs )

Definition at line 276 of file LLPToolsConfig.py.

276def LRTElectronMergerAlg(flags, name="LLP1_ElectronLRTMergingAlg", **kwargs):
277 acc = ComponentAccumulator()
278 prompt = kwargs.setdefault ('PromptElectronLocation', 'Electrons')
279 lrt = kwargs.setdefault ('LRTElectronLocation', 'LRTElectrons')
280 ExtraInputs = kwargs.setdefault ('ExtraInputs', [])
281 from IsolationAlgs.DerivationTrackIsoConfig import iso_vars
282 ExtraInputs += [('xAOD::IParticleContainer', f'{prompt}.{v}')
283 for v in iso_vars()]
284 ExtraInputs += [('xAOD::IParticleContainer', f'{lrt}.{v}')
285 for v in iso_vars()]
286 ExtraInputs += [
287 ('xAOD::IParticleContainer', f'{lrt}.core57cellsEnergyCorrection'),
288 ('xAOD::IParticleContainer', f'{lrt}.ptcone20'),
289 ('xAOD::IParticleContainer', f'{lrt}.neflowisol20'),
290 ('xAOD::IParticleContainer', f'{prompt}.neflowisol20'),
291 ]
292 alg = CompFactory.CP.ElectronLRTMergingAlg \
293 (name,
294 **kwargs)
295 acc.addEventAlgo(alg,
296 primary=True)
297 return acc
298
299# Photon IsEM setup for LLP1

◆ LRTMuonMergerAlg()

LRTMuonMergerAlg ( flags,
name = "LLP1_MuonLRTMergingAlg",
** kwargs )

Definition at line 257 of file LLPToolsConfig.py.

257def LRTMuonMergerAlg(flags, name="LLP1_MuonLRTMergingAlg", **kwargs):
258 acc = ComponentAccumulator()
259 alg = CompFactory.CP.MuonLRTMergingAlg(name, **kwargs)
260 acc.addEventAlgo(alg, primary=True)
261 return acc
262

◆ PhotonIsEMSelectorsCfg()

PhotonIsEMSelectorsCfg ( flags)

Definition at line 300 of file LLPToolsConfig.py.

300def PhotonIsEMSelectorsCfg(flags):
301 acc = ComponentAccumulator()
302 from ROOT import egammaPID
303 from ElectronPhotonSelectorTools.AsgPhotonIsEMSelectorsConfig import (
304 AsgPhotonIsEMSelectorCfg,
305 )
306
307 isFullSim = flags.Sim.ISF.Simulator.isFullSim() if flags.Input.isMC else False
308
309 if isFullSim:
310 from EGammaVariableCorrection.EGammaVariableCorrectionConfig import (
311 PhotonVariableCorrectionToolCfg,
312 )
313
314 PhotonVariableCorrectionTool = acc.popToolsAndMerge(
315 PhotonVariableCorrectionToolCfg(flags))
316 acc.addPublicTool(PhotonVariableCorrectionTool)
317
318 PhotonIsEMSelectorMedium = acc.popToolsAndMerge(
319 AsgPhotonIsEMSelectorCfg(
320 flags, name="PhotonIsEMSelectorMedium", quality=egammaPID.PhotonIDMedium
321 )
322 )
323 acc.addPublicTool(PhotonIsEMSelectorMedium)
324
325 return acc
326
327# Electron LLH setup for LLP1

◆ PixeldEdxTrackParticleThinningCfg()

PixeldEdxTrackParticleThinningCfg ( flags,
name,
** kwargs )
Confiure the lowpT + high dE/dx track thinniing tool

Definition at line 151 of file LLPToolsConfig.py.

151def PixeldEdxTrackParticleThinningCfg(flags, name, **kwargs):
152 """Confiure the lowpT + high dE/dx track thinniing tool"""
153 acc = ComponentAccumulator()
154 PixeldEdxTrackParticleThinning = CompFactory.DerivationFramework.PixeldEdxTrackParticleThinning
155 acc.addPublicTool(PixeldEdxTrackParticleThinning(name, **kwargs),
156 primary = True)
157 return acc
158

◆ RCJetSubstructureAugCfg()

RCJetSubstructureAugCfg ( flags,
name,
** kwargs )
Configure the RC jet substructure computation tool

Definition at line 48 of file LLPToolsConfig.py.

48def RCJetSubstructureAugCfg(flags, name, **kwargs):
49 """Configure the RC jet substructure computation tool"""
50 acc = ComponentAccumulator()
51 suffix = kwargs.pop("Suffix", "")
52 if not suffix:
53 raise AttributeError("Suffix not set!")
54 kwargs.setdefault("dec_Qw", "Qw_" + suffix)
55 kwargs.setdefault("dec_Tau1", "Tau1_" + suffix)
56 kwargs.setdefault("dec_Tau2", "Tau2_" + suffix)
57 kwargs.setdefault("dec_Tau3", "Tau3_" + suffix)
58 kwargs.setdefault("dec_Tau4", "Tau4_" + suffix)
59 kwargs.setdefault("dec_Tau21", "Tau21_" + suffix)
60 kwargs.setdefault("dec_Tau32", "Tau32_" + suffix)
61 kwargs.setdefault("dec_Split12", "Split12_" + suffix)
62 kwargs.setdefault("dec_Split23", "Split23_" + suffix)
63 kwargs.setdefault("dec_Split34", "Split34_" + suffix)
64 kwargs.setdefault("dec_ECF1", "ECF1_" + suffix)
65 kwargs.setdefault("dec_ECF2", "ECF2_" + suffix)
66 kwargs.setdefault("dec_ECF3", "ECF3_" + suffix)
67 kwargs.setdefault("dec_ECF4", "ECF4_" + suffix)
68 kwargs.setdefault("dec_C2", "C2_" + suffix)
69 kwargs.setdefault("dec_D2", "D2_" + suffix)
70 kwargs.setdefault("dec_pT", "pT_" + suffix)
71 kwargs.setdefault("dec_m", "m_" + suffix)
72 kwargs.setdefault("dec_NConstits", "NConstits_" + suffix)
73 kwargs.setdefault("dec_eta", "eta_" + suffix)
74 kwargs.setdefault("dec_phi", "phi_" + suffix)
75 kwargs.setdefault("dec_timing", "timing_" + suffix)
76 RCJetSubstructureAug = CompFactory.DerivationFramework.RCJetSubstructureAug
77 acc.addPublicTool(RCJetSubstructureAug(name, **kwargs),
78 primary = True)
79 return acc
80
81# tool to label leading/subleading jets

◆ RecoverZeroPixelHitMuonsCfg()

RecoverZeroPixelHitMuonsCfg ( flags)

Definition at line 467 of file LLPToolsConfig.py.

467def RecoverZeroPixelHitMuonsCfg(flags):
468 acc = ComponentAccumulator()
469 from IsolationAlgs.DerivationTrackIsoConfig import iso_vars
470 ExtraInputs = [('xAOD::IParticleContainer', 'Muons.' + v)
471 for v in iso_vars()]
472 acc.addEventAlgo(CompFactory.RecoverZeroPixelHitMuons(name="RecoverZeroPixelHitMuons", ExtraInputs=ExtraInputs))
473
474 return acc
475

◆ TauLRTThinningCfg()

TauLRTThinningCfg ( flags,
name,
** kwargs )
configure tau thinning

Definition at line 39 of file LLPToolsConfig.py.

39def TauLRTThinningCfg(flags, name, **kwargs):
40 """configure tau thinning"""
41
42 acc = ComponentAccumulator()
43 TauLRTThinningTool = CompFactory.DerivationFramework.TauLRTThinningTool
44 acc.addPublicTool(TauLRTThinningTool(name, **kwargs), primary=True)
45 return acc
46
47# RC jet substructure computation tool

◆ TrackParametersKVUCfg()

TrackParametersKVUCfg ( flags,
name,
** kwargs )
Configure the vertex constraint tool

Definition at line 91 of file LLPToolsConfig.py.

91def TrackParametersKVUCfg(flags, name, **kwargs):
92 """Configure the vertex constraint tool"""
93 acc = ComponentAccumulator()
94
95 if "IPEstimator" not in kwargs:
96 from TrkConfig.TrkVertexFitterUtilsConfig import AtlasTrackToVertexIPEstimatorCfg
97 kwargs.setdefault("IPEstimator", acc.popToolsAndMerge(
98 AtlasTrackToVertexIPEstimatorCfg(flags)))
99
100 if "VertexTrackUpdator" not in kwargs:
101 from TrkConfig.TrkVertexFitterUtilsConfig import KalmanVertexTrackUpdatorCfg
102 kwargs.setdefault("VertexTrackUpdator", acc.popToolsAndMerge(
103 KalmanVertexTrackUpdatorCfg(flags, SkipInvertibleCheck = True)))
104
105 if "LinearizedTrackFactory" not in kwargs:
106 from TrkConfig.TrkVertexFitterUtilsConfig import AtlasFullLinearizedTrackFactoryCfg
107 kwargs.setdefault("LinearizedTrackFactory", acc.popToolsAndMerge(
108 AtlasFullLinearizedTrackFactoryCfg(flags)))
109
110 if "TrackExtrapolator" not in kwargs:
111 from TrkConfig.AtlasExtrapolatorConfig import AtlasExtrapolatorCfg
112 kwargs.setdefault("TrackExtrapolator", acc.popToolsAndMerge(AtlasExtrapolatorCfg(flags)))
113
114 acc.setPrivateTools(CompFactory.DerivationFramework.TrackParametersKVU(name, **kwargs))
115 return acc
116
117
118# Calo cell cluster decorator

◆ TrackParticleCaloCellDecoratorCfg()

TrackParticleCaloCellDecoratorCfg ( flags,
name,
** kwargs )
Confiure the isolation decorator tool

Definition at line 119 of file LLPToolsConfig.py.

119def TrackParticleCaloCellDecoratorCfg(flags, name, **kwargs):
120 """Confiure the isolation decorator tool"""
121 acc = ComponentAccumulator()
122 prefix = kwargs.pop("DecorationPrefix", "LLP1")
123 kwargs.setdefault("ClusterAssocContainerName", kwargs["ContainerName"] + "ClusterAssociations")
124 kwargs.setdefault("decCellEtaKey", prefix + "_CaloCellEta")
125 kwargs.setdefault("decCellPhiKey", prefix + "_CaloCellPhi")
126 kwargs.setdefault("decCellRKey", prefix + "_CaloCellR")
127 kwargs.setdefault("decCelldEtaKey", prefix + "_CaloCelldEta")
128 kwargs.setdefault("decCelldPhiKey", prefix + "_CaloCelldPhi")
129 kwargs.setdefault("decCelldRKey", prefix + "_CaloCelldR")
130 kwargs.setdefault("decCellXKey", prefix + "_CaloCellX")
131 kwargs.setdefault("decCellYKey", prefix + "_CaloCellY")
132 kwargs.setdefault("decCellZKey", prefix + "_CaloCellZ")
133 kwargs.setdefault("decCelldXKey", prefix + "_CaloCelldX")
134 kwargs.setdefault("decCelldYKey", prefix + "_CaloCelldY")
135 kwargs.setdefault("decCelldZKey", prefix + "_CaloCelldZ")
136 kwargs.setdefault("decCellTKey", prefix + "_CaloCellTime")
137 kwargs.setdefault("decCellEKey", prefix + "_CaloCellE")
138 kwargs.setdefault("decCellIDKey", prefix + "_CaloCellID")
139 kwargs.setdefault("decCellSamplingKey", prefix + "_CaloCellSampling")
140 kwargs.setdefault("decCellQualityKey", prefix + "_CaloCellQuality")
141 kwargs.setdefault("decCellProvenanceKey", prefix + "_CaloCellProvenance")
142 kwargs.setdefault("decCellGainKey", prefix + "_CaloCellGain")
143 kwargs.setdefault("decCellEneDiffKey", prefix + "_CaloCellEneDiff")
144 kwargs.setdefault("decCellTimeDiffKey", prefix + "_CaloCellTimeDiff")
145 TrackParticleCaloCellDecorator = CompFactory.DerivationFramework.TrackParticleCaloCellDecorator
146 acc.addPublicTool(TrackParticleCaloCellDecorator(name, **kwargs),
147 primary = True)
148 return acc
149
150# high dE/dx and low pT track thinning

◆ VSITrackParticleThinningCfg()

VSITrackParticleThinningCfg ( flags,
name,
** kwargs )
Configure the track particle merger tool

Definition at line 13 of file LLPToolsConfig.py.

13def VSITrackParticleThinningCfg(flags, name, **kwargs):
14 """Configure the track particle merger tool"""
15 acc = ComponentAccumulator()
16 VSITrackParticleThinning = CompFactory.DerivationFramework.VSITrackParticleThinning
17 acc.addPublicTool(VSITrackParticleThinning(name, **kwargs),
18 primary = True)
19 return acc
20
21# Thinning for Std tracks in jets

◆ ZeroPixelHitMuonMergerAlgCfg()

ZeroPixelHitMuonMergerAlgCfg ( flags,
name = 'LLP1_MuonZPHMergingAlg',
** kwargs )
Configure for merging ZeroPixelHitMuons with the LRTMerged muons for vertexing

Definition at line 263 of file LLPToolsConfig.py.

263def ZeroPixelHitMuonMergerAlgCfg(flags, name='LLP1_MuonZPHMergingAlg', **kwargs):
264 """Configure for merging ZeroPixelHitMuons with the LRTMerged muons for vertexing"""
265
266 kwargs.setdefault('InputMuonContainers', ['Muons', 'MuonsLRT', 'ZeroPixelHitMuons'])
267 kwargs.setdefault('OutputMuonLocation', 'StdWithLRTMuons_wZPH')
268 kwargs.setdefault("CreateViewCollection", True)
269
270 acc = ComponentAccumulator()
271 alg = CompFactory.CP.MuonContainerMergingAlg(name, **kwargs)
272 acc.addEventAlgo(alg, primary=True)
273 return acc
274
275