ATLAS Offline Software
Functions | Variables
egammaTrackToolsConfig Namespace Reference

Functions

def EMExtrapolationToolsCfg (flags, **kwargs)
 
def egammaTrkRefitterToolCfg (flags, name='GSFRefitterTool', **kwargs)
 
def CaloCluster_OnTrackBuilderCfg (flags, name='CaloCluster_OnTrackBuilder', **kwargs)
 

Variables

string __doc__
 
 flags = initConfigFlags()
 
 Files
 
 cfg = ComponentAccumulator()
 
 mlog = logging.getLogger("egammaTrackToolsConfigTest")
 
 nestLevel
 
 printDefaults
 
 f = open("egtracktools.pkl", "wb")
 

Function Documentation

◆ CaloCluster_OnTrackBuilderCfg()

def egammaTrackToolsConfig.CaloCluster_OnTrackBuilderCfg (   flags,
  name = 'CaloCluster_OnTrackBuilder',
**  kwargs 
)

Definition at line 54 of file egammaTrackToolsConfig.py.

55  name='CaloCluster_OnTrackBuilder',
56  **kwargs):
57  acc = ComponentAccumulator()
58  if "CaloSurfaceBuilder" not in kwargs:
59  from CaloTrackingGeometry.CaloTrackingGeometryConfig import (
60  CaloSurfaceBuilderMiddleCfg)
61  kwargs["CaloSurfaceBuilder"] = acc.popToolsAndMerge(
63  tool = CompFactory.CaloCluster_OnTrackBuilder(name, **kwargs)
64  acc.setPrivateTools(tool)
65  return acc
66 
67 

◆ egammaTrkRefitterToolCfg()

def egammaTrackToolsConfig.egammaTrkRefitterToolCfg (   flags,
  name = 'GSFRefitterTool',
**  kwargs 
)

Definition at line 35 of file egammaTrackToolsConfig.py.

35 def egammaTrkRefitterToolCfg(flags,
36  name='GSFRefitterTool',
37  **kwargs):
38  acc = ComponentAccumulator()
39  if "FitterTool" not in kwargs:
40  if flags.Acts.useActsGsfInEgamma:
41  from ActsConfig.ActsGaussianSumFitterConfig import ActsGaussianSumFitterToolCfg
42  kwargs["FitterTool"] = acc.popToolsAndMerge(
43  ActsGaussianSumFitterToolCfg(flags, name="ActsGSFTrackFitter"))
44  else:
45  from TrkConfig.TrkGaussianSumFilterConfig import GaussianSumFitterCfg
46  kwargs["FitterTool"] = acc.popToolsAndMerge(
47  GaussianSumFitterCfg(flags, name="GSFTrackFitter"))
48 
49  tool = CompFactory.egammaTrkRefitterTool(name, **kwargs)
50  acc.setPrivateTools(tool)
51  return acc
52 
53 

◆ EMExtrapolationToolsCfg()

def egammaTrackToolsConfig.EMExtrapolationToolsCfg (   flags,
**  kwargs 
)

Definition at line 13 of file egammaTrackToolsConfig.py.

13 def EMExtrapolationToolsCfg(flags, **kwargs):
14 
15  mlog = logging.getLogger('EMExtrapolationTools')
16  mlog.debug('Start configuration')
17 
18  acc = ComponentAccumulator()
19 
20  if "Extrapolator" not in kwargs:
21  extrapAcc = AtlasExtrapolatorCfg(flags)
22  kwargs["Extrapolator"] = acc.popToolsAndMerge(extrapAcc)
23 
24  if "CaloExtensionTool" not in kwargs:
25  kwargs["CaloExtensionTool"] = acc.popToolsAndMerge(
27 
28  kwargs["EnableTRT"] = flags.Detector.GeometryTRT
29 
30  emExtrapolationTools = CompFactory.EMExtrapolationTools(**kwargs)
31  acc.setPrivateTools(emExtrapolationTools)
32  return acc
33 
34 

Variable Documentation

◆ __doc__

string egammaTrackToolsConfig.__doc__
private
Initial value:
1 = """Tool configuration to instantiate all
2  egammaCaloTools with default configuration"""

Definition at line 3 of file egammaTrackToolsConfig.py.

◆ cfg

egammaTrackToolsConfig.cfg = ComponentAccumulator()

Definition at line 79 of file egammaTrackToolsConfig.py.

◆ f

egammaTrackToolsConfig.f = open("egtracktools.pkl", "wb")

Definition at line 97 of file egammaTrackToolsConfig.py.

◆ Files

egammaTrackToolsConfig.Files

Definition at line 74 of file egammaTrackToolsConfig.py.

◆ flags

egammaTrackToolsConfig.flags = initConfigFlags()

Definition at line 73 of file egammaTrackToolsConfig.py.

◆ mlog

egammaTrackToolsConfig.mlog = logging.getLogger("egammaTrackToolsConfigTest")

Definition at line 80 of file egammaTrackToolsConfig.py.

◆ nestLevel

egammaTrackToolsConfig.nestLevel

Definition at line 84 of file egammaTrackToolsConfig.py.

◆ printDefaults

egammaTrackToolsConfig.printDefaults

Definition at line 85 of file egammaTrackToolsConfig.py.

python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
egammaTrackToolsConfig.CaloCluster_OnTrackBuilderCfg
def CaloCluster_OnTrackBuilderCfg(flags, name='CaloCluster_OnTrackBuilder', **kwargs)
Definition: egammaTrackToolsConfig.py:54
python.AtlasExtrapolatorConfig.AtlasExtrapolatorCfg
def AtlasExtrapolatorCfg(flags, name='AtlasExtrapolator')
Definition: AtlasExtrapolatorConfig.py:63
egammaTrackToolsConfig.EMExtrapolationToolsCfg
def EMExtrapolationToolsCfg(flags, **kwargs)
Definition: egammaTrackToolsConfig.py:13
ActsGaussianSumFitterConfig.ActsGaussianSumFitterToolCfg
ComponentAccumulator ActsGaussianSumFitterToolCfg(flags, str name="ActsGaussianSumFitterTool", **kwargs)
Definition: ActsGaussianSumFitterConfig.py:6
CaloTrackingGeometryConfig.CaloSurfaceBuilderMiddleCfg
def CaloSurfaceBuilderMiddleCfg(flags, name="CaloSurfaceBuilderMiddle", **kwargs)
Definition: Calorimeter/CaloTrackingGeometry/python/CaloTrackingGeometryConfig.py:19
python.TrkGaussianSumFilterConfig.GaussianSumFitterCfg
def GaussianSumFitterCfg(flags, name="GaussianSumFitter", **kwargs)
Definition: TrkGaussianSumFilterConfig.py:42
TrackToCaloConfig.EMParticleCaloExtensionToolCfg
def EMParticleCaloExtensionToolCfg(flags, name='EMParticleCaloExtensionTool', **kwargs)
Definition: TrackToCaloConfig.py:30
egammaTrackToolsConfig.egammaTrkRefitterToolCfg
def egammaTrkRefitterToolCfg(flags, name='GSFRefitterTool', **kwargs)
Definition: egammaTrackToolsConfig.py:35