Loading [MathJax]/extensions/tex2jax.js
 |
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 366 of file MCTruthCommonConfig.py.
367 """Add born leptons as a mini collection"""
370 from DerivationFrameworkMCTruth.TruthDerivationToolsConfig
import TruthBornLeptonCollectionMakerCfg
372 name =
"DFCommonBornLeptonCollTool",
373 NewCollectionName =
"BornLeptons"))
374 CommonAugmentation = CompFactory.DerivationFramework.CommonAugmentation
375 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 246 of file MCTruthCommonConfig.py.
248 rejectHadronChildren=False):
249 """Add bosons and downstream particles (not photons/gluons)"""
251 generations = generations,
252 parents = [23,24,25],
254 rejectHadronChildren = rejectHadronChildren)
◆ AddBSMAndDownstreamParticlesCfg()
def python.MCTruthCommonConfig.AddBSMAndDownstreamParticlesCfg |
( |
|
flags, |
|
|
|
generations = -1 |
|
) |
| |
Add BSM particles and their downstream particles in a special collection
Definition at line 350 of file MCTruthCommonConfig.py.
351 """Add BSM particles and their downstream particles in a special collection"""
356 name =
"DFCommonBSMAndDecaysTool",
357 NewCollectionName =
"TruthBSMWithDecay",
359 Generations = generations))
360 CommonAugmentation = CompFactory.DerivationFramework.CommonAugmentation
361 acc.addEventAlgo(CommonAugmentation(name =
"MCTruthCommonBSMAndDecaysKernel",
362 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 296 of file MCTruthCommonConfig.py.
297 """Add b/c-hadrons and their downstream particles"""
298 kwargs.setdefault(
"addB",
True)
299 kwargs.setdefault(
"addC",
True)
300 kwargs.setdefault(
"generations",-1)
301 kwargs.setdefault(
"prefix",
'')
304 from DerivationFrameworkMCTruth.TruthDerivationToolsConfig
import TruthDecayCollectionMakerCfg
307 name=kwargs[
'prefix']+
"DFCommonHFAndDecaysTool",
308 NewCollectionName=kwargs[
'prefix']+
"TruthHFWithDecay",
309 KeepBHadrons=kwargs[
'addB'],
310 KeepCHadrons=kwargs[
'addC'],
311 Generations=kwargs[
'generations']))
312 acc.addEventAlgo(CompFactory.DerivationFramework.CommonAugmentation(
313 kwargs[
'prefix']+
"MCTruthCommonHFAndDecaysKernel",
314 AugmentationTools = [DFCommonHFAndDecaysTool] ))
◆ AddLargeRJetD2Cfg()
def python.MCTruthCommonConfig.AddLargeRJetD2Cfg |
( |
|
flags | ) |
|
Add large-R jet D2 variable
Definition at line 378 of file MCTruthCommonConfig.py.
379 """Add large-R jet D2 variable"""
382 from DerivationFrameworkMCTruth.TruthDerivationToolsConfig
import TruthD2DecoratorCfg
384 name =
"TruthD2Decorator",
385 JetContainerKey =
"AntiKt10TruthSoftDropBeta100Zcut10Jets",
386 DecorationName =
"D2"))
387 TruthD2DecoratorKernel = CompFactory.DerivationFramework.CommonAugmentation
388 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 431 of file MCTruthCommonConfig.py.
432 """Tool to move pointers to new mini truth collections"""
434 kwargs.setdefault(
"doElectrons",
True)
435 kwargs.setdefault(
"doPhotons",
True)
436 kwargs.setdefault(
"doMuons",
True)
438 from DerivationFrameworkMCTruth.TruthDerivationToolsConfig
import TruthLinkRepointToolCfg
439 if kwargs[
'doElectrons']:
442 name=
"ElMiniCollectionTruthLinkTool",
443 RecoCollection=
"Electrons",
444 TargetCollections=[
"TruthMuons",
"TruthPhotons",
"TruthElectrons"]))
445 aug_tools += [ electron_relink ]
446 if kwargs[
'doPhotons']:
449 name=
"PhMiniCollectionTruthLinkTool",
450 RecoCollection=
"Photons",
451 TargetCollections=[
"TruthMuons",
"TruthPhotons",
"TruthElectrons"]))
452 aug_tools += [ photon_relink ]
453 if kwargs[
'doMuons']:
456 name=
"MuMiniCollectionTruthLinkTool",
457 RecoCollection=
"Muons",
458 TargetCollections=[
"TruthMuons",
"TruthPhotons",
"TruthElectrons"]))
459 aug_tools += [ muon_relink ]
460 for i, tool
in enumerate(aug_tools):
461 acc.addEventAlgo(CompFactory.DerivationFramework.CommonAugmentation(
462 "MiniCollectionTruthLinkKernelNo{num}".
format(num=i+1),
463 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 207 of file MCTruthCommonConfig.py.
211 collection_prefix=None,
212 rejectHadronChildren=False):
213 """Configure tools for adding immediate parents and descendants"""
215 collection_name=collection_prefix+
'WithDecay' if collection_prefix
is not None else 'Truth'+prefix+
'WithDecay'
218 name =
'DFCommon'+prefix+
'AndDecaysTool',
219 NewCollectionName = collection_name,
220 PDGIDsToKeep = parents,
221 Generations = generations,
222 RejectHadronChildren = rejectHadronChildren))
223 CommonAugmentation = CompFactory.DerivationFramework.CommonAugmentation
224 kernel_name =
'MCTruthCommon'+prefix+
'AndDecaysKernel'
225 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 319 of file MCTruthCommonConfig.py.
320 """Add a one-vertex-per event "primary vertex" container"""
323 from DerivationFrameworkMCTruth.TruthDerivationToolsConfig
import TruthPVCollectionMakerCfg
326 name=
"DFCommonTruthPVCollTool",
327 NewCollectionName=
"TruthPrimaryVertices"))
328 acc.addEventAlgo(CompFactory.DerivationFramework.CommonAugmentation(
329 "MCTruthCommonTruthPVCollKernel",
330 AugmentationTools = [DFCommonTruthPVCollTool] ))
◆ AddStandardTruthContentsCfg()
def python.MCTruthCommonConfig.AddStandardTruthContentsCfg |
( |
|
flags, |
|
|
|
decorationDressing = 'dressedPhoton' , |
|
|
|
includeTausInDressingPhotonRemoval = False , |
|
|
|
prefix = '' |
|
) |
| |
Definition at line 168 of file MCTruthCommonConfig.py.
169 decorationDressing='dressedPhoton',
170 includeTausInDressingPhotonRemoval=False,
180 if "McEventCollection#GEN_EVENT" in flags.Input.TypedCollections: isEVNT =
True
189 if includeTausInDressingPhotonRemoval:
190 acc.getPublicTool(
"DFCommonTruthTauDressingTool").decorationName=decorationDressing
191 acc.addEventAlgo(CompFactory.DerivationFramework.LockDecorations(name =
"AddStandardTruthContentsLockDecoration", Decorations = [
'TruthParticles.' + decorationDressing]))
194 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 267 of file MCTruthCommonConfig.py.
269 rejectHadronChildren=False):
270 """Add tau and downstream particles"""
272 generations=generations,
275 rejectHadronChildren=rejectHadronChildren)
◆ AddTopQuarkAndDownstreamParticlesCfg()
def python.MCTruthCommonConfig.AddTopQuarkAndDownstreamParticlesCfg |
( |
|
flags, |
|
|
|
generations = 1 , |
|
|
|
rejectHadronChildren = False |
|
) |
| |
Add top quarks and downstream particles
Definition at line 257 of file MCTruthCommonConfig.py.
259 rejectHadronChildren=False):
260 """Add top quarks and downstream particles"""
262 generations=generations,
265 rejectHadronChildren=rejectHadronChildren)
◆ addTruth3ContentToSlimmerTool()
def python.MCTruthCommonConfig.addTruth3ContentToSlimmerTool |
( |
|
slimmer | ) |
|
Definition at line 466 of file MCTruthCommonConfig.py.
467 slimmer.AllVariables += [
478 "TruthForwardProtons",
480 "TruthBosonsWithDecayParticles",
481 "TruthBosonsWithDecayVertices",
482 "TruthBSMWithDecayParticles",
483 "TruthBSMWithDecayVertices",
485 slimmer.ExtraVariables += [
486 "AntiKt4TruthDressedWZJets.GhostCHadronsFinalCount.GhostBHadronsFinalCount.pt.HadronConeExclTruthLabelID.PartonTruthLabelID.TrueFlavor",
487 "AntiKt10TruthSoftDropBeta100Zcut10Jets.pt.Tau1_wta.Tau2_wta.Tau3_wta.D2",
488 "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 335 of file MCTruthCommonConfig.py.
336 """Tool to add navigation decorations on the truth collections"""
338 if len(TruthCollections)==0:
return
340 from DerivationFrameworkMCTruth.TruthDerivationToolsConfig
import TruthNavigationDecoratorCfg
342 name = prefix+
'DFCommonTruthNavigationDecorator',
343 InputCollections = TruthCollections))
344 CommonAugmentation = CompFactory.DerivationFramework.CommonAugmentation
345 acc.addEventAlgo(CommonAugmentation(prefix+
"MCTruthNavigationDecoratorKernel",
346 AugmentationTools = [DFCommonTruthNavigationDecorator] ))
◆ AddTruthEnergyDensityCfg()
def python.MCTruthCommonConfig.AddTruthEnergyDensityCfg |
( |
|
flags | ) |
|
Truth energy density tools
Definition at line 392 of file MCTruthCommonConfig.py.
393 """Truth energy density tools"""
395 from EventShapeTools.EventDensityConfig
import configEventDensityTool
396 from JetRecConfig.StandardJetConstits
import stdConstitDic
as cst
397 EventDensityAthAlg = CompFactory.EventDensityAthAlg
402 AbsRapidityMax = 1.5,
403 OutputContainer =
"TruthIsoCentralEventShape",
405 acc.addPublicTool(DFCommonTruthCentralEDTool)
406 acc.addEventAlgo(
EventDensityAthAlg(
"DFCommonTruthCentralEDAlg", EventDensityTool = DFCommonTruthCentralEDTool ))
410 AbsRapidityMin = 1.5,
411 AbsRapidityMax = 3.0,
412 OutputContainer =
"TruthIsoForwardEventShape",
414 acc.addPublicTool(DFCommonTruthForwardEDTool)
415 acc.addEventAlgo(
EventDensityAthAlg(
"DFCommonTruthForwardEDAlg", EventDensityTool = DFCommonTruthForwardEDTool ))
418 DFCommonTruthEDDecorator = CompFactory.DerivationFramework.TruthEDDecorator(
"DFCommonTruthEDDecorator",
419 EventInfoName=
"EventInfo",
420 EnergyDensityKeys=[
"TruthIsoCentralEventShape",
"TruthIsoForwardEventShape"],
421 DecorationSuffix=
"_rho"
423 acc.addPublicTool(DFCommonTruthEDDecorator)
425 DFCommonTruthEDKernel = CompFactory.DerivationFramework.CommonAugmentation
426 acc.addEventAlgo(DFCommonTruthEDKernel(
"DFCommonTruthEDKernel", AugmentationTools = [DFCommonTruthEDDecorator] ))
◆ AddTruthJetsCfg()
def python.MCTruthCommonConfig.AddTruthJetsCfg |
( |
|
flags | ) |
|
Definition at line 62 of file MCTruthCommonConfig.py.
66 from JetRecConfig.StandardSmallRJets
import AntiKt4Truth,AntiKt4TruthWZ,AntiKt4TruthDressedWZ,AntiKtVRTruthCharged
67 from JetRecConfig.StandardLargeRJets
import AntiKt10TruthSoftDrop
68 from JetRecConfig.JetRecConfig
import JetRecCfg
70 inputCollections =
set(flags.Input.Collections)
71 jetList = [AntiKt4Truth,AntiKt4TruthWZ,AntiKt4TruthDressedWZ,AntiKtVRTruthCharged,
72 AntiKt10TruthSoftDrop]
76 expectedName = jd.fullname().
encode(
"utf-8")
77 if expectedName
in inputCollections:
◆ AddTruthMETCfg()
def python.MCTruthCommonConfig.AddTruthMETCfg |
( |
|
flags | ) |
|
Definition at line 83 of file MCTruthCommonConfig.py.
89 if (
"MissingETContainer#MET_Truth")
not in flags.Input.TypedCollections:
90 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 131 of file MCTruthCommonConfig.py.
137 from DerivationFrameworkTau.TauTruthCommonConfig
import TauTruthToolsCfg
139 from DerivationFrameworkMCTruth.TruthDerivationToolsConfig
import DFCommonTruthTauDressingToolCfg
143 from DerivationFrameworkMCTruth.GenFilterToolConfig
import GenFilterToolCfg
145 from DerivationFrameworkMCTruth.TruthDerivationToolsConfig
import DFCommonTruthDressedWZQGLabelToolCfg
146 augmentationToolsList += [ acc.getPrimaryAndMerge(
GenFilterToolCfg(flags)) ,
150 from DerivationFrameworkSUSY.DecorateSUSYProcessConfig
import IsSUSYSignalRun3
152 from DerivationFrameworkSUSY.DecorateSUSYProcessConfig
import SUSYSignalTaggerCfg
153 augmentationToolsList += [ acc.getPrimaryAndMerge(
SUSYSignalTaggerCfg(flags,
'MCTruthCommon')) ]
155 CommonAugmentation = CompFactory.DerivationFramework.CommonAugmentation
156 for i, tool
in enumerate(augmentationToolsList):
157 acc.addEventAlgo(CommonAugmentation(name =
"MCTruthCommonPostJetKernelNo{num}".
format(num = i+1),
158 AugmentationTools = [tool]))
162 from DerivationFrameworkSUSY.SUSYWeightMetadataConfig
import AddSUSYWeightsCfg
◆ PreJetMCTruthAugmentationsCfg()
def python.MCTruthCommonConfig.PreJetMCTruthAugmentationsCfg |
( |
|
flags, |
|
|
** |
kwargs |
|
) |
| |
Definition at line 95 of file MCTruthCommonConfig.py.
99 augmentationToolsList = []
104 from DerivationFrameworkMCTruth.TruthDerivationToolsConfig
import ( DFCommonTruthElectronDressingToolCfg,
105 DFCommonTruthMuonDressingToolCfg, DFCommonTruthClassificationToolCfg, DFCommonTruthMuonToolCfg, DFCommonTruthElectronToolCfg,
106 DFCommonTruthPhotonToolSimCfg, DFCommonTruthNeutrinoToolCfg, DFCommonTruthBottomToolCfg, DFCommonTruthTopToolCfg,
107 DFCommonTruthBosonToolCfg, DFCommonTruthBSMToolCfg, DFCommonTruthForwardProtonToolCfg, DFCommonTruthElectronIsolationTool1Cfg,
108 DFCommonTruthElectronIsolationTool2Cfg, DFCommonTruthMuonIsolationTool1Cfg, DFCommonTruthMuonIsolationTool2Cfg,
109 DFCommonTruthPhotonIsolationTool1Cfg, DFCommonTruthPhotonIsolationTool2Cfg, DFCommonTruthPhotonIsolationTool3Cfg )
112 for item
in [ DFCommonTruthClassificationToolCfg, DFCommonTruthMuonToolCfg, DFCommonTruthElectronToolCfg,
113 DFCommonTruthPhotonToolSimCfg, DFCommonTruthNeutrinoToolCfg, DFCommonTruthBottomToolCfg, DFCommonTruthTopToolCfg,
114 DFCommonTruthBosonToolCfg, DFCommonTruthBSMToolCfg, DFCommonTruthElectronIsolationTool1Cfg,
115 DFCommonTruthElectronIsolationTool2Cfg, DFCommonTruthMuonIsolationTool1Cfg, DFCommonTruthMuonIsolationTool2Cfg,
116 DFCommonTruthPhotonIsolationTool1Cfg, DFCommonTruthPhotonIsolationTool2Cfg, DFCommonTruthPhotonIsolationTool3Cfg]:
117 augmentationToolsList.append(acc.getPrimaryAndMerge(
item(flags)))
120 if 'decorationDressing' in kwargs:
124 for i, tool
in enumerate(augmentationToolsList):
125 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)
number_type encode(double weight)
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)
constexpr std::enable_if_t< is_bitmask_v< E >, E & > set(E &lhs, E rhs)
Convenience function to set bits in a class enum bitmask.
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)