The Gaudi Framework  v36r1 (3e2fb5a8)
ExtendedProperties Namespace Reference

Functions

def configure (gaudi=None)
 

Function Documentation

◆ configure()

def ExtendedProperties.configure (   gaudi = None)
the configurtaion of the job 

Definition at line 40 of file ExtendedProperties.py.

40 def configure(gaudi=None):
41  """ the configurtaion of the job """
42 
43  # create application manager if not done yet
44  if not gaudi:
45  gaudi = gaudimodule.AppMgr()
46 
47  # read main configuration files
48  gaudi.config(files=['../options/Common.opts'])
49 
50  # private algorithm configuration options
51 
52  gaudi.TopAlg = ["ExtendedProperties/xProps"]
53  gaudi.EvtSel = 'NONE'
54  gaudi.HistogramPersistency = 'NONE'
55 
56  xProps = gaudi.algorithm('xProps')
57 
58  # std::pair<double,double>
59  # xProps.PairDD = ( 3.141592 , 2.18281828 )
60  # std::pair<int,int>
61  # xProps.PairII = ( 3 , 2 )
62 
63  # std::vector<std::pair<double,double> >
64  xProps.VectorOfPairsDD = [(0, 1), (1, 2), (2, 3), (3, 4)]
65 
66  # std::vector<std::vector<std::string> >
67  xProps.VectorOfVectorsString = [["a", "b", "c"], ["A", "B", "C"]]
68 
69  # std::vector<std::vector<double> >
70  xProps.VectorOfVectorsDouble = [[0, 1, 2], [0, -0.5, -0.25]]
71 
72  # std::map<int,double>
73  xProps.MapIntDouble = {1: 0.1, 2: 0.2, 3: 0.3}
74 
75  # std::map<std::string,std::string>
76  xProps.MapStringString = {
77  'a': 'sddsgsgsdgdggf',
78  'b': 'sddsgsgsdgdggf',
79  'c': 'sddsgsgsdgdggf'
80  }
81 
82  # std::map<std::string,int>
83  xProps.MapStringInt = {'a': 1, 'b': 2, "c": 3}
84 
85  # std::map<std::string,double>
86  xProps.MapStringDouble = {'aa': 0.1, 'bb': 0.2, "cc": 3}
87 
88  # std::map<std::string,std::vector<std::string> >
89  xProps.MapStringVectorOfStrings = {
90  'aaa': ['a', 'b', 'c'],
91  'bbb': ['a', 'b', 'c'],
92  'ccc': ['a', 'b', 'c']
93  }
94 
95  # std::map<std::string,std::vector<double> >
96  xProps.MapStringVectorOfDoubles = {
97  'aaa': [1, 2, 3],
98  'bbb': [1., 2., 3.],
99  'ccc': [0.1, 0.2, 0.3]
100  }
101 
102  # std::map<std::string,std::vector<int> >
103  xProps.MapStringVectorOfInts = {
104  'aaa': [1, 2, 3],
105  'bbb': [4, 5, 6],
106  'ccc': [7, 8, 9]
107  }
108 
109  return SUCCESS
110 
111 
112 # =============================================================================
113 # The actual job excution
114 # =============================================================================
GaudiPython.Bindings.AppMgr
Definition: Bindings.py:842
ExtendedProperties.configure
def configure(gaudi=None)
Definition: ExtendedProperties.py:40