ATLAS Offline Software
Functions | Variables
xAODEgammaBuilderConfig Namespace Reference

Functions

def xAODEgammaBuilderCfg (flags, name='xAODEgammaBuilder', sequenceName=None, **kwargs)
 

Variables

string __doc__
 
 flags = initConfigFlags()
 
 Files
 
 acc = MainServicesCfg(flags)
 
 mlog = logging.getLogger("xAODEgammaBuilderConfigTest")
 
 nestLevel
 
 printDefaults
 

Function Documentation

◆ xAODEgammaBuilderCfg()

def xAODEgammaBuilderConfig.xAODEgammaBuilderCfg (   flags,
  name = 'xAODEgammaBuilder',
  sequenceName = None,
**  kwargs 
)

Definition at line 19 of file xAODEgammaBuilderConfig.py.

19 def xAODEgammaBuilderCfg(flags, name='xAODEgammaBuilder',
20  sequenceName = None,
21  **kwargs):
22 
23  seqkw = {'sequence': sequenceName} if sequenceName else {}
24  acc = ComponentAccumulator (**seqkw)
25 
26  if "EMClusterTool" not in kwargs:
27  emclustool = EMClusterToolCfg(flags)
28  kwargs["EMClusterTool"] = acc.popToolsAndMerge(emclustool)
29 
30  if "EMShowerTool" not in kwargs:
31  emshowerbuilder = EMShowerBuilderCfg(flags)
32  kwargs["EMShowerTool"] = acc.popToolsAndMerge(emshowerbuilder)
33 
34  if "ObjectQualityTool" not in kwargs and not flags.Common.isOnline:
35  oqtool = egammaOQFlagsBuilderCfg(flags)
36  kwargs["ObjectQualityTool"] = acc.popToolsAndMerge(oqtool)
37 
38  eleTools = [acc.popToolsAndMerge(EMPIDBuilderElectronCfg(flags))]
39  phoTools = [acc.popToolsAndMerge(EMPIDBuilderPhotonCfg(flags))]
40 
41  kwargs.setdefault(
42  "InputElectronRecCollectionName",
43  flags.Egamma.Keys.Internal.ElectronSuperRecs)
44  kwargs.setdefault(
45  "InputPhotonRecCollectionName",
46  flags.Egamma.Keys.Internal.PhotonSuperRecs)
47  kwargs.setdefault(
48  "ElectronOutputName",
49  flags.Egamma.Keys.Output.Electrons)
50  kwargs.setdefault(
51  "PhotonOutputName",
52  flags.Egamma.Keys.Output.Photons)
53  kwargs.setdefault(
54  "AmbiguityTool",
55  CompFactory.EGammaAmbiguityTool())
56  kwargs.setdefault(
57  "ElectronTools",
58  eleTools)
59  kwargs.setdefault(
60  "PhotonTools",
61  phoTools)
62  kwargs.setdefault(
63  "isTruth",
64  flags.Input.isMC
65  )
66 
67  topoegAlg = CompFactory.xAODEgammaBuilder(name, **kwargs)
68 
69  acc.addEventAlgo(topoegAlg)
70  return acc
71 
72 

Variable Documentation

◆ __doc__

string xAODEgammaBuilderConfig.__doc__
private
Initial value:
1 = """
2  Instantiate the two supercluster
3  builders with default configuration
4  """

Definition at line 3 of file xAODEgammaBuilderConfig.py.

◆ acc

xAODEgammaBuilderConfig.acc = MainServicesCfg(flags)

Definition at line 82 of file xAODEgammaBuilderConfig.py.

◆ Files

xAODEgammaBuilderConfig.Files

Definition at line 79 of file xAODEgammaBuilderConfig.py.

◆ flags

xAODEgammaBuilderConfig.flags = initConfigFlags()

Definition at line 78 of file xAODEgammaBuilderConfig.py.

◆ mlog

xAODEgammaBuilderConfig.mlog = logging.getLogger("xAODEgammaBuilderConfigTest")

Definition at line 84 of file xAODEgammaBuilderConfig.py.

◆ nestLevel

xAODEgammaBuilderConfig.nestLevel

Definition at line 88 of file xAODEgammaBuilderConfig.py.

◆ printDefaults

xAODEgammaBuilderConfig.printDefaults

Definition at line 89 of file xAODEgammaBuilderConfig.py.

EMPIDBuilderConfig.EMPIDBuilderElectronCfg
def EMPIDBuilderElectronCfg(flags, name='EMPIDBuilderElectron', **kwargs)
Definition: EMPIDBuilderConfig.py:11
EMShowerBuilderConfig.EMShowerBuilderCfg
def EMShowerBuilderCfg(flags, name='EMShowerBuilder', **kwargs)
Definition: EMShowerBuilderConfig.py:12
EMPIDBuilderConfig.EMPIDBuilderPhotonCfg
def EMPIDBuilderPhotonCfg(flags, name='EMPIDBuilderPhoton', **kwargs)
Definition: EMPIDBuilderConfig.py:69
egammaOQFlagsBuilderConfig.egammaOQFlagsBuilderCfg
def egammaOQFlagsBuilderCfg(flags, name='egammaOQFlagsBuilder', **kwargs)
Definition: egammaOQFlagsBuilderConfig.py:10
xAODEgammaBuilderConfig.xAODEgammaBuilderCfg
def xAODEgammaBuilderCfg(flags, name='xAODEgammaBuilder', sequenceName=None, **kwargs)
Definition: xAODEgammaBuilderConfig.py:19
EMClusterToolConfig.EMClusterToolCfg
def EMClusterToolCfg(flags, name='EMClusterTool', **kwargs)
Definition: EMClusterToolConfig.py:13