ATLAS Offline Software
Functions | Variables
python.egammaDeltaEmax2Config Namespace Reference

Functions

def egammaDeltaEmax2Cfg (flags, prefix='', sgkey=D3PDMakerFlags.ElectronSGKey, typeName='DataVector< xAOD::Electron_v1 >', allowMissing=False)
 

Variables

 D3PD = CompFactory.D3PD
 

Function Documentation

◆ egammaDeltaEmax2Cfg()

def python.egammaDeltaEmax2Config.egammaDeltaEmax2Cfg (   flags,
  prefix = '',
  sgkey = D3PDMakerFlags.ElectronSGKey,
  typeName = 'DataVector<xAOD::Electron_v1>',
  allowMissing = False 
)
Configure egammaDeltaEmax2Alg for D3PD making.

FLAGS are the configuration flags.

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 egammaDeltaEmax2Config.py.

19  (flags,
20  prefix = '',
21  sgkey = D3PDMakerFlags.ElectronSGKey,
22  typeName = 'DataVector<xAOD::Electron_v1>',
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 
53  acc.addEventAlgo (D3PD.egammaDeltaEmax2Alg \
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

Variable Documentation

◆ D3PD

python.egammaDeltaEmax2Config.D3PD = CompFactory.D3PD

Definition at line 15 of file egammaDeltaEmax2Config.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::egammaDeltaEmax2Alg
Calculate deltaEmax2 for egamma objects and store as UD.
Definition: egammaDeltaEmax2Alg.h:31