ATLAS Offline Software
Functions | Variables
python.egammaNbCellsGainAlgConfig Namespace Reference

Functions

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

Variables

 D3PD = CompFactory.D3PD
 

Function Documentation

◆ egammaNbCellsGainAlgCfg()

def python.egammaNbCellsGainAlgConfig.egammaNbCellsGainAlgCfg (   flags,
  prefix = '',
  sgkey = D3PDMakerFlags.ElectronSGKey,
  typeName = 'ElectronContainer',
  allowMissing = False 
)
Configure egammaNbCellsGainAlg 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 18 of file egammaNbCellsGainAlgConfig.py.

19  (flags,
20  prefix = '',
21  sgkey = D3PDMakerFlags.ElectronSGKey,
22  typeName = 'ElectronContainer',
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

Variable Documentation

◆ D3PD

python.egammaNbCellsGainAlgConfig.D3PD = CompFactory.D3PD

Definition at line 15 of file egammaNbCellsGainAlgConfig.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::egammaNbCellsGainAlg
Count the number of cells in each gain, layer by layer.
Definition: egammaNbCellsGainAlg.h:35