22      sgkey = D3PDMakerFlags.ElectronSGKey,
 
   23      typeName = 
'ElectronContainer',
 
   24      allowMissing = 
False):
 
   25     """Configure egammaSumCellsGainAlg for D3PD making. 
   27     PREFIX is a prefix to add to the name of the algorithm scheduled. 
   29     SGKEY/TYPENAME is the StoreGate key of the input electron container 
   30     and the name of its type. 
   32     If ALLOWMISSING is true, don't fail if the SG key doesn't exist. 
   37     if (
not D3PDMakerFlags.MakeEgammaUserData 
or 
   38         D3PDMakerFlags.HaveEgammaUserData):
 
   42     resolved_sgkey = resolveSGKey (flags, sgkey)
 
   43     auxprefix = (D3PDMakerFlags.EgammaUserDataPrefix + 
'_' +
 
   46     algName = 
'egammaSumCellsGainAlg' + resolved_sgkey
 
   51          (prefix + 
'egammaSumCellsGainAlgGetter',
 
   54          AllowMissing = allowMissing,
 
   55          AuxPrefix = auxprefix,)
 
   57     acc.addEventAlgo (myAlg)