ATLAS Offline Software
Functions
python.HLT.Electron.TrigEMBremCollectionBuilder Namespace Reference

Functions

def TrigEMBremCollectionBuilderCfg (flags, name="TrigEgammaBremCollectionBuilder", **kwargs)
 

Function Documentation

◆ TrigEMBremCollectionBuilderCfg()

def python.HLT.Electron.TrigEMBremCollectionBuilder.TrigEMBremCollectionBuilderCfg (   flags,
  name = "TrigEgammaBremCollectionBuilder",
**  kwargs 
)

Definition at line 6 of file TrigEMBremCollectionBuilder.py.

6 def TrigEMBremCollectionBuilderCfg(flags, name = "TrigEgammaBremCollectionBuilder", **kwargs):
7 
9  if "TrackRefitTool" not in kwargs:
10  from egammaTrackTools.egammaTrackToolsConfig import (
11  egammaTrkRefitterToolCfg)
12  kwargs["TrackRefitTool"] = acc.popToolsAndMerge(
14 
15 
16  if "TrackParticleCreatorTool" not in kwargs:
17  from TrkConfig.TrkParticleCreatorConfig import (
18  GSFBuildInDetParticleCreatorToolCfg)
19  kwargs["TrackParticleCreatorTool"] = acc.popToolsAndMerge(
20  GSFBuildInDetParticleCreatorToolCfg(flags, name="TrigGSFBuildInDetParticleCreatorTool", isTrigger=True))
21 
22  if "TrackSlimmingTool" not in kwargs:
23  from TrkConfig.TrkTrackSlimmingToolConfig import GSFTrackSlimmingToolCfg
24  kwargs["TrackSlimmingTool"] = acc.popToolsAndMerge(GSFTrackSlimmingToolCfg(flags))
25 
26  kwargs.setdefault(
27  "usePixel",
28  flags.Detector.EnablePixel or flags.Detector.EnableITkPixel)
29  kwargs.setdefault(
30  "useSCT",
31  flags.Detector.EnableSCT or flags.Detector.EnableITkStrip)
32  kwargs.setdefault("useTRT", flags.Detector.EnableTRT)
33  kwargs.setdefault("DoTruth", flags.Input.isMC)
34  kwargs.setdefault("slimTrkTracks", flags.Egamma.slimGSFTrkTracks)
35 
36  # P->T conversion extra dependencies
37  if flags.Detector.GeometryITk:
38  kwargs.setdefault("ExtraInputs", [
39  ("InDetDD::SiDetectorElementCollection",
40  "ConditionStore+ITkPixelDetectorElementCollection"),
41  ("InDetDD::SiDetectorElementCollection",
42  "ConditionStore+ITkStripDetectorElementCollection"),
43  ])
44  else:
45  kwargs.setdefault("ExtraInputs", [
46  ("InDetDD::SiDetectorElementCollection",
47  "ConditionStore+PixelDetectorElementCollection"),
48  ("InDetDD::SiDetectorElementCollection",
49  "ConditionStore+SCT_DetectorElementCollection"),
50  ])
51 
52  alg = CompFactory.EMBremCollectionBuilder(name, **kwargs)
53  acc.addEventAlgo(alg)
54  return acc
55 
56 
57 
58 
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
python.HLT.Electron.TrigEMBremCollectionBuilder.TrigEMBremCollectionBuilderCfg
def TrigEMBremCollectionBuilderCfg(flags, name="TrigEgammaBremCollectionBuilder", **kwargs)
Definition: TrigEMBremCollectionBuilder.py:6
egammaTrackToolsConfig.egammaTrkRefitterToolCfg
def egammaTrkRefitterToolCfg(flags, name='GSFRefitterTool', **kwargs)
Definition: egammaTrackToolsConfig.py:35