23 allowMissing = False):
24 """Configure egammaNbCellsGainAlg for D3PD making.
25
26 PREFIX is a prefix to add to the name of the algorithm scheduled.
27
28 SGKEY/TYPENAME is the StoreGate key of the input electron container
29 and the name of its type.
30
31 If ALLOWMISSING is true, don't fail if the SG key doesn't exist.
32 """
33
34 acc = ComponentAccumulator()
35
36 if (not D3PDMakerFlags.MakeEgammaUserData or
37 D3PDMakerFlags.HaveEgammaUserData):
38 return acc
39
41 resolved_sgkey = resolveSGKey (flags, sgkey)
42 auxprefix = (D3PDMakerFlags.EgammaUserDataPrefix + '_' +
43 resolved_sgkey + '_')
44
45 algName = 'egammaNbCellsGainAlg' + resolved_sgkey
46
48 (algName,
49 Getter = DVGetter
50 (prefix + 'egammaNbCellsGainAlgGetter',
51 TypeName = typeName,
52 SGKey = sgkey),
53 AllowMissing = allowMissing,
54 AuxPrefix = auxprefix,)
55
56 acc.addEventAlgo (myAlg)
57
58 return acc
Count the number of cells in each gain, layer by layer.