| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

EvtColWrite Namespace Reference


Classes

class  EvtColEx

Functions

def _evtcolsvc_
def configure

Variables

string __author__ = 'Vanya BELYAEV ibelyaev@physics.syr.edu'
 Rndm = GaudiPython.gbl.Rndm
 Numbers = Rndm.Numbers
 SUCCESS = GaudiPython.SUCCESS
tuple gaudi = GaudiPython.AppMgr( joboptions = 'GaudiPoolDbRoot.opts' )

Function Documentation

def EvtColWrite::_evtcolsvc_ (   self,
  name = 'EvtTupleSvc' 
) [private]

Definition at line 75 of file EvtColWrite.py.

00075                                           :
00076     svc = GaudiPython.Helper.service( self._svcloc, name, False )
00077     return GaudiPython.iNTupleSvc(name, svc)
00078 
00079 GaudiPython.AppMgr.evtcolsvc = _evtcolsvc_ 
00080 
00081 # =============================================================================
00082 # job configuration 
00083 # =============================================================================
def configure( gaudi = None  ) :

def EvtColWrite::configure (   gaudi = None  ) 

Configuration of the job 

Definition at line 84 of file EvtColWrite.py.

00084                                :
00085     """ Configuration of the job """
00086     
00087     if not gaudi : gaudi = GaudiPython.AppMgr()
00088     
00089     gaudi.HistogramPersistency = "ROOT"
00090     gaudi.DLLs   += [ 'GaudiAlg'  , 'RootHistCnv'     ]
00091     gaudi.ExtSvc += [ 'RndmGenSvc'    ,
00092                       'NTupleSvc'      ,
00093                       'TagCollectionSvc/EvtTupleSvc' ]
00094     
00095     alg = EvtColEx('Fill')
00096     gaudi.setAlgorithms( [alg] )
00097 
00098     alg.EvtColLUN       = 'EVTTAGS'
00099     alg.EvtColsProduce  = True
00100     alg.EvtColsPrint    = True
00101     alg.NTupleProduce   = False
00102     alg.HistoProduce    = False
00103     
00104     gaudi.OutStream = [ 'EvtCollectionStream/TagsWriter']
00105     tagsWriter = gaudi.algorithm('TagsWriter')
00106     tagsWriter.ItemList    = [ '/NTUPLES/EVTTAGS/Fill/COL1']
00107     tagsWriter.EvtDataSvc  =   "EvtTupleSvc" ;
00108    
00109     evtColSvc = gaudi.evtcolsvc()
00110     evtColSvc.defineOutput( {'EVTTAGS' : 'PFN:EvtTags1.root'} , typ='POOL_ROOT' )  
00111     evtColSvc.OutputLevel = 2
00112     
00113     evtSel = gaudi.evtSel()
00114     evtSel.PrintFreq = 1000
00115     evtSel.open( ['EvtColsEx.dst'] )
00116     
00117     return SUCCESS
00118 
00119 
00120 # =============================================================================
00121 # The actual job excution 
00122 # =============================================================================
if '__main__' == __name__ :


Variable Documentation

string EvtColWrite::__author__ = 'Vanya BELYAEV ibelyaev@physics.syr.edu' [static]

Definition at line 16 of file EvtColWrite.py.

EvtColWrite::Rndm = GaudiPython.gbl.Rndm [static]

Definition at line 21 of file EvtColWrite.py.

EvtColWrite::Numbers = Rndm.Numbers [static]

Definition at line 22 of file EvtColWrite.py.

EvtColWrite::SUCCESS = GaudiPython.SUCCESS [static]

Definition at line 23 of file EvtColWrite.py.

tuple EvtColWrite::gaudi = GaudiPython.AppMgr( joboptions = 'GaudiPoolDbRoot.opts' ) [static]

Definition at line 125 of file EvtColWrite.py.

| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 19:59:39 2011 for GaudiExamples by doxygen 1.4.7