![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
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 | AddHardScatterCollectionCfg (flags, generations=1) |
|
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 369 of file MCTruthCommonConfig.py.
370 """Add born leptons as a mini collection"""
373 from DerivationFrameworkMCTruth.TruthDerivationToolsConfig
import TruthBornLeptonCollectionMakerCfg
375 name =
"DFCommonBornLeptonCollTool",
376 NewCollectionName =
"BornLeptons"))
377 CommonAugmentation = CompFactory.DerivationFramework.CommonAugmentation
378 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 243 of file MCTruthCommonConfig.py.
245 rejectHadronChildren=False):
246 """Add bosons and downstream particles (not photons/gluons)"""
248 generations = generations,
249 parents = [23,24,25],
251 rejectHadronChildren = rejectHadronChildren)
◆ AddBSMAndDownstreamParticlesCfg()
def python.MCTruthCommonConfig.AddBSMAndDownstreamParticlesCfg |
( |
|
flags, |
|
|
|
generations = -1 |
|
) |
| |
Add BSM particles and their downstream particles in a special collection
Definition at line 353 of file MCTruthCommonConfig.py.
354 """Add BSM particles and their downstream particles in a special collection"""
359 name =
"DFCommonBSMAndDecaysTool",
360 NewCollectionName =
"TruthBSMWithDecay",
362 Generations = generations))
363 CommonAugmentation = CompFactory.DerivationFramework.CommonAugmentation
364 acc.addEventAlgo(CommonAugmentation(name =
"MCTruthCommonBSMAndDecaysKernel",
365 AugmentationTools = [DFCommonBSMAndDecaysTool] ))
◆ AddHardScatterCollectionCfg()
def python.MCTruthCommonConfig.AddHardScatterCollectionCfg |
( |
|
flags, |
|
|
|
generations = 1 |
|
) |
| |
Add a mini-collection for the hard scatter and N subsequent generations
Definition at line 331 of file MCTruthCommonConfig.py.
332 """Add a mini-collection for the hard scatter and N subsequent generations"""
◆ 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 293 of file MCTruthCommonConfig.py.
294 """Add b/c-hadrons and their downstream particles"""
295 kwargs.setdefault(
"addB",
True)
296 kwargs.setdefault(
"addC",
True)
297 kwargs.setdefault(
"generations",-1)
298 kwargs.setdefault(
"prefix",
'')
301 from DerivationFrameworkMCTruth.TruthDerivationToolsConfig
import TruthDecayCollectionMakerCfg
304 name=kwargs[
'prefix']+
"DFCommonHFAndDecaysTool",
305 NewCollectionName=kwargs[
'prefix']+
"TruthHFWithDecay",
306 KeepBHadrons=kwargs[
'addB'],
307 KeepCHadrons=kwargs[
'addC'],
308 Generations=kwargs[
'generations']))
309 acc.addEventAlgo(CompFactory.DerivationFramework.CommonAugmentation(
310 kwargs[
'prefix']+
"MCTruthCommonHFAndDecaysKernel",
311 AugmentationTools = [DFCommonHFAndDecaysTool] ))
◆ AddLargeRJetD2Cfg()
def python.MCTruthCommonConfig.AddLargeRJetD2Cfg |
( |
|
flags | ) |
|
Add large-R jet D2 variable
Definition at line 381 of file MCTruthCommonConfig.py.
382 """Add large-R jet D2 variable"""
385 from DerivationFrameworkMCTruth.TruthDerivationToolsConfig
import TruthD2DecoratorCfg
387 name =
"TruthD2Decorator",
388 JetContainerKey =
"AntiKt10TruthSoftDropBeta100Zcut10Jets",
389 DecorationName =
"D2"))
390 TruthD2DecoratorKernel = CompFactory.DerivationFramework.CommonAugmentation
391 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 434 of file MCTruthCommonConfig.py.
435 """Tool to move pointers to new mini truth collections"""
437 kwargs.setdefault(
"doElectrons",
True)
438 kwargs.setdefault(
"doPhotons",
True)
439 kwargs.setdefault(
"doMuons",
True)
441 from DerivationFrameworkMCTruth.TruthDerivationToolsConfig
import TruthLinkRepointToolCfg
442 if kwargs[
'doElectrons']:
445 name=
"ElMiniCollectionTruthLinkTool",
446 RecoCollection=
"Electrons",
447 TargetCollections=[
"TruthMuons",
"TruthPhotons",
"TruthElectrons"]))
448 aug_tools += [ electron_relink ]
449 if kwargs[
'doPhotons']:
452 name=
"PhMiniCollectionTruthLinkTool",
453 RecoCollection=
"Photons",
454 TargetCollections=[
"TruthMuons",
"TruthPhotons",
"TruthElectrons"]))
455 aug_tools += [ photon_relink ]
456 if kwargs[
'doMuons']:
459 name=
"MuMiniCollectionTruthLinkTool",
460 RecoCollection=
"Muons",
461 TargetCollections=[
"TruthMuons",
"TruthPhotons",
"TruthElectrons"]))
462 aug_tools += [ muon_relink ]
463 for i, tool
in enumerate(aug_tools):
464 acc.addEventAlgo(CompFactory.DerivationFramework.CommonAugmentation(
465 "MiniCollectionTruthLinkKernelNo{num}".
format(num=i+1),
466 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 204 of file MCTruthCommonConfig.py.
208 collection_prefix=None,
209 rejectHadronChildren=False):
210 """Configure tools for adding immediate parents and descendants"""
212 collection_name=collection_prefix+
'WithDecay' if collection_prefix
is not None else 'Truth'+prefix+
'WithDecay'
215 name =
'DFCommon'+prefix+
'AndDecaysTool',
216 NewCollectionName = collection_name,
217 PDGIDsToKeep = parents,
218 Generations = generations,
219 RejectHadronChildren = rejectHadronChildren))
220 CommonAugmentation = CompFactory.DerivationFramework.CommonAugmentation
221 kernel_name =
'MCTruthCommon'+prefix+
'AndDecaysKernel'
222 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 316 of file MCTruthCommonConfig.py.
317 """Add a one-vertex-per event "primary vertex" container"""
320 from DerivationFrameworkMCTruth.TruthDerivationToolsConfig
import TruthPVCollectionMakerCfg
323 name=
"DFCommonTruthPVCollTool",
324 NewCollectionName=
"TruthPrimaryVertices"))
325 acc.addEventAlgo(CompFactory.DerivationFramework.CommonAugmentation(
326 "MCTruthCommonTruthPVCollKernel",
327 AugmentationTools = [DFCommonTruthPVCollTool] ))
◆ AddStandardTruthContentsCfg()
def python.MCTruthCommonConfig.AddStandardTruthContentsCfg |
( |
|
flags, |
|
|
|
decorationDressing = 'dressedPhoton' , |
|
|
|
includeTausInDressingPhotonRemoval = False , |
|
|
|
prefix = '' |
|
) |
| |
Definition at line 165 of file MCTruthCommonConfig.py.
166 decorationDressing='dressedPhoton',
167 includeTausInDressingPhotonRemoval=False,
177 if "McEventCollection#GEN_EVENT" in flags.Input.TypedCollections: isEVNT =
True
181 if includeTausInDressingPhotonRemoval:
182 acc.getPublicTool(
"DFCommonTruthTauDressingTool").decorationName=decorationDressing
189 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 264 of file MCTruthCommonConfig.py.
266 rejectHadronChildren=False):
267 """Add tau and downstream particles"""
269 generations=generations,
272 rejectHadronChildren=rejectHadronChildren)
◆ AddTopQuarkAndDownstreamParticlesCfg()
def python.MCTruthCommonConfig.AddTopQuarkAndDownstreamParticlesCfg |
( |
|
flags, |
|
|
|
generations = 1 , |
|
|
|
rejectHadronChildren = False |
|
) |
| |
Add top quarks and downstream particles
Definition at line 254 of file MCTruthCommonConfig.py.
256 rejectHadronChildren=False):
257 """Add top quarks and downstream particles"""
259 generations=generations,
262 rejectHadronChildren=rejectHadronChildren)
◆ addTruth3ContentToSlimmerTool()
def python.MCTruthCommonConfig.addTruth3ContentToSlimmerTool |
( |
|
slimmer | ) |
|
Definition at line 469 of file MCTruthCommonConfig.py.
470 slimmer.AllVariables += [
481 "TruthForwardProtons",
483 "TruthBosonsWithDecayParticles",
484 "TruthBosonsWithDecayVertices",
485 "TruthBSMWithDecayParticles",
486 "TruthBSMWithDecayVertices",
487 "HardScatterParticles",
488 "HardScatterVertices",
490 slimmer.ExtraVariables += [
491 "AntiKt4TruthDressedWZJets.GhostCHadronsFinalCount.GhostBHadronsFinalCount.pt.HadronConeExclTruthLabelID.ConeTruthLabelID.PartonTruthLabelID.TrueFlavor",
492 "AntiKt10TruthSoftDropBeta100Zcut10Jets.pt.Tau1_wta.Tau2_wta.Tau3_wta.D2",
493 "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 338 of file MCTruthCommonConfig.py.
339 """Tool to add navigation decorations on the truth collections"""
341 if len(TruthCollections)==0:
return
343 from DerivationFrameworkMCTruth.TruthDerivationToolsConfig
import TruthNavigationDecoratorCfg
345 name = prefix+
'DFCommonTruthNavigationDecorator',
346 InputCollections = TruthCollections))
347 CommonAugmentation = CompFactory.DerivationFramework.CommonAugmentation
348 acc.addEventAlgo(CommonAugmentation(prefix+
"MCTruthNavigationDecoratorKernel",
349 AugmentationTools = [DFCommonTruthNavigationDecorator] ))
◆ AddTruthEnergyDensityCfg()
def python.MCTruthCommonConfig.AddTruthEnergyDensityCfg |
( |
|
flags | ) |
|
Truth energy density tools
Definition at line 395 of file MCTruthCommonConfig.py.
396 """Truth energy density tools"""
398 from EventShapeTools.EventDensityConfig
import configEventDensityTool
399 from JetRecConfig.StandardJetConstits
import stdConstitDic
as cst
400 EventDensityAthAlg = CompFactory.EventDensityAthAlg
405 AbsRapidityMax = 1.5,
406 OutputContainer =
"TruthIsoCentralEventShape",
408 acc.addPublicTool(DFCommonTruthCentralEDTool)
409 acc.addEventAlgo(
EventDensityAthAlg(
"DFCommonTruthCentralEDAlg", EventDensityTool = DFCommonTruthCentralEDTool ))
413 AbsRapidityMin = 1.5,
414 AbsRapidityMax = 3.0,
415 OutputContainer =
"TruthIsoForwardEventShape",
417 acc.addPublicTool(DFCommonTruthForwardEDTool)
418 acc.addEventAlgo(
EventDensityAthAlg(
"DFCommonTruthForwardEDAlg", EventDensityTool = DFCommonTruthForwardEDTool ))
421 DFCommonTruthEDDecorator = CompFactory.DerivationFramework.TruthEDDecorator(
"DFCommonTruthEDDecorator",
422 EventInfoName=
"EventInfo",
423 EnergyDensityKeys=[
"TruthIsoCentralEventShape",
"TruthIsoForwardEventShape"],
424 DecorationSuffix=
"_rho"
426 acc.addPublicTool(DFCommonTruthEDDecorator)
428 DFCommonTruthEDKernel = CompFactory.DerivationFramework.CommonAugmentation
429 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
68 from JetRecConfig.JetConfigFlags
import jetInternalFlags
70 jetInternalFlags.isRecoJob =
True
72 jetList = [AntiKt4Truth,AntiKt4TruthWZ,AntiKt4TruthDressedWZ,AntiKtVRTruthCharged,
73 AntiKt10TruthTrimmed,AntiKt10TruthSoftDrop]
◆ AddTruthMETCfg()
def python.MCTruthCommonConfig.AddTruthMETCfg |
( |
|
flags | ) |
|
Definition at line 81 of file MCTruthCommonConfig.py.
87 if (
"MissingETContainer#MET_Truth")
not in flags.Input.TypedCollections:
88 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 128 of file MCTruthCommonConfig.py.
134 from DerivationFrameworkTau.TauTruthCommonConfig
import TauTruthToolsCfg
136 from DerivationFrameworkMCTruth.TruthDerivationToolsConfig
import DFCommonTruthTauDressingToolCfg
140 from DerivationFrameworkMCTruth.GenFilterToolConfig
import GenFilterToolCfg
142 from DerivationFrameworkMCTruth.TruthDerivationToolsConfig
import DFCommonTruthDressedWZQGLabelToolCfg
143 augmentationToolsList += [ acc.getPrimaryAndMerge(
GenFilterToolCfg(flags)) ,
147 from DerivationFrameworkSUSY.DecorateSUSYProcessConfig
import IsSUSYSignalRun3
149 from DerivationFrameworkSUSY.DecorateSUSYProcessConfig
import SUSYSignalTaggerCfg
150 augmentationToolsList += [ acc.getPrimaryAndMerge(
SUSYSignalTaggerCfg(flags,
'MCTruthCommon')) ]
152 CommonAugmentation = CompFactory.DerivationFramework.CommonAugmentation
153 for i, tool
in enumerate(augmentationToolsList):
154 acc.addEventAlgo(CommonAugmentation(name =
"MCTruthCommonPostJetKernelNo{num}".
format(num = i+1),
155 AugmentationTools = [tool]))
159 from DerivationFrameworkSUSY.SUSYWeightMetadataConfig
import AddSUSYWeightsCfg
◆ PreJetMCTruthAugmentationsCfg()
def python.MCTruthCommonConfig.PreJetMCTruthAugmentationsCfg |
( |
|
flags, |
|
|
** |
kwargs |
|
) |
| |
Definition at line 93 of file MCTruthCommonConfig.py.
97 augmentationToolsList = []
102 from DerivationFrameworkMCTruth.TruthDerivationToolsConfig
import ( DFCommonTruthElectronDressingToolCfg,
103 DFCommonTruthMuonDressingToolCfg, DFCommonTruthClassificationToolCfg, DFCommonTruthMuonToolCfg, DFCommonTruthElectronToolCfg,
104 DFCommonTruthPhotonToolSimCfg, DFCommonTruthNeutrinoToolCfg, DFCommonTruthBottomToolCfg, DFCommonTruthTopToolCfg,
105 DFCommonTruthBosonToolCfg, DFCommonTruthBSMToolCfg, DFCommonTruthForwardProtonToolCfg, DFCommonTruthElectronIsolationTool1Cfg,
106 DFCommonTruthElectronIsolationTool2Cfg, DFCommonTruthMuonIsolationTool1Cfg, DFCommonTruthMuonIsolationTool2Cfg,
107 DFCommonTruthPhotonIsolationTool1Cfg, DFCommonTruthPhotonIsolationTool2Cfg, DFCommonTruthPhotonIsolationTool3Cfg )
110 for item
in [ DFCommonTruthClassificationToolCfg, DFCommonTruthMuonToolCfg, DFCommonTruthElectronToolCfg,
111 DFCommonTruthPhotonToolSimCfg, DFCommonTruthNeutrinoToolCfg, DFCommonTruthBottomToolCfg, DFCommonTruthTopToolCfg,
112 DFCommonTruthBosonToolCfg, DFCommonTruthBSMToolCfg, DFCommonTruthElectronIsolationTool1Cfg,
113 DFCommonTruthElectronIsolationTool2Cfg, DFCommonTruthMuonIsolationTool1Cfg, DFCommonTruthMuonIsolationTool2Cfg,
114 DFCommonTruthPhotonIsolationTool1Cfg, DFCommonTruthPhotonIsolationTool2Cfg, DFCommonTruthPhotonIsolationTool3Cfg]:
115 augmentationToolsList.append(acc.getPrimaryAndMerge(
item(flags)))
118 if 'decorationDressing' in kwargs:
122 for i, tool
in enumerate(augmentationToolsList):
123 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 AddHardScatterCollectionCfg(flags, generations=1)
def EventInfoCnvAlgCfg(flags, name="EventInfoCnvAlg", inputKey="McEventInfo", outputKey="EventInfo", disableBeamSpot=False, **kwargs)
def AddTruthJetsCfg(flags)