ATLAS Offline Software
PhysicsAnalysis
D3PDTools
AnaAlgorithm
python
AnaAlgorithmMeta.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
2
3
# System import(s):
4
5
class
AnaAlgorithmMeta
(
object
):
6
"""the meta-information for a single algorithm inside AnaAlgSequence
7
8
There is a fair amount of meta-information we store for each
9
algorithm. Originally we had stored each piece of
10
meta-information in a separate array (with each entry in each
11
array corresponding to a different algorithm). Though now this is
12
changed to a single array with each entry being a meta-object for
13
a separate algorithm.
14
"""
15
16
def
__init__
( self, stageName, inputPropName, outputPropName, metaConfig, dynConfig ):
17
18
if
stageName
not
in
self.
allowedStageNames
() :
19
raise
ValueError (
'unknown stage name '
+ stageName +
' allowed stage names are '
+
', '
.
join
(self.
allowedStageNames
()))
20
21
self.
stageName
= stageName
22
23
self.
metaConfig
= metaConfig
24
self.
dynConfig
= dynConfig
25
26
if
isinstance( inputPropName, dict ):
27
self.
inputPropName
= inputPropName
28
else
:
29
if
inputPropName:
30
self.
inputPropName
= {
"default"
: inputPropName }
31
else
:
32
self.
inputPropName
=
None
33
pass
34
pass
35
36
if
isinstance( outputPropName, dict ):
37
self.
outputPropName
= outputPropName
38
else
:
39
if
outputPropName:
40
self.
outputPropName
= {
"default"
: outputPropName }
41
else
:
42
self.
outputPropName
=
None
43
pass
44
pass
45
46
pass
47
48
@staticmethod
49
def
allowedStageNames
():
50
return
[
"prepare"
,
"calibration"
,
"selection"
,
"efficiency"
,
"undefined"
]
51
52
pass
python.AnaAlgorithmMeta.AnaAlgorithmMeta.__init__
def __init__(self, stageName, inputPropName, outputPropName, metaConfig, dynConfig)
Definition:
AnaAlgorithmMeta.py:16
python.AnaAlgorithmMeta.AnaAlgorithmMeta.metaConfig
metaConfig
Definition:
AnaAlgorithmMeta.py:23
python.AnaAlgorithmMeta.AnaAlgorithmMeta.stageName
stageName
Definition:
AnaAlgorithmMeta.py:21
python.AnaAlgorithmMeta.AnaAlgorithmMeta.inputPropName
inputPropName
Definition:
AnaAlgorithmMeta.py:27
python.AnaAlgorithmMeta.AnaAlgorithmMeta.dynConfig
dynConfig
Definition:
AnaAlgorithmMeta.py:24
TCS::join
std::string join(const std::vector< std::string > &v, const char c=',')
Definition:
Trigger/TrigT1/L1Topo/L1TopoCommon/Root/StringUtils.cxx:10
python.AnaAlgorithmMeta.AnaAlgorithmMeta.allowedStageNames
def allowedStageNames()
Definition:
AnaAlgorithmMeta.py:49
python.AnaAlgorithmMeta.AnaAlgorithmMeta.outputPropName
outputPropName
Definition:
AnaAlgorithmMeta.py:37
pickleTool.object
object
Definition:
pickleTool.py:30
python.AnaAlgorithmMeta.AnaAlgorithmMeta
Definition:
AnaAlgorithmMeta.py:5
Generated on Wed Jan 8 2025 21:06:42 for ATLAS Offline Software by
1.8.18