Functions | |
def | configure |
the configurtaion of the job | |
Variables | |
string | __author__ = 'Vanya BELYAEV ibelyaev@physics.syr.edu' |
SUCCESS = gaudimodule.SUCCESS | |
tuple | gaudi = gaudimodule.AppMgr() |
tuple | alg = gaudi.algorithm( 'xProps' ) |
tuple | props = alg.properties() |
get all properties throught python | |
list | v = props[p] |
tuple | t = type(v) |
dictionary | properties = {} |
get the properties in the form of python dictionary: |
def ExtendedProperties::configure | ( | gaudi = None |
) |
the configurtaion of the job
the configurtaion of the job
Definition at line 31 of file ExtendedProperties.py.
00031 : 00032 """ the configurtaion of the job """ 00033 00034 ## create application manager if not done yet 00035 if not gaudi : gaudi = gaudimodule.AppMgr() 00036 00037 ## read main configuration files 00038 gaudi.config ( files = [ '../options/Common.opts' ] ) 00039 00040 ## private algorithm configuration options 00041 00042 gaudi.TopAlg = [ "ExtendedProperties/xProps" ] 00043 gaudi.EvtSel = 'NONE' 00044 gaudi.HistogramPersistency = 'NONE' 00045 00046 xProps = gaudi.algorithm( 'xProps' ) 00047 00048 # std::pair<double,double> 00049 # xProps.PairDD = ( 3.141592 , 2.18281828 ) 00050 # std::pair<int,int> 00051 # xProps.PairII = ( 3 , 2 ) 00052 00053 # std::vector<std::pair<double,double> > 00054 xProps.VectorOfPairsDD = [ (0,1), (1,2), (2,3), (3,4) ] 00055 00056 # std::vector<std::vector<std::string> > 00057 xProps.VectorOfVectorsString = [ 00058 [ "a", "b" , "c" ] , [ "A", "B" , "C" ] ] 00059 00060 # std::vector<std::vector<double> > 00061 xProps.VectorOfVectorsDouble = [ 00062 [ 0 , 1 , 2 ] , [ 0 , -0.5 , -0.25 ] ] 00063 00064 00065 # std::map<int,double> 00066 xProps.MapIntDouble = { 00067 1 : 0.1 , 2 : 0.2 , 3 : 0.3 } 00068 00069 # std::map<std::string,std::string> 00070 xProps.MapStringString = { 00071 'a' : 'sddsgsgsdgdggf' , 00072 'b' : 'sddsgsgsdgdggf' , 00073 'c' : 'sddsgsgsdgdggf' } 00074 00075 00076 # std::map<std::string,int> 00077 xProps.MapStringInt = { 00078 'a' : 1 , 00079 'b' : 2 , 00080 "c" : 3 } 00081 00082 # std::map<std::string,double> 00083 xProps.MapStringDouble = { 00084 'aa' : 0.1 , 00085 'bb' : 0.2 , 00086 "cc" : 3 } 00087 00088 # std::map<std::string,std::vector<std::string> > 00089 xProps.MapStringVectorOfStrings = { 00090 'aaa' : [ 'a' , 'b' ,'c' ] , 00091 'bbb' : [ 'a' , 'b' ,'c' ] , 00092 'ccc' : [ 'a' , 'b' ,'c' ] } 00093 00094 # std::map<std::string,std::vector<double> > 00095 xProps.MapStringVectorOfDoubles = { 00096 'aaa' : [ 1 , 2 , 3 ] , 00097 'bbb' : [ 1. , 2. , 3. ] , 00098 'ccc' : [ 0.1 , 0.2 , 0.3 ] } 00099 00100 # std::map<std::string,std::vector<int> > 00101 xProps.MapStringVectorOfInts = { 00102 'aaa' : [ 1 , 2 , 3 ] , 00103 'bbb' : [ 4 , 5 , 6 ] , 00104 'ccc' : [ 7 , 8 , 9 ] } 00105 00106 return SUCCESS 00107 00108 # ============================================================================= 00109 # The actual job excution 00110 # ============================================================================= if '__main__' == __name__ :
string ExtendedProperties::__author__ = 'Vanya BELYAEV ibelyaev@physics.syr.edu' [static] |
Definition at line 16 of file ExtendedProperties.py.
ExtendedProperties::SUCCESS = gaudimodule.SUCCESS [static] |
Definition at line 27 of file ExtendedProperties.py.
tuple ExtendedProperties::gaudi = gaudimodule.AppMgr() [static] |
Definition at line 115 of file ExtendedProperties.py.
tuple ExtendedProperties::alg = gaudi.algorithm( 'xProps' ) [static] |
Definition at line 119 of file ExtendedProperties.py.
tuple ExtendedProperties::props = alg.properties() [static] |
get all properties throught python
IT DOES NOT WORK ANYMORE after the reimplementation of gaudimodule.iProperty.properties using new class PropertyEntry
Definition at line 128 of file ExtendedProperties.py.
list ExtendedProperties::v = props[p] [static] |
Definition at line 132 of file ExtendedProperties.py.
tuple ExtendedProperties::t = type(v) [static] |
Definition at line 133 of file ExtendedProperties.py.
dictionary ExtendedProperties::properties = {} [static] |
get the properties in the form of python dictionary:
Definition at line 138 of file ExtendedProperties.py.