The Gaudi Framework  v36r9p1 (5c15b2bb)
ExtendedProperties Namespace Reference

Functions

def configure (gaudi=None)
 

Function Documentation

◆ configure()

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

Definition at line 41 of file ExtendedProperties.py.

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