ATLAS Offline Software
Functions | Variables
EMBremCollectionBuilderConfig Namespace Reference

Functions

def EMBremCollectionBuilderCfg (flags, name="EMBremCollectionBuilder", **kwargs)
 

Variables

 flags = initConfigFlags()
 
 Files
 
 acc = MainServicesCfg(flags)
 
 mlog = logging.getLogger("EMBremCollectionBuilderConfigTest")
 
 nestLevel
 
 printDefaults
 

Function Documentation

◆ EMBremCollectionBuilderCfg()

def EMBremCollectionBuilderConfig.EMBremCollectionBuilderCfg (   flags,
  name = "EMBremCollectionBuilder",
**  kwargs 
)
Algorithm to create the GSF collection
    We need to refit with GSF
    Create a Track Summary
    Create the relevant TrackParticles 

Definition at line 8 of file EMBremCollectionBuilderConfig.py.

9  name="EMBremCollectionBuilder",
10  **kwargs):
11  """ Algorithm to create the GSF collection
12  We need to refit with GSF
13  Create a Track Summary
14  Create the relevant TrackParticles """
15 
16  acc = ComponentAccumulator()
17 
18  if "TrackRefitTool" not in kwargs:
19  from egammaTrackTools.egammaTrackToolsConfig import (
20  egammaTrkRefitterToolCfg)
21  kwargs["TrackRefitTool"] = acc.popToolsAndMerge(
23 
24  if "TrackParticleCreatorTool" not in kwargs:
25  from TrkConfig.TrkParticleCreatorConfig import (
26  GSFBuildInDetParticleCreatorToolCfg)
27  kwargs["TrackParticleCreatorTool"] = acc.popToolsAndMerge(
29 
30  if "TrackSlimmingTool" not in kwargs:
31  from TrkConfig.TrkTrackSlimmingToolConfig import GSFTrackSlimmingToolCfg
32  kwargs["TrackSlimmingTool"] = acc.popToolsAndMerge(GSFTrackSlimmingToolCfg(flags))
33 
34  kwargs.setdefault(
35  "usePixel",
36  flags.Detector.EnablePixel or flags.Detector.EnableITkPixel)
37  kwargs.setdefault(
38  "useSCT",
39  flags.Detector.EnableSCT or flags.Detector.EnableITkStrip)
40  kwargs.setdefault("useTRT", flags.Detector.EnableTRT)
41  kwargs.setdefault("DoTruth", flags.Input.isMC)
42  kwargs.setdefault("slimTrkTracks", flags.Egamma.slimGSFTrkTracks)
43  kwargs.setdefault("useHGTD", flags.Reco.EnableHGTDExtension)
44 
45  # P->T conversion extra dependencies
46  if flags.Detector.GeometryITk:
47  kwargs.setdefault("ExtraInputs", [
48  ("InDetDD::SiDetectorElementCollection",
49  "ConditionStore+ITkPixelDetectorElementCollection"),
50  ("InDetDD::SiDetectorElementCollection",
51  "ConditionStore+ITkStripDetectorElementCollection"),
52  ])
53  else:
54  kwargs.setdefault("ExtraInputs", [
55  ("InDetDD::SiDetectorElementCollection",
56  "ConditionStore+PixelDetectorElementCollection"),
57  ("InDetDD::SiDetectorElementCollection",
58  "ConditionStore+SCT_DetectorElementCollection"),
59  ])
60 
61  alg = CompFactory.EMBremCollectionBuilder(name, **kwargs)
62  acc.addEventAlgo(alg)
63  return acc
64 
65 

Variable Documentation

◆ acc

EMBremCollectionBuilderConfig.acc = MainServicesCfg(flags)

Definition at line 74 of file EMBremCollectionBuilderConfig.py.

◆ Files

EMBremCollectionBuilderConfig.Files

Definition at line 72 of file EMBremCollectionBuilderConfig.py.

◆ flags

EMBremCollectionBuilderConfig.flags = initConfigFlags()

Definition at line 71 of file EMBremCollectionBuilderConfig.py.

◆ mlog

EMBremCollectionBuilderConfig.mlog = logging.getLogger("EMBremCollectionBuilderConfigTest")

Definition at line 76 of file EMBremCollectionBuilderConfig.py.

◆ nestLevel

EMBremCollectionBuilderConfig.nestLevel

Definition at line 80 of file EMBremCollectionBuilderConfig.py.

◆ printDefaults

EMBremCollectionBuilderConfig.printDefaults

Definition at line 81 of file EMBremCollectionBuilderConfig.py.

EMBremCollectionBuilderConfig.EMBremCollectionBuilderCfg
def EMBremCollectionBuilderCfg(flags, name="EMBremCollectionBuilder", **kwargs)
Definition: EMBremCollectionBuilderConfig.py:8
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.TrkParticleCreatorConfig.GSFBuildInDetParticleCreatorToolCfg
def GSFBuildInDetParticleCreatorToolCfg(flags, name="GSFBuildInDetParticleCreatorTool", isTrigger=False, **kwargs)
Definition: TrkParticleCreatorConfig.py:237
python.TrkTrackSlimmingToolConfig.GSFTrackSlimmingToolCfg
def GSFTrackSlimmingToolCfg(flags, name="GSFBuildInDetTrackSlimmingTool", **kwargs)
Definition: TrkTrackSlimmingToolConfig.py:13
egammaTrackToolsConfig.egammaTrkRefitterToolCfg
def egammaTrkRefitterToolCfg(flags, name='GSFRefitterTool', **kwargs)
Definition: egammaTrackToolsConfig.py:35