ATLAS Offline Software
Functions | Variables
egammaForwardBuilderConfig Namespace Reference

Functions

def egammaForwardBuilderCfg (flags, name='egammaForwardElectron', **kwargs)
 

Variables

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

Function Documentation

◆ egammaForwardBuilderCfg()

def egammaForwardBuilderConfig.egammaForwardBuilderCfg (   flags,
  name = 'egammaForwardElectron',
**  kwargs 
)

Definition at line 13 of file egammaForwardBuilderConfig.py.

13 def egammaForwardBuilderCfg(flags, name='egammaForwardElectron', **kwargs):
14 
15  acc = ComponentAccumulator()
16 
17  if flags.Detector.GeometryITk:
18  kwargs["doTrackMatching"] = True
19  kwargs["doCookieCutting"] = True
20  kwargs.setdefault("TrackMatchBuilderTool", acc.popToolsAndMerge(EMTrackMatchBuilderCfg(flags)))
21  if "forwardelectronIsEMselectors" not in kwargs:
22  LooseFwdElectronSelector = AsgForwardElectronIsEMSelectorCfg(
23  flags,
24  "LooseForwardElectronSelector",
25  egammaPID.ForwardElectronIDLoose)
26  MediumFwdElectronSelector = AsgForwardElectronIsEMSelectorCfg(
27  flags,
28  "MediumForwardElectronSelector",
29  egammaPID.ForwardElectronIDMedium)
30  TightFwdElectronSelector = AsgForwardElectronIsEMSelectorCfg(
31  flags,
32  "TightForwardElectronSelector",
33  egammaPID.ForwardElectronIDTight)
34 
35  kwargs.setdefault("forwardelectronIsEMselectors",
36  [LooseFwdElectronSelector.popPrivateTools(),
37  MediumFwdElectronSelector.popPrivateTools(),
38  TightFwdElectronSelector.popPrivateTools()])
39  kwargs.setdefault(
40  "forwardelectronIsEMselectorResultNames",
41  ["Loose", "Medium", "Tight"])
42 
43  acc.merge(LooseFwdElectronSelector)
44  acc.merge(MediumFwdElectronSelector)
45  acc.merge(TightFwdElectronSelector)
46 
47  if "ObjectQualityTool" not in kwargs and not flags.Common.isOnline:
48  egOQ = egammaOQFlagsBuilderCfg(flags)
49  kwargs["ObjectQualityTool"] = egOQ.popPrivateTools()
50  acc.merge(egOQ)
51 
52  kwargs.setdefault("ElectronOutputName",
53  flags.Egamma.Keys.Output.ForwardElectrons)
54  kwargs.setdefault("TopoClusterName",
55  flags.Egamma.Keys.Internal.ForwardTopoClusters)
56  kwargs.setdefault("ClusterContainerName",
57  flags.Egamma.Keys.Output.ForwardClusters)
58  fwdAlg = CompFactory.egammaForwardBuilder(name, **kwargs)
59 
60  acc.addEventAlgo(fwdAlg)
61  return acc
62 
63 

Variable Documentation

◆ acc

egammaForwardBuilderConfig.acc = MainServicesCfg(flags)

Definition at line 73 of file egammaForwardBuilderConfig.py.

◆ Files

egammaForwardBuilderConfig.Files

Definition at line 70 of file egammaForwardBuilderConfig.py.

◆ flags

egammaForwardBuilderConfig.flags = initConfigFlags()

Definition at line 69 of file egammaForwardBuilderConfig.py.

◆ mlog

egammaForwardBuilderConfig.mlog = logging.getLogger("egammaForwardBuilderConfigTest")

Definition at line 74 of file egammaForwardBuilderConfig.py.

◆ nestLevel

egammaForwardBuilderConfig.nestLevel

Definition at line 79 of file egammaForwardBuilderConfig.py.

◆ printDefaults

egammaForwardBuilderConfig.printDefaults

Definition at line 80 of file egammaForwardBuilderConfig.py.

python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.AsgForwardElectronIsEMSelectorsConfig.AsgForwardElectronIsEMSelectorCfg
def AsgForwardElectronIsEMSelectorCfg(flags, name, quality, menu=forwardelectronPIDmenu.menuMC15)
Definition: AsgForwardElectronIsEMSelectorsConfig.py:14
EMTrackMatchBuilderConfig.EMTrackMatchBuilderCfg
def EMTrackMatchBuilderCfg(flags, name='EMTrackMatchBuilder', **kwargs)
Definition: EMTrackMatchBuilderConfig.py:13
egammaForwardBuilderConfig.egammaForwardBuilderCfg
def egammaForwardBuilderCfg(flags, name='egammaForwardElectron', **kwargs)
Definition: egammaForwardBuilderConfig.py:13
egammaOQFlagsBuilderConfig.egammaOQFlagsBuilderCfg
def egammaOQFlagsBuilderCfg(flags, name='egammaOQFlagsBuilder', **kwargs)
Definition: egammaOQFlagsBuilderConfig.py:10