# $Id: ExtendedProperties.py,v 1.4 2008/01/14 19:45:51 marcocle Exp $ # # Translation of ExtendedProperties.opts into python job options. # @author Marco Clemencic from Gaudi.Configuration import * from Configurables import ExtendedProperties importOptions("Common.opts") from GaudiKernel.SystemOfUnits import * ######### BEGIN of xProp configuration xProps = ExtendedProperties("xProps") xProps.PairDD = ( 3.141592*m , 2.18281828 ) # std::pair xProps.PairII = ( 3 , 2 ) # std::pair # std::vector > xProps.VectorOfPairsDD += [ (0,1), (1,2), (2,3), (3,4) ] xProps.VectorOfPairsDD += [ (4,5), (5,6), (6,7), (7,8) ] # std::vector > xProps.VectorOfVectorsString = [ [ "a", "b" , "c" ], [ "A", "B" , "C" ] ] # std::vector > xProps.VectorOfVectorsDouble = [ [ 0 , 1 , 2 ] , [ 0 , -0.5 , -0.25 ] ]; # std::map xProps.MapIntDouble = { 1 : 0.1, 2 : 0.2, 3 : 0.3 } # std::map xProps.MapStringString = { 'a' : 'sddsgsgsdgdggf', 'b' : 'sddsgsgsdgdggf', 'c' : 'sddsgsgsdgdggf' } # std::map xProps.MapStringInt = { 'a' : 1, 'b' : 2, "c" : 3 } # std::map xProps.MapStringDouble = { 'aa' : 0.1, 'bb' : 0.2, "cc" : 3 } # std::map > xProps.MapStringVectorOfStrings = { 'aaa' : [ 'a' , 'b' ,'c' ], 'bbb' : [ 'a' , 'b' ,'c' ], 'ccc' : [ 'a' , 'b' ,'c' ] } # std::map > xProps.MapStringVectorOfDoubles = { 'aaa' : [ 1 , 2 , 3 ], 'bbb' : [ 1. , 2. , 3. ], 'ccc' : [ 0.1 , 0.2 , 0.3 ] } # std::map > xProps.MapStringVectorOfInts = { 'aaa' : [ 1 , 2 , 3 ], 'bbb' : [ 4 , 5 , 6 ], 'ccc' : [ 7 , 8 , 9 ] } # std::map xProps.MapIntInt = { 1: 10, 2: 20, 3: 30 } # std::vector > xProps.VectorOfPairsII = [ (1,1), (2,1), (3,2), (4,3), (5,5) ] # std::map xProps.MapIntString = { 0 : "zero" , 2 : "two" , -1 : "minus one" } # std::map xProps.MapUIntString = { 0 : "UZero" , 2 : "UTwo" , 1 : "UOne" } ######### END of xProp configuration app = ApplicationMgr(TopAlg = [ xProps ], EvtMax = 1, EvtSel = "NONE", HistogramPersistency = "NONE")