Gaudi Framework, version v22r2

Home   Generated: Tue May 10 2011
Public Member Functions | Public Attributes

GaudiPython::Bindings::iEventSelector Class Reference

Inheritance diagram for GaudiPython::Bindings::iEventSelector:
Inheritance graph
[legend]
Collaboration diagram for GaudiPython::Bindings::iEventSelector:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def open
def rewind

Public Attributes

 Input

Detailed Description

Definition at line 611 of file Bindings.py.


Constructor & Destructor Documentation

def GaudiPython::Bindings::iEventSelector::__init__ (   self )

Definition at line 612 of file Bindings.py.

00613                       :
00614         iService.__init__(self, 'EventSelector', Helper.service(gbl.Gaudi.svcLocator(),'EventSelector'))
        self.__dict__['g'] = AppMgr()

Member Function Documentation

def GaudiPython::Bindings::iEventSelector::open (   self,
  stream,
  typ = 'POOL_ROOT',
  opt = 'READ',
  sel = None,
  fun = None,
  collection = None 
)

Definition at line 615 of file Bindings.py.

00616                                                                                                        :
00617         if typ == 'ROOT' :
00618             self.g.declSvcType('RootEvtCnvSvc','DbEventCnvSvc')
00619             self.g.service('RootEvtCnvSvc').DbType  = 'ROOT'
00620             self.g.createSvc('RootEvtCnvSvc')
00621             self.g.service('EventPersistencySvc').CnvServices = ['RootEvtCnvSvc']
00622         elif typ == 'POOL_ROOT':
00623             cacsvc = self.g.service('PoolDbCacheSvc')
00624             if hasattr(cacsvc, 'Dlls') : cacsvc.Dlls += ['lcg_RootStorageSvc', 'lcg_XMLCatalog']
00625             else :                       cacsvc.Dlls = ['lcg_RootStorageSvc', 'lcg_XMLCatalog']
00626             cacsvc.OutputLevel = 4
00627             cacsvc.DomainOpts    = [ 'Domain[ROOT_All].CLASS_VERSION=2 TYP=int',
00628                                      'Domain[ROOT_Key].CLASS_VERSION=2 TYP=int',
00629                                      'Domain[ROOT_Tree].CLASS_VERSION=2 TYP=int' ]
00630             cacsvc.DatabaseOpts  = ['']
00631             cacsvc.ContainerOpts = ['']
00632             self.g.createSvc('PoolDbCacheSvc')
00633             cnvSvcs = [('PoolRootEvtCnvSvc',     'POOL_ROOT'),
00634                        ('PoolRootTreeEvtCnvSvc', 'POOL_ROOTTREE'),
00635                        ('PoolRootKeyEvtCnvSvc',  'POOL_ROOTKEY')]
00636             for svc in cnvSvcs :
00637                 self.g.declSvcType(svc[0], 'PoolDbCnvSvc')
00638                 cnvsvc = self.g.service(svc[0])
00639                 cnvsvc.DbType = svc[1]
00640             self.g.service('EventPersistencySvc').CnvServices = [ svc[0] for svc in cnvSvcs ]
00641             for svc in cnvSvcs :
00642                 self.g.createSvc(svc[0])
00643         self.g.service('EventDataSvc').RootCLID = 1
00644         if type(stream) != list : stream = [stream]
00645         fixpart = "TYP=\'%s\' OPT=\'%s\'" % ( typ, opt )
00646         if sel        : fixpart += " SEL=\'%s\'" % sel
00647         if fun        : fixpart += " FUN=\'%s\'" % fun
00648         if collection : fixpart += " COLLECTION=\'%s\'" % collection
00649         cstream = ["DATAFILE=\'%s\' %s" % ( s, fixpart) for s in stream]
00650         self.Input = cstream
        self.reinitialize()
def GaudiPython::Bindings::iEventSelector::rewind (   self )

Definition at line 651 of file Bindings.py.

00652                     :
00653         # It is not possible to reinitialize EventSelector only
00654         self.g.service('EventLoopMgr').reinitialize()
00655 
#----AppMgr class---------------------------------------------------------------------

Member Data Documentation

Definition at line 615 of file Bindings.py.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated at Tue May 10 2011 18:55:36 for Gaudi Framework, version v22r2 by Doxygen version 1.7.2 written by Dimitri van Heesch, © 1997-2004