ATLAS Offline Software
Functions | Variables
EMTrackMatchBuilderConfig Namespace Reference

Functions

def EMTrackMatchBuilderCfg (flags, name='EMTrackMatchBuilder', **kwargs)
 

Variables

string __doc__ = "Instantiate EMTrackMatchBuilder with default configuration"
 
 flags = initConfigFlags()
 
 Files
 
 cfg = ComponentAccumulator()
 
 mlog = logging.getLogger("EMTrackMatchBuilderConfigTest")
 
 nestLevel
 
 printDefaults
 
 f = open("emtrackmatchbuilder.pkl", "wb")
 

Function Documentation

◆ EMTrackMatchBuilderCfg()

def EMTrackMatchBuilderConfig.EMTrackMatchBuilderCfg (   flags,
  name = 'EMTrackMatchBuilder',
**  kwargs 
)

Definition at line 13 of file EMTrackMatchBuilderConfig.py.

13 def EMTrackMatchBuilderCfg(flags, name='EMTrackMatchBuilder', **kwargs):
14 
15  mlog = logging.getLogger(name)
16  mlog.debug('Start configuration')
17 
18  acc = ComponentAccumulator()
19 
20  if "ExtrapolationTool" not in kwargs:
21  extrap = EMExtrapolationToolsCfg(flags)
22  kwargs["ExtrapolationTool"] = acc.popToolsAndMerge(extrap)
23 
24  if "TrackParticlesName" not in kwargs:
25  kwargs.setdefault("TrackParticlesName",
26  flags.Egamma.Keys.Output.GSFTrackParticles)
27 
28  # candidate match is done in 2 times this so +- 0.2
29  kwargs.setdefault("broadDeltaEta", 0.1)
30  # candidate match is done in 2 times this so +- 0.3
31  kwargs.setdefault("broadDeltaPhi", 0.15)
32  kwargs.setdefault("useCandidateMatch", True)
33  kwargs.setdefault("useScoring", True)
34  kwargs.setdefault("SecondPassRescale", True)
35  kwargs.setdefault("UseRescaleMetric", True)
36  kwargs.setdefault("isCosmics", flags.Beam.Type is BeamType.Cosmics)
37 
38  tool = CompFactory.EMTrackMatchBuilder(name, **kwargs)
39 
40  acc.setPrivateTools(tool)
41  return acc
42 
43 

Variable Documentation

◆ __doc__

string EMTrackMatchBuilderConfig.__doc__ = "Instantiate EMTrackMatchBuilder with default configuration"
private

Definition at line 3 of file EMTrackMatchBuilderConfig.py.

◆ cfg

EMTrackMatchBuilderConfig.cfg = ComponentAccumulator()

Definition at line 55 of file EMTrackMatchBuilderConfig.py.

◆ f

EMTrackMatchBuilderConfig.f = open("emtrackmatchbuilder.pkl", "wb")

Definition at line 63 of file EMTrackMatchBuilderConfig.py.

◆ Files

EMTrackMatchBuilderConfig.Files

Definition at line 50 of file EMTrackMatchBuilderConfig.py.

◆ flags

EMTrackMatchBuilderConfig.flags = initConfigFlags()

Definition at line 49 of file EMTrackMatchBuilderConfig.py.

◆ mlog

EMTrackMatchBuilderConfig.mlog = logging.getLogger("EMTrackMatchBuilderConfigTest")

Definition at line 56 of file EMTrackMatchBuilderConfig.py.

◆ nestLevel

EMTrackMatchBuilderConfig.nestLevel

Definition at line 60 of file EMTrackMatchBuilderConfig.py.

◆ printDefaults

EMTrackMatchBuilderConfig.printDefaults

Definition at line 61 of file EMTrackMatchBuilderConfig.py.

python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
egammaTrackToolsConfig.EMExtrapolationToolsCfg
def EMExtrapolationToolsCfg(flags, **kwargs)
Definition: egammaTrackToolsConfig.py:13
EMTrackMatchBuilderConfig.EMTrackMatchBuilderCfg
def EMTrackMatchBuilderCfg(flags, name='EMTrackMatchBuilder', **kwargs)
Definition: EMTrackMatchBuilderConfig.py:13