23 allowMissing = False):
24 """Configure egammaDeltaEmax2Alg for D3PD making.
25
26 FLAGS are the configuration flags.
27
28 PREFIX is a prefix to add to the name of the algorithm scheduled.
29
30 SGKEY/TYPENAME is the StoreGate key of the input electron container
31 and the name of its type.
32
33 If ALLOWMISSING is true, don't fail if the SG key doesn't exist.
34"""
35
36 acc = ComponentAccumulator()
37
38 if (not D3PDMakerFlags.MakeEgammaUserData or
39 D3PDMakerFlags.HaveEgammaUserData):
40 return acc
41
43 resolved_sgkey = resolveSGKey (flags, sgkey)
44 auxprefix = (D3PDMakerFlags.EgammaUserDataPrefix + '_' +
45 resolved_sgkey + '_')
46
47 emax2name = 'DeltaEmax2Alg_' + resolved_sgkey
48 highlum = False
49 if typeName == 'ElectronContainer':
50 if flags.Beam.numberOfCollisions >= 20 :
51 highlum = True
52
54 (emax2name,
55 Getter = DVGetter
56 (prefix + 'DeltaEmax2Getter',
57 TypeName = typeName,
58 SGKey = sgkey),
59 AllowMissing = allowMissing,
60 HighLum = highlum,
61 AuxPrefix = auxprefix))
62
63 return acc
Calculate deltaEmax2 for egamma objects and store as UD.