ATLAS Offline Software
Loading...
Searching...
No Matches
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
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
50 return ["prepare", "calibration", "selection", "efficiency", "undefined"]
51
52 pass
__init__(self, stageName, inputPropName, outputPropName, metaConfig, dynConfig)