10from D3PDMakerConfig.D3PDMakerFlags
import D3PDMakerFlags
11from D3PDMakerCoreComps.resolveSGKey
import resolveSGKey
12from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
13from AthenaConfiguration.ComponentFactory
import CompFactory
15D3PD = CompFactory.D3PD
21 sgkey = D3PDMakerFlags.ElectronSGKey,
22 typeName =
'ElectronContainer',
25 """Configure egammaMaxECellAlg for D3PD making.
27 FLAGS are the configuration flags.
29 PREFIX is a prefix to add to the name of the algorithm scheduled.
31 SGKEY/TYPENAME is the StoreGate key of the input electron container
32 and the name of its type.
34 If ALLOWMISSING is true, don't fail if the SG key doesn't exist.
37 acc = ComponentAccumulator()
39 if (
not D3PDMakerFlags.MakeEgammaUserData
or
40 D3PDMakerFlags.HaveEgammaUserData):
44 resolved_sgkey = resolveSGKey (flags, sgkey)
45 auxprefix = (D3PDMakerFlags.EgammaUserDataPrefix +
'_' +
48 algName =
'egammaMaxECellAlg' + resolved_sgkey
53 (prefix +
'egammaMaxECellAlgGetter',
56 AllowMissing = allowMissing,
57 AuxPrefix = auxprefix,)
59 acc.addEventAlgo (myAlg)
Find most energetic cell in the middle layer for an egamma object and store in UserData.
egammaMaxECellAlgCfg(flags, prefix='', sgkey=D3PDMakerFlags.ElectronSGKey, typeName='ElectronContainer', allowMissing=False)