The Gaudi Framework  v38r0 (2143aa4c)
ExtendedProperties Namespace Reference

Functions

def configure (gaudi=None)
 

Function Documentation

◆ configure()

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

Definition at line 39 of file ExtendedProperties.py.

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