14 *******************************************************************************
16 * Simple example which illustrate the extended job-properties and their *
18 *******************************************************************************
22 __author__ =
"Vanya BELYAEV ibelyaev@physics.syr.edu"
26 from Configurables
import ApplicationMgr
27 from Configurables
import Gaudi__TestSuite__ExtendedProperties2
as EP2
37 isWin = sys.platform.startswith(
"win")
39 ep2 = EP2(
"xProps2", Point3D=(10, 40, 55), Points3D=[(10, 40, 55), (1, 2, 3)])
41 ApplicationMgr(EvtSel=
"NONE", TopAlg=[ep2], EvtMax=10)
46 if "__main__" == __name__:
47 print(__doc__, __author__)
53 with warnings.catch_warnings():
54 warnings.simplefilter(
"ignore")
56 for h
in (
"GaudiKernel/SVectorAsProperty.h",
"GaudiKernel/VectorsAsProperty.h"):
57 cppyy.gbl.gInterpreter.Declare(
'#include "%s"' % h)
65 xp2 = gaudi.algorithm(
"xProps2")
67 xp2.Point3D =
"(-10,3, Z : 24)"
68 xp2.Vector3D = [-120, -30, -40]
70 xp2.Vector4D = [-100, -200, -300, 400]
71 xp2.Vector4D = (-100, -200, -300, 400)
72 xp2.Vector4D = [(-100, -200, -300), 400]
73 xp2.Vector4D = [[-100, -200, -300], 400]
74 xp2.Vector4D = ((-100, -200, -300), 400)
75 xp2.Vector4D = ([-100, -200, -300], 400)
77 xp2.SVector5 = (1, 2, 3, 4, 5)
79 xp2.SVector5 = [1, 2, 3, 4, 5]
82 xp2.SVector5 = [1, 2, 3, 4, 5, 6]
83 except Exception
as e:
84 print(
" Exception: ", e)
87 xp2.Point3D = (1, 2, 3, 4)
88 except Exception
as e:
89 print(
" Exception: ", e)
93 xp2.Vector4D = (1, 2, 3)
94 except Exception
as e:
95 print(
" Exception: ", e)
97 xp2.Vectors3D = [(1, 2, 3), (4, 5, 6), [7, 8, 9]]
99 xp2.Vectors4D = ((1, 2, 3, 4), [4, 5, 6, 7])
101 xp2.PropertiesPrint =
True