#!/usr/bin/env python # ============================================================================= # $Id:$ # ============================================================================= # CVS tag $Name: $, version $Revision: 1.4 $ # ============================================================================= """ ******************************************************************************* * * * Simple example which illustrate the 'array'-like job-properties and their * * C++/Python intercommunications * * * ******************************************************************************* """ # ============================================================================= __author__ = 'Vanya BELYAEV Ivan.Belyaev@nikhef.nl' # ============================================================================= ## @file # Simple which illustrates # the 'array-like' job-properties and their C++/Python intercommunication # @author Vanya BELYAEV Ivan.Belyaev@nikhef.nl # @date 2007-02-13 # ============================================================================= from Gaudi.Configuration import * from Configurables import ApplicationMgr from Configurables import Gaudi__Examples__ArrayProperties as AP ap = AP( 'ArrayProps' , Strings = ( 'a' , 'bb' , 'ccc' , 'dddd' ) , Doubles = ( 1 , 2, 3 , 4 , 5 ) ) ApplicationMgr ( EvtSel = "NONE" , TopAlg = [ ap ] , EvtMax = 10 ) # ============================================================================= # The actual job excution # ============================================================================= if '__main__' == __name__ : print __doc__ , __author__ from GaudiPython.Bindings import AppMgr gaudi = AppMgr() gaudi.run(5) ap = gaudi.algorithm('ArrayProps') ap.PropertiesPrint = True ap.Strings = [ 'qu-qu' , 'qu-qu' , 'qu-qu' , 'qu-qu' ] ap.Doubles = [ 0 , -1 , 2 , -3 , 4 ] ap.PropertiesPrint = True # ============================================================================= # The END # =============================================================================