ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
D3PDMaker
egammaD3PDAnalysis
python
egammaMaxECellAlgConfig.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2
#
3
# @file egammaD3PDAnalysis/python/egamaMaxECellAlgConfig.py
4
# @author Nikiforos K. Nikiforou <nikiforo@cern.ch> modified from egammaIsIsoConfig.py by scott snyder <snyder@bnl.gov>
5
# @date Jun, 2012
6
# @brief Configure egamaMaxECellAlg to fill aux data.
7
#
8
9
10
from
D3PDMakerConfig.D3PDMakerFlags
import
D3PDMakerFlags
11
from
D3PDMakerCoreComps.resolveSGKey
import
resolveSGKey
12
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
13
from
AthenaConfiguration.ComponentFactory
import
CompFactory
14
15
D3PD = CompFactory.D3PD
16
17
18
def
egammaMaxECellAlgCfg
\
19
(flags,
20
prefix =
''
,
21
sgkey = D3PDMakerFlags.ElectronSGKey,
22
typeName =
'ElectronContainer'
,
23
allowMissing =
False
24
):
25
"""Configure egammaMaxECellAlg for D3PD making.
26
27
FLAGS are the configuration flags.
28
29
PREFIX is a prefix to add to the name of the algorithm scheduled.
30
31
SGKEY/TYPENAME is the StoreGate key of the input electron container
32
and the name of its type.
33
34
If ALLOWMISSING is true, don't fail if the SG key doesn't exist.
35
"""
36
37
acc = ComponentAccumulator()
38
39
if
(
not
D3PDMakerFlags.MakeEgammaUserData
or
40
D3PDMakerFlags.HaveEgammaUserData):
41
return
acc
42
43
DVGetter =
D3PD.SGDataVectorGetterTool
44
resolved_sgkey = resolveSGKey (flags, sgkey)
45
auxprefix = (D3PDMakerFlags.EgammaUserDataPrefix +
'_'
+
46
resolved_sgkey +
'_'
)
47
48
algName =
'egammaMaxECellAlg'
+ resolved_sgkey
49
50
myAlg =
D3PD.egammaMaxECellAlg
\
51
(algName,
52
Getter = DVGetter
53
(prefix +
'egammaMaxECellAlgGetter'
,
54
TypeName = typeName,
55
SGKey = sgkey),
56
AllowMissing = allowMissing,
57
AuxPrefix = auxprefix,)
58
59
acc.addEventAlgo (myAlg)
60
61
return
acc
62
D3PD::SGDataVectorGetterTool
Getter tool to retrieve DataVector/List collections from StoreGate.
Definition
SGDataVectorGetterTool.h:55
D3PD::egammaMaxECellAlg
Find most energetic cell in the middle layer for an egamma object and store in UserData.
Definition
egammaMaxECellAlg.h:40
python.egammaMaxECellAlgConfig.egammaMaxECellAlgCfg
egammaMaxECellAlgCfg(flags, prefix='', sgkey=D3PDMakerFlags.ElectronSGKey, typeName='ElectronContainer', allowMissing=False)
Definition
egammaMaxECellAlgConfig.py:24
Generated on
for ATLAS Offline Software by
1.17.0