00001
00002
00003
00004
00005 """
00006 *******************************************************************************
00007 * *
00008 * Simple example which illustrate the usage of useful *
00009 * algorithm base class for N-Tuple manipulations *
00010 * *
00011 *******************************************************************************
00012 """
00013
00014 __author__ = 'Vanya BELYAEV Ivan.Belyaev@lapp.in2p3.fr'
00015
00016
00017 import GaudiPython, math
00018
00019 SUCCESS = GaudiPython.SUCCESS
00020
00021
00022
00023
00024 def configure( gaudi = None ) :
00025 """ Configuration of the job """
00026
00027 gaudi.HistogramPersistency = 'ROOT'
00028
00029 gaudi.DLLs += [ 'GaudiAlg' , 'RootHistCnv', ]
00030 gaudi.ExtSvc += [ 'TagCollectionSvc/EvtTupleSvc' ]
00031
00032 gaudi.service('FileCatalog').Catalogs += ['xmlcatalog_file:EvtColsEx.xml']
00033
00034 evtSel = gaudi.evtSel()
00035 evtSel.open( 'PFN:EvtTags1.root' ,
00036 collection = 'Fill/COL1' ,
00037 sel = 'binom==6' )
00038
00039 gaudi.config()
00040
00041 return SUCCESS
00042
00043
00044
00045
00046
00047 if '__main__' == __name__ :
00048 print __doc__
00049 gaudi = GaudiPython.AppMgr( joboptions = 'GaudiPoolDbRoot.opts' )
00050 configure( gaudi )
00051 gaudi.run(-1)
00052