|
ATLAS Offline Software
|
|
def | TruthMetaDataWriterCfg (flags, name) |
|
def | HepMCtoXAODTruthCfg (flags) |
|
def | AddTruthJetsCfg (flags) |
|
def | AddTruthMETCfg (flags) |
|
def | PreJetMCTruthAugmentationsCfg (flags, **kwargs) |
|
def | PostJetMCTruthAugmentationsCfg (flags, **kwargs) |
|
def | AddStandardTruthContentsCfg (flags, decorationDressing='dressedPhoton', includeTausInDressingPhotonRemoval=False, prefix='') |
|
def | AddParentAndDownstreamParticlesCfg (flags, generations=1, parents=[6], prefix='TopQuark', collection_prefix=None, rejectHadronChildren=False) |
|
def | AddBosonsAndDownstreamParticlesCfg (flags, generations=1, rejectHadronChildren=False) |
| Add taus and their downstream particles (immediate and further decay products) in a special collection def addTausAndDownstreamParticles(kernel=None, generations=1): return addParentAndDownstreamParticles(kernel=kernel, generations=generations, parents=[15], prefix='Tau') More...
|
|
def | AddTopQuarkAndDownstreamParticlesCfg (flags, generations=1, rejectHadronChildren=False) |
|
def | AddTauAndDownstreamParticlesCfg (flags, generations=-1, rejectHadronChildren=False) |
|
def | AddHFAndDownstreamParticlesCfg (flags, **kwargs) |
| Add electrons, photons, and their downstream particles in a special collection def addEgammaAndDownstreamParticles(kernel=None, generations=1): return addParentAndDownstreamParticles(kernel=kernel, generations=generations, parents=[11,22], prefix='Egamma') More...
|
|
def | AddPVCollectionCfg (flags) |
|
def | AddTruthCollectionNavigationDecorationsCfg (flags, TruthCollections=[], prefix='') |
|
def | AddBSMAndDownstreamParticlesCfg (flags, generations=-1) |
|
def | AddBornLeptonCollectionCfg (flags) |
|
def | AddLargeRJetD2Cfg (flags) |
|
def | AddTruthEnergyDensityCfg (flags) |
|
def | AddMiniTruthCollectionLinksCfg (flags, **kwargs) |
|
def | addTruth3ContentToSlimmerTool (slimmer) |
|
◆ AddBornLeptonCollectionCfg()
def python.MCTruthCommonConfig.AddBornLeptonCollectionCfg |
( |
|
flags | ) |
|
Add born leptons as a mini collection
Definition at line 362 of file MCTruthCommonConfig.py.
363 """Add born leptons as a mini collection"""
366 from DerivationFrameworkMCTruth.TruthDerivationToolsConfig
import TruthBornLeptonCollectionMakerCfg
368 name =
"DFCommonBornLeptonCollTool",
369 NewCollectionName =
"BornLeptons"))
370 CommonAugmentation = CompFactory.DerivationFramework.CommonAugmentation
371 acc.addEventAlgo(CommonAugmentation(
"MCTruthCommonBornLeptonsKernel", AugmentationTools = [DFCommonBornLeptonCollTool] ))
◆ AddBosonsAndDownstreamParticlesCfg()
def python.MCTruthCommonConfig.AddBosonsAndDownstreamParticlesCfg |
( |
|
flags, |
|
|
|
generations = 1 , |
|
|
|
rejectHadronChildren = False |
|
) |
| |
Add taus and their downstream particles (immediate and further decay products) in a special collection def addTausAndDownstreamParticles(kernel=None, generations=1): return addParentAndDownstreamParticles(kernel=kernel, generations=generations, parents=[15], prefix='Tau')
Add W bosons and their downstream particles def addWbosonsAndDownstreamParticles(kernel=None, generations=1, rejectHadronChildren=False): return addParentAndDownstreamParticles(kernel=kernel, generations=generations, parents=[24], prefix='Wboson', rejectHadronChildren=rejectHadronChildren)
Add bosons and downstream particles (not photons/gluons)
Definition at line 242 of file MCTruthCommonConfig.py.
244 rejectHadronChildren=False):
245 """Add bosons and downstream particles (not photons/gluons)"""
247 generations = generations,
248 parents = [23,24,25],
250 rejectHadronChildren = rejectHadronChildren)
◆ AddBSMAndDownstreamParticlesCfg()
def python.MCTruthCommonConfig.AddBSMAndDownstreamParticlesCfg |
( |
|
flags, |
|
|
|
generations = -1 |
|
) |
| |
Add BSM particles and their downstream particles in a special collection
Definition at line 346 of file MCTruthCommonConfig.py.
347 """Add BSM particles and their downstream particles in a special collection"""
352 name =
"DFCommonBSMAndDecaysTool",
353 NewCollectionName =
"TruthBSMWithDecay",
355 Generations = generations))
356 CommonAugmentation = CompFactory.DerivationFramework.CommonAugmentation
357 acc.addEventAlgo(CommonAugmentation(name =
"MCTruthCommonBSMAndDecaysKernel",
358 AugmentationTools = [DFCommonBSMAndDecaysTool] ))
◆ AddHFAndDownstreamParticlesCfg()
def python.MCTruthCommonConfig.AddHFAndDownstreamParticlesCfg |
( |
|
flags, |
|
|
** |
kwargs |
|
) |
| |
Add electrons, photons, and their downstream particles in a special collection def addEgammaAndDownstreamParticles(kernel=None, generations=1): return addParentAndDownstreamParticles(kernel=kernel, generations=generations, parents=[11,22], prefix='Egamma')
Add b/c-hadrons and their downstream particles
Definition at line 292 of file MCTruthCommonConfig.py.
293 """Add b/c-hadrons and their downstream particles"""
294 kwargs.setdefault(
"addB",
True)
295 kwargs.setdefault(
"addC",
True)
296 kwargs.setdefault(
"generations",-1)
297 kwargs.setdefault(
"prefix",
'')
300 from DerivationFrameworkMCTruth.TruthDerivationToolsConfig
import TruthDecayCollectionMakerCfg
303 name=kwargs[
'prefix']+
"DFCommonHFAndDecaysTool",
304 NewCollectionName=kwargs[
'prefix']+
"TruthHFWithDecay",
305 KeepBHadrons=kwargs[
'addB'],
306 KeepCHadrons=kwargs[
'addC'],
307 Generations=kwargs[
'generations']))
308 acc.addEventAlgo(CompFactory.DerivationFramework.CommonAugmentation(
309 kwargs[
'prefix']+
"MCTruthCommonHFAndDecaysKernel",
310 AugmentationTools = [DFCommonHFAndDecaysTool] ))
◆ AddLargeRJetD2Cfg()
def python.MCTruthCommonConfig.AddLargeRJetD2Cfg |
( |
|
flags | ) |
|
Add large-R jet D2 variable
Definition at line 374 of file MCTruthCommonConfig.py.
375 """Add large-R jet D2 variable"""
378 from DerivationFrameworkMCTruth.TruthDerivationToolsConfig
import TruthD2DecoratorCfg
380 name =
"TruthD2Decorator",
381 JetContainerKey =
"AntiKt10TruthSoftDropBeta100Zcut10Jets",
382 DecorationName =
"D2"))
383 TruthD2DecoratorKernel = CompFactory.DerivationFramework.CommonAugmentation
384 acc.addEventAlgo(TruthD2DecoratorKernel(
"TRUTHD2Kernel", AugmentationTools = [theTruthD2Decorator] ))
◆ AddMiniTruthCollectionLinksCfg()
def python.MCTruthCommonConfig.AddMiniTruthCollectionLinksCfg |
( |
|
flags, |
|
|
** |
kwargs |
|
) |
| |
Tool to move pointers to new mini truth collections
Definition at line 427 of file MCTruthCommonConfig.py.
428 """Tool to move pointers to new mini truth collections"""
430 kwargs.setdefault(
"doElectrons",
True)
431 kwargs.setdefault(
"doPhotons",
True)
432 kwargs.setdefault(
"doMuons",
True)
434 from DerivationFrameworkMCTruth.TruthDerivationToolsConfig
import TruthLinkRepointToolCfg
435 if kwargs[
'doElectrons']:
438 name=
"ElMiniCollectionTruthLinkTool",
439 RecoCollection=
"Electrons",
440 TargetCollections=[
"TruthMuons",
"TruthPhotons",
"TruthElectrons"]))
441 aug_tools += [ electron_relink ]
442 if kwargs[
'doPhotons']:
445 name=
"PhMiniCollectionTruthLinkTool",
446 RecoCollection=
"Photons",
447 TargetCollections=[
"TruthMuons",
"TruthPhotons",
"TruthElectrons"]))
448 aug_tools += [ photon_relink ]
449 if kwargs[
'doMuons']:
452 name=
"MuMiniCollectionTruthLinkTool",
453 RecoCollection=
"Muons",
454 TargetCollections=[
"TruthMuons",
"TruthPhotons",
"TruthElectrons"]))
455 aug_tools += [ muon_relink ]
456 for i, tool
in enumerate(aug_tools):
457 acc.addEventAlgo(CompFactory.DerivationFramework.CommonAugmentation(
458 "MiniCollectionTruthLinkKernelNo{num}".
format(num=i+1),
459 AugmentationTools = [tool] ))
◆ AddParentAndDownstreamParticlesCfg()
def python.MCTruthCommonConfig.AddParentAndDownstreamParticlesCfg |
( |
|
flags, |
|
|
|
generations = 1 , |
|
|
|
parents = [6] , |
|
|
|
prefix = 'TopQuark' , |
|
|
|
collection_prefix = None , |
|
|
|
rejectHadronChildren = False |
|
) |
| |
Configure tools for adding immediate parents and descendants
Definition at line 203 of file MCTruthCommonConfig.py.
207 collection_prefix=None,
208 rejectHadronChildren=False):
209 """Configure tools for adding immediate parents and descendants"""
211 collection_name=collection_prefix+
'WithDecay' if collection_prefix
is not None else 'Truth'+prefix+
'WithDecay'
214 name =
'DFCommon'+prefix+
'AndDecaysTool',
215 NewCollectionName = collection_name,
216 PDGIDsToKeep = parents,
217 Generations = generations,
218 RejectHadronChildren = rejectHadronChildren))
219 CommonAugmentation = CompFactory.DerivationFramework.CommonAugmentation
220 kernel_name =
'MCTruthCommon'+prefix+
'AndDecaysKernel'
221 acc.addEventAlgo(CommonAugmentation(kernel_name, AugmentationTools = [collection_maker] ))
◆ AddPVCollectionCfg()
def python.MCTruthCommonConfig.AddPVCollectionCfg |
( |
|
flags | ) |
|
Add a one-vertex-per event "primary vertex" container
Definition at line 315 of file MCTruthCommonConfig.py.
316 """Add a one-vertex-per event "primary vertex" container"""
319 from DerivationFrameworkMCTruth.TruthDerivationToolsConfig
import TruthPVCollectionMakerCfg
322 name=
"DFCommonTruthPVCollTool",
323 NewCollectionName=
"TruthPrimaryVertices"))
324 acc.addEventAlgo(CompFactory.DerivationFramework.CommonAugmentation(
325 "MCTruthCommonTruthPVCollKernel",
326 AugmentationTools = [DFCommonTruthPVCollTool] ))
◆ AddStandardTruthContentsCfg()
def python.MCTruthCommonConfig.AddStandardTruthContentsCfg |
( |
|
flags, |
|
|
|
decorationDressing = 'dressedPhoton' , |
|
|
|
includeTausInDressingPhotonRemoval = False , |
|
|
|
prefix = '' |
|
) |
| |
Definition at line 164 of file MCTruthCommonConfig.py.
165 decorationDressing='dressedPhoton',
166 includeTausInDressingPhotonRemoval=False,
176 if "McEventCollection#GEN_EVENT" in flags.Input.TypedCollections: isEVNT =
True
185 if includeTausInDressingPhotonRemoval:
186 acc.getPublicTool(
"DFCommonTruthTauDressingTool").decorationName=decorationDressing
187 acc.addEventAlgo(CompFactory.DerivationFramework.LockDecorations(name =
"AddStandardTruthContentsLockDecoration", Decorations = [
'TruthParticles.' + decorationDressing]))
190 acc.merge(
AddTruthCollectionNavigationDecorationsCfg(flags, [
"TruthElectrons",
"TruthMuons",
"TruthPhotons",
"TruthTaus",
"TruthNeutrinos",
"TruthBSM",
"TruthBottom",
"TruthTop",
"TruthBoson"], prefix=prefix))
◆ AddTauAndDownstreamParticlesCfg()
def python.MCTruthCommonConfig.AddTauAndDownstreamParticlesCfg |
( |
|
flags, |
|
|
|
generations = -1 , |
|
|
|
rejectHadronChildren = False |
|
) |
| |
Add tau and downstream particles
Definition at line 263 of file MCTruthCommonConfig.py.
265 rejectHadronChildren=False):
266 """Add tau and downstream particles"""
268 generations=generations,
271 rejectHadronChildren=rejectHadronChildren)
◆ AddTopQuarkAndDownstreamParticlesCfg()
def python.MCTruthCommonConfig.AddTopQuarkAndDownstreamParticlesCfg |
( |
|
flags, |
|
|
|
generations = 1 , |
|
|
|
rejectHadronChildren = False |
|
) |
| |
Add top quarks and downstream particles
Definition at line 253 of file MCTruthCommonConfig.py.
255 rejectHadronChildren=False):
256 """Add top quarks and downstream particles"""
258 generations=generations,
261 rejectHadronChildren=rejectHadronChildren)
◆ addTruth3ContentToSlimmerTool()
def python.MCTruthCommonConfig.addTruth3ContentToSlimmerTool |
( |
|
slimmer | ) |
|
Definition at line 462 of file MCTruthCommonConfig.py.
463 slimmer.AllVariables += [
474 "TruthForwardProtons",
476 "TruthBosonsWithDecayParticles",
477 "TruthBosonsWithDecayVertices",
478 "TruthBSMWithDecayParticles",
479 "TruthBSMWithDecayVertices",
481 slimmer.ExtraVariables += [
482 "AntiKt4TruthDressedWZJets.GhostCHadronsFinalCount.GhostBHadronsFinalCount.pt.HadronConeExclTruthLabelID.PartonTruthLabelID.TrueFlavor",
483 "AntiKt10TruthSoftDropBeta100Zcut10Jets.pt.Tau1_wta.Tau2_wta.Tau3_wta.D2",
484 "TruthEvents.Q.XF1.XF2.PDGID1.PDGID2.PDFID1.PDFID2.X1.X2.crossSection"]
◆ AddTruthCollectionNavigationDecorationsCfg()
def python.MCTruthCommonConfig.AddTruthCollectionNavigationDecorationsCfg |
( |
|
flags, |
|
|
|
TruthCollections = [] , |
|
|
|
prefix = '' |
|
) |
| |
Tool to add navigation decorations on the truth collections
Definition at line 331 of file MCTruthCommonConfig.py.
332 """Tool to add navigation decorations on the truth collections"""
334 if len(TruthCollections)==0:
return
336 from DerivationFrameworkMCTruth.TruthDerivationToolsConfig
import TruthNavigationDecoratorCfg
338 name = prefix+
'DFCommonTruthNavigationDecorator',
339 InputCollections = TruthCollections))
340 CommonAugmentation = CompFactory.DerivationFramework.CommonAugmentation
341 acc.addEventAlgo(CommonAugmentation(prefix+
"MCTruthNavigationDecoratorKernel",
342 AugmentationTools = [DFCommonTruthNavigationDecorator] ))
◆ AddTruthEnergyDensityCfg()
def python.MCTruthCommonConfig.AddTruthEnergyDensityCfg |
( |
|
flags | ) |
|
Truth energy density tools
Definition at line 388 of file MCTruthCommonConfig.py.
389 """Truth energy density tools"""
391 from EventShapeTools.EventDensityConfig
import configEventDensityTool
392 from JetRecConfig.StandardJetConstits
import stdConstitDic
as cst
393 EventDensityAthAlg = CompFactory.EventDensityAthAlg
398 AbsRapidityMax = 1.5,
399 OutputContainer =
"TruthIsoCentralEventShape",
401 acc.addPublicTool(DFCommonTruthCentralEDTool)
402 acc.addEventAlgo(
EventDensityAthAlg(
"DFCommonTruthCentralEDAlg", EventDensityTool = DFCommonTruthCentralEDTool ))
406 AbsRapidityMin = 1.5,
407 AbsRapidityMax = 3.0,
408 OutputContainer =
"TruthIsoForwardEventShape",
410 acc.addPublicTool(DFCommonTruthForwardEDTool)
411 acc.addEventAlgo(
EventDensityAthAlg(
"DFCommonTruthForwardEDAlg", EventDensityTool = DFCommonTruthForwardEDTool ))
414 DFCommonTruthEDDecorator = CompFactory.DerivationFramework.TruthEDDecorator(
"DFCommonTruthEDDecorator",
415 EventInfoName=
"EventInfo",
416 EnergyDensityKeys=[
"TruthIsoCentralEventShape",
"TruthIsoForwardEventShape"],
417 DecorationSuffix=
"_rho"
419 acc.addPublicTool(DFCommonTruthEDDecorator)
421 DFCommonTruthEDKernel = CompFactory.DerivationFramework.CommonAugmentation
422 acc.addEventAlgo(DFCommonTruthEDKernel(
"DFCommonTruthEDKernel", AugmentationTools = [DFCommonTruthEDDecorator] ))
◆ AddTruthJetsCfg()
def python.MCTruthCommonConfig.AddTruthJetsCfg |
( |
|
flags | ) |
|
Definition at line 62 of file MCTruthCommonConfig.py.
65 from JetRecConfig.StandardSmallRJets
import AntiKt4Truth,AntiKt4TruthWZ,AntiKt4TruthDressedWZ,AntiKtVRTruthCharged
66 from JetRecConfig.StandardLargeRJets
import AntiKt10TruthTrimmed,AntiKt10TruthSoftDrop
67 from JetRecConfig.JetRecConfig
import JetRecCfg
70 jetList = [AntiKt4Truth,AntiKt4TruthWZ,AntiKt4TruthDressedWZ,AntiKtVRTruthCharged,
71 AntiKt10TruthTrimmed,AntiKt10TruthSoftDrop]
◆ AddTruthMETCfg()
def python.MCTruthCommonConfig.AddTruthMETCfg |
( |
|
flags | ) |
|
Definition at line 79 of file MCTruthCommonConfig.py.
85 if (
"MissingETContainer#MET_Truth")
not in flags.Input.TypedCollections:
86 from METReconstruction.METTruth_Cfg
import METTruth_Cfg
◆ HepMCtoXAODTruthCfg()
def python.MCTruthCommonConfig.HepMCtoXAODTruthCfg |
( |
|
flags | ) |
|
Conversion of HepMC to xAOD truth
Definition at line 19 of file MCTruthCommonConfig.py.
20 """Conversion of HepMC to xAOD truth"""
24 if flags.Input.isMC
is False:
25 raise RuntimeError(
"Common MC truth building requested for non-MC input")
32 if "EventInfo#McEventInfo" in flags.Input.TypedCollections
and "xAOD::EventInfo#EventInfo" not in flags.Input.TypedCollections:
33 from xAODEventInfoCnv.xAODEventInfoCnvConfig
import EventInfoCnvAlgCfg
34 acc.merge(
EventInfoCnvAlgCfg(flags, inputKey=
"McEventInfo", outputKey=
"EventInfo", disableBeamSpot=
True))
38 from xAODTruthCnv.xAODTruthCnvConfig
import GEN_EVNT2xAODCfg
39 if "McEventCollection#GEN_EVENT" in flags.Input.TypedCollections:
40 acc.merge(
GEN_EVNT2xAODCfg(flags,name=
"GEN_EVNT2xAOD",AODContainerName=
"GEN_EVENT"))
43 elif "McEventCollection#TruthEvent" in flags.Input.TypedCollections:
44 acc.merge(
GEN_EVNT2xAODCfg(flags,name=
"GEN_EVNT2xAOD",AODContainerName=
"TruthEvent"))
48 elif "xAOD::TruthEventContainer#TruthEvents" in flags.Input.TypedCollections:
51 raise RuntimeError(
"No recognised HepMC truth information found in the input")
54 if "TruthMetaDataContainer#TruthMetaData" not in flags.Input.TypedCollections
and not isEVNT:
◆ PostJetMCTruthAugmentationsCfg()
def python.MCTruthCommonConfig.PostJetMCTruthAugmentationsCfg |
( |
|
flags, |
|
|
** |
kwargs |
|
) |
| |
Definition at line 127 of file MCTruthCommonConfig.py.
133 from DerivationFrameworkTau.TauTruthCommonConfig
import TauTruthToolsCfg
135 from DerivationFrameworkMCTruth.TruthDerivationToolsConfig
import DFCommonTruthTauDressingToolCfg
139 from DerivationFrameworkMCTruth.GenFilterToolConfig
import GenFilterToolCfg
141 from DerivationFrameworkMCTruth.TruthDerivationToolsConfig
import DFCommonTruthDressedWZQGLabelToolCfg
142 augmentationToolsList += [ acc.getPrimaryAndMerge(
GenFilterToolCfg(flags)) ,
146 from DerivationFrameworkSUSY.DecorateSUSYProcessConfig
import IsSUSYSignalRun3
148 from DerivationFrameworkSUSY.DecorateSUSYProcessConfig
import SUSYSignalTaggerCfg
149 augmentationToolsList += [ acc.getPrimaryAndMerge(
SUSYSignalTaggerCfg(flags,
'MCTruthCommon')) ]
151 CommonAugmentation = CompFactory.DerivationFramework.CommonAugmentation
152 for i, tool
in enumerate(augmentationToolsList):
153 acc.addEventAlgo(CommonAugmentation(name =
"MCTruthCommonPostJetKernelNo{num}".
format(num = i+1),
154 AugmentationTools = [tool]))
158 from DerivationFrameworkSUSY.SUSYWeightMetadataConfig
import AddSUSYWeightsCfg
◆ PreJetMCTruthAugmentationsCfg()
def python.MCTruthCommonConfig.PreJetMCTruthAugmentationsCfg |
( |
|
flags, |
|
|
** |
kwargs |
|
) |
| |
Definition at line 91 of file MCTruthCommonConfig.py.
95 augmentationToolsList = []
100 from DerivationFrameworkMCTruth.TruthDerivationToolsConfig
import ( DFCommonTruthElectronDressingToolCfg, DFCommonTruthLHEToolCfg,
101 DFCommonTruthMuonDressingToolCfg, DFCommonTruthClassificationToolCfg, DFCommonTruthMuonToolCfg, DFCommonTruthElectronToolCfg,
102 DFCommonTruthPhotonToolSimCfg, DFCommonTruthNeutrinoToolCfg, DFCommonTruthBottomToolCfg, DFCommonTruthTopToolCfg,
103 DFCommonTruthBosonToolCfg, DFCommonTruthBSMToolCfg, DFCommonTruthForwardProtonToolCfg, DFCommonTruthElectronIsolationTool1Cfg,
104 DFCommonTruthElectronIsolationTool2Cfg, DFCommonTruthMuonIsolationTool1Cfg, DFCommonTruthMuonIsolationTool2Cfg,
105 DFCommonTruthPhotonIsolationTool1Cfg, DFCommonTruthPhotonIsolationTool2Cfg, DFCommonTruthPhotonIsolationTool3Cfg )
108 for item
in [ DFCommonTruthClassificationToolCfg, DFCommonTruthLHEToolCfg, DFCommonTruthMuonToolCfg, DFCommonTruthElectronToolCfg,
109 DFCommonTruthPhotonToolSimCfg, DFCommonTruthNeutrinoToolCfg, DFCommonTruthBottomToolCfg, DFCommonTruthTopToolCfg,
110 DFCommonTruthBosonToolCfg, DFCommonTruthBSMToolCfg, DFCommonTruthElectronIsolationTool1Cfg,
111 DFCommonTruthElectronIsolationTool2Cfg, DFCommonTruthMuonIsolationTool1Cfg, DFCommonTruthMuonIsolationTool2Cfg,
112 DFCommonTruthPhotonIsolationTool1Cfg, DFCommonTruthPhotonIsolationTool2Cfg, DFCommonTruthPhotonIsolationTool3Cfg]:
113 augmentationToolsList.append(acc.getPrimaryAndMerge(
item(flags)))
116 if 'decorationDressing' in kwargs:
120 for i, tool
in enumerate(augmentationToolsList):
121 acc.addEventAlgo(CompFactory.DerivationFramework.CommonAugmentation(name =
"MCTruthCommonPreJetKernelNo{num}".
format(num = i+1), AugmentationTools = [tool]))
◆ TruthMetaDataWriterCfg()
def python.MCTruthCommonConfig.TruthMetaDataWriterCfg |
( |
|
flags, |
|
|
|
name |
|
) |
| |
Definition at line 11 of file MCTruthCommonConfig.py.
13 theTruthMetaDataWriter = CompFactory.DerivationFramework.TruthMetaDataWriter(name)
14 acc.addPublicTool(theTruthMetaDataWriter)
15 CommonAugmentation = CompFactory.DerivationFramework.CommonAugmentation
16 acc.addEventAlgo(CommonAugmentation(f
"{name}Kernel", AugmentationTools = [theTruthMetaDataWriter]))
def AddStandardTruthContentsCfg(flags, decorationDressing='dressedPhoton', includeTausInDressingPhotonRemoval=False, prefix='')
def AddBosonsAndDownstreamParticlesCfg(flags, generations=1, rejectHadronChildren=False)
Add taus and their downstream particles (immediate and further decay products) in a special collectio...
def AddTauAndDownstreamParticlesCfg(flags, generations=-1, rejectHadronChildren=False)
def AddMiniTruthCollectionLinksCfg(flags, **kwargs)
def AddPVCollectionCfg(flags)
def configEventDensityTool(name, jetOrConstitdef, radius=0.4, **options)
def TruthMetaDataWriterCfg(flags, name)
def AddTopQuarkAndDownstreamParticlesCfg(flags, generations=1, rejectHadronChildren=False)
def GEN_EVNT2xAODCfg(flags, name="GEN_EVNT2xAOD", **kwargs)
def AddLargeRJetD2Cfg(flags)
def AddBornLeptonCollectionCfg(flags)
def AddTruthMETCfg(flags)
def AddBSMAndDownstreamParticlesCfg(flags, generations=-1)
def JetRecCfg(flags, jetdef, returnConfiguredDef=False)
Top level functions returning ComponentAccumulator out of JetDefinition.
def PreJetMCTruthAugmentationsCfg(flags, **kwargs)
def HepMCtoXAODTruthCfg(flags)
def PostJetMCTruthAugmentationsCfg(flags, **kwargs)
def AddTruthEnergyDensityCfg(flags)
def AddParentAndDownstreamParticlesCfg(flags, generations=1, parents=[6], prefix='TopQuark', collection_prefix=None, rejectHadronChildren=False)
def TauTruthToolsCfg(flags)
def AddHFAndDownstreamParticlesCfg(flags, **kwargs)
Add electrons, photons, and their downstream particles in a special collection def addEgammaAndDownst...
def IsSUSYSignalRun3(flags)
def SUSYSignalTaggerCfg(flags, derivationName)
def addTruth3ContentToSlimmerTool(slimmer)
def AddTruthCollectionNavigationDecorationsCfg(flags, TruthCollections=[], prefix='')
def EventInfoCnvAlgCfg(flags, name="EventInfoCnvAlg", inputKey="McEventInfo", outputKey="EventInfo", disableBeamSpot=False, **kwargs)
def AddTruthJetsCfg(flags)