ATLAS Offline Software
Functions | Variables
python.egammaSumCellsGainAlgConfig Namespace Reference

Functions

def egammaSumCellsGainAlgCfg (flags, prefix='', sgkey=D3PDMakerFlags.ElectronSGKey, typeName='ElectronContainer', allowMissing=False)
 

Variables

 D3PD = CompFactory.D3PD
 

Function Documentation

◆ egammaSumCellsGainAlgCfg()

def python.egammaSumCellsGainAlgConfig.egammaSumCellsGainAlgCfg (   flags,
  prefix = '',
  sgkey = D3PDMakerFlags.ElectronSGKey,
  typeName = 'ElectronContainer',
  allowMissing = False 
)
Configure egammaSumCellsGainAlg for D3PD making.

PREFIX is a prefix to add to the name of the algorithm scheduled.

SGKEY/TYPENAME is the StoreGate key of the input electron container
and the name of its type.

If ALLOWMISSING is true, don't fail if the SG key doesn't exist.

Definition at line 19 of file egammaSumCellsGainAlgConfig.py.

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

Variable Documentation

◆ D3PD

python.egammaSumCellsGainAlgConfig.D3PD = CompFactory.D3PD

Definition at line 16 of file egammaSumCellsGainAlgConfig.py.

python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
D3PD::SGDataVectorGetterTool
Getter tool to retrieve DataVector/List collections from StoreGate.
Definition: SGDataVectorGetterTool.h:55
D3PD::egammaSumCellsGainAlg
Find most energetic cell in the middle layer for an egamma object and store in UserData.
Definition: egammaSumCellsGainAlg.h:36