ATLAS Offline Software
Functions | Variables
egammaSuperClusterBuilderConfig Namespace Reference

Functions

def electronSuperClusterBuilderCfg (flags, name='electronSuperClusterBuilder', sequenceName=None, **kwargs)
 
def photonSuperClusterBuilderCfg (flags, name='photonSuperClusterBuilder', sequenceName=None, **kwargs)
 

Variables

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

Function Documentation

◆ electronSuperClusterBuilderCfg()

def egammaSuperClusterBuilderConfig.electronSuperClusterBuilderCfg (   flags,
  name = 'electronSuperClusterBuilder',
  sequenceName = None,
**  kwargs 
)

Definition at line 16 of file egammaSuperClusterBuilderConfig.py.

17  name='electronSuperClusterBuilder',
18  sequenceName=None,
19  **kwargs):
20 
21  mlog = logging.getLogger(name)
22  mlog.debug('Start configuration')
23 
24  seqkw = {'sequence': sequenceName} if sequenceName else {}
25  acc = ComponentAccumulator(**seqkw)
26 
27  kwargs.setdefault("doTrackMatching", flags.Egamma.doTracking)
28  kwargs.setdefault("UseExtendedTG3", flags.GeoModel.Run is LHCPeriod.Run3)
29  kwargs.setdefault("EtThresholdCut",
30  1000 if not flags.Egamma.doLowMu else 300)
31  kwargs.setdefault(
32  "ClusterCorrectionTool",
33  acc.popToolsAndMerge(egammaSwToolCfg(flags)))
34  kwargs.setdefault(
35  "MVACalibSvc",
36  acc.getPrimaryAndMerge(egammaMVASvcCfg(flags)))
37  kwargs.setdefault(
38  "egammaCheckEnergyDepositTool",
39  CompFactory.egammaCheckEnergyDepositTool())
40  kwargs.setdefault(
41  "TrackMatchBuilderTool",
42  acc.popToolsAndMerge(EMTrackMatchBuilderCfg(flags)))
43  kwargs.setdefault(
44  "InputEgammaRecContainerName",
45  flags.Egamma.Keys.Internal.EgammaRecs)
46  kwargs.setdefault(
47  "OutputEgammaRecContainerKey",
48  flags.Egamma.Keys.Internal.ElectronSuperRecs)
49  kwargs.setdefault(
50  "SuperClusterCollectionName",
51  flags.Egamma.Keys.Internal.ElectronSuperClusters)
52 
53  acc.addEventAlgo(CompFactory.electronSuperClusterBuilder(name, **kwargs))
54  return acc
55 
56 

◆ photonSuperClusterBuilderCfg()

def egammaSuperClusterBuilderConfig.photonSuperClusterBuilderCfg (   flags,
  name = 'photonSuperClusterBuilder',
  sequenceName = None,
**  kwargs 
)

Definition at line 57 of file egammaSuperClusterBuilderConfig.py.

58  flags,
59  name='photonSuperClusterBuilder',
60  sequenceName=None,
61  **kwargs):
62 
63  seqkw = {'sequence': sequenceName} if sequenceName else {}
64  acc = ComponentAccumulator(**seqkw)
65 
66  kwargs.setdefault("doConversions", flags.Egamma.doConversionBuilding)
67  kwargs.setdefault("UseExtendedTG3", flags.GeoModel.Run is LHCPeriod.Run3)
68  kwargs.setdefault(
69  "EtThresholdCut",
70  1500 if not flags.Egamma.doLowMu else 300)
71  kwargs.setdefault(
72  "ClusterCorrectionTool",
73  acc.popToolsAndMerge(egammaSwToolCfg(flags)))
74  kwargs.setdefault(
75  "MVACalibSvc",
76  acc.getPrimaryAndMerge(egammaMVASvcCfg(flags)))
77  kwargs.setdefault(
78  "egammaCheckEnergyDepositTool",
79  CompFactory.egammaCheckEnergyDepositTool())
80  kwargs.setdefault(
81  "ConversionBuilderTool",
82  acc.popToolsAndMerge(EMConversionBuilderCfg(flags)))
83  kwargs.setdefault(
84  "InputEgammaRecContainerName",
85  flags.Egamma.Keys.Internal.EgammaRecs)
86  kwargs.setdefault(
87  "OutputEgammaRecContainerKey",
88  flags.Egamma.Keys.Internal.PhotonSuperRecs)
89  kwargs.setdefault(
90  "SuperClusterCollectionName",
91  flags.Egamma.Keys.Internal.PhotonSuperClusters)
92 
93  acc.addEventAlgo(CompFactory.photonSuperClusterBuilder(name, **kwargs))
94 
95  return acc
96 
97 

Variable Documentation

◆ __doc__

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

Definition at line 3 of file egammaSuperClusterBuilderConfig.py.

◆ acc

egammaSuperClusterBuilderConfig.acc = MainServicesCfg(flags)

Definition at line 106 of file egammaSuperClusterBuilderConfig.py.

◆ Files

egammaSuperClusterBuilderConfig.Files

Definition at line 104 of file egammaSuperClusterBuilderConfig.py.

◆ flags

egammaSuperClusterBuilderConfig.flags = initConfigFlags()

Definition at line 103 of file egammaSuperClusterBuilderConfig.py.

◆ mlog

egammaSuperClusterBuilderConfig.mlog = logging.getLogger("egammaSuperClusterBuilderConfigTest")

Definition at line 108 of file egammaSuperClusterBuilderConfig.py.

◆ nestLevel

egammaSuperClusterBuilderConfig.nestLevel

Definition at line 112 of file egammaSuperClusterBuilderConfig.py.

◆ printDefaults

egammaSuperClusterBuilderConfig.printDefaults

Definition at line 113 of file egammaSuperClusterBuilderConfig.py.

python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
egammaSwToolConfig.egammaSwToolCfg
def egammaSwToolCfg(flags, name='egammaSwTool', **kwargs)
Definition: egammaSwToolConfig.py:42
EMConversionBuilderConfig.EMConversionBuilderCfg
def EMConversionBuilderCfg(flags, name='EMConversionBuilder', **kwargs)
Definition: EMConversionBuilderConfig.py:11
python.egammaMVACalibConfig.egammaMVASvcCfg
def egammaMVASvcCfg(flags, name="egammaMVASvc", **kwargs)
Definition: egammaMVACalibConfig.py:15
EMTrackMatchBuilderConfig.EMTrackMatchBuilderCfg
def EMTrackMatchBuilderCfg(flags, name='EMTrackMatchBuilder', **kwargs)
Definition: EMTrackMatchBuilderConfig.py:13
egammaSuperClusterBuilderConfig.electronSuperClusterBuilderCfg
def electronSuperClusterBuilderCfg(flags, name='electronSuperClusterBuilder', sequenceName=None, **kwargs)
Definition: egammaSuperClusterBuilderConfig.py:16
egammaSuperClusterBuilderConfig.photonSuperClusterBuilderCfg
def photonSuperClusterBuilderCfg(flags, name='photonSuperClusterBuilder', sequenceName=None, **kwargs)
Definition: egammaSuperClusterBuilderConfig.py:57