ATLAS Offline Software
Functions | Variables
python.egammaTruthParticleConfig Namespace Reference

Functions

def egammaTruthParticleCfg (flags, algname='egammaTruthBuilder', sequenceName=None, **kwargs)
 

Variables

 D3PD = CompFactory.D3PD
 

Function Documentation

◆ egammaTruthParticleCfg()

def python.egammaTruthParticleConfig.egammaTruthParticleCfg (   flags,
  algname = 'egammaTruthBuilder',
  sequenceName = None,
**  kwargs 
)

Definition at line 19 of file egammaTruthParticleConfig.py.

19 def egammaTruthParticleCfg (flags,
20  algname = 'egammaTruthBuilder',
21  sequenceName = None,
22  **kwargs):
23 
24  acc = ComponentAccumulator()
25 
26  if 'ParticleCaloExtensionTool' not in kwargs:
27  from TrkConfig.AtlasExtrapolatorConfig import \
28  MCTruthClassifierExtrapolatorCfg
29  extrapolator = acc.popToolsAndMerge \
30  (MCTruthClassifierExtrapolatorCfg (flags))
31 
32  from TrackToCalo.TrackToCaloConfig import EMParticleCaloExtensionToolCfg
33  extension = EMParticleCaloExtensionToolCfg \
34  (flags, Extrapolator=extrapolator)
35 
36  kwargs['ParticleCaloExtensionTool'] = acc.popToolsAndMerge (extension)
37 
38  kwargs.setdefault ('InputKey', D3PDMakerFlags.TruthSGKey)
39  kwargs.setdefault ('OutputKey', 'egammaTruth')
40  kwargs.setdefault ('AuxPrefix', D3PDMakerFlags.EgammaUserDataPrefix)
41 
42  # From egammaD3PDAnalysis
43  acc.addEventAlgo (D3PD.egammaTruthAlg (algname, **kwargs))
44  return acc
45 

Variable Documentation

◆ D3PD

python.egammaTruthParticleConfig.D3PD = CompFactory.D3PD

Definition at line 16 of file egammaTruthParticleConfig.py.

python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
D3PD::egammaTruthAlg
Select egtruth particles.
Definition: egammaTruthAlg.h:36
python.egammaTruthParticleConfig.egammaTruthParticleCfg
def egammaTruthParticleCfg(flags, algname='egammaTruthBuilder', sequenceName=None, **kwargs)
Definition: egammaTruthParticleConfig.py:19