14 *******************************************************************************
16 * Simple example which illustrate the 'array'-like job-properties and their *
17 * C++/Python intercommunications *
19 *******************************************************************************
21 from __future__
import print_function
24 __author__ =
"Vanya BELYAEV Ivan.Belyaev@nikhef.nl"
25 from Configurables
import ApplicationMgr
26 from Configurables
import Gaudi__Examples__ArrayProperties
as AP
37 ap = AP(
"ArrayProps", Strings=(
"a",
"bb",
"ccc",
"dddd"), Doubles=(1, 2, 3, 4, 5))
39 ApplicationMgr(EvtSel=
"NONE", TopAlg=[ap], EvtMax=10)
44 if "__main__" == __name__:
46 print(__doc__, __author__)
52 with warnings.catch_warnings():
53 warnings.simplefilter(
"ignore")
55 cppyy.gbl.gInterpreter.Declare(
"#define NO_C_ARRAY_AS_PROPERTY_WARNING")
56 cppyy.gbl.gInterpreter.Declare(
'#include "GaudiKernel/CArrayAsProperty.h"')
64 ap = gaudi.algorithm(
"ArrayProps")
66 ap.PropertiesPrint =
True
68 ap.Strings = [
"qu-qu",
"qu-qu",
"qu-qu",
"qu-qu"]
69 ap.Doubles = [0, -1, 2, -3, 4]
71 ap.PropertiesPrint =
True