14 *******************************************************************************
16 * Simple example which illustrate the 'array'-like job-properties and their *
17 * C++/Python intercommunications *
19 *******************************************************************************
21 from __future__
import print_function
23 __author__ =
'Vanya BELYAEV Ivan.Belyaev@nikhef.nl'
33 from Configurables
import ApplicationMgr
35 from Configurables
import Gaudi__Examples__ArrayProperties
as AP
38 'ArrayProps', Strings=(
'a',
'bb',
'ccc',
'dddd'), Doubles=(1, 2, 3, 4, 5))
40 ApplicationMgr(EvtSel=
"NONE", TopAlg=[ap], EvtMax=10)
45 if '__main__' == __name__:
47 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