|
Gaudi Framework, version v21r4 |
| Home | Generated: 7 Sep 2009 |


Definition at line 526 of file Bindings.py.
Public Member Functions | |
| def | __init__ |
| def | open |
| def | rewind |
Public Attributes | |
| Input | |
| def GaudiPython::Bindings::iEventSelector::__init__ | ( | self | ) |
Definition at line 527 of file Bindings.py.
00527 : 00528 iService.__init__(self, 'EventSelector', Helper.service(gbl.Gaudi.svcLocator(),'EventSelector')) 00529 self.__dict__['g'] = AppMgr() def open(self, stream, typ = 'POOL_ROOT', opt = 'READ', sel = None, fun = None, collection = None ):
| def GaudiPython::Bindings::iEventSelector::open | ( | self, | ||
| stream, | ||||
typ = 'POOL_ROOT', |
||||
opt = 'READ', |
||||
sel = None, |
||||
fun = None, |
||||
collection = None | ||||
| ) |
Definition at line 530 of file Bindings.py.
00530 : 00531 if typ == 'ROOT' : 00532 self.g.declSvcType('RootEvtCnvSvc','DbEventCnvSvc') 00533 self.g.service('RootEvtCnvSvc').DbType = 'ROOT' 00534 self.g.createSvc('RootEvtCnvSvc') 00535 self.g.service('EventPersistencySvc').CnvServices = ['RootEvtCnvSvc'] 00536 elif typ == 'POOL_ROOT': 00537 cacsvc = self.g.service('PoolDbCacheSvc') 00538 if hasattr(cacsvc, 'Dlls') : cacsvc.Dlls += ['lcg_RootStorageSvc', 'lcg_XMLCatalog'] 00539 else : cacsvc.Dlls = ['lcg_RootStorageSvc', 'lcg_XMLCatalog'] 00540 cacsvc.OutputLevel = 4 00541 cacsvc.DomainOpts = [ 'Domain[ROOT_All].CLASS_VERSION=2 TYP=int', 00542 'Domain[ROOT_Key].CLASS_VERSION=2 TYP=int', 00543 'Domain[ROOT_Tree].CLASS_VERSION=2 TYP=int' ] 00544 cacsvc.DatabaseOpts = [''] 00545 cacsvc.ContainerOpts = [''] 00546 self.g.createSvc('PoolDbCacheSvc') 00547 cnvSvcs = [('PoolRootEvtCnvSvc', 'POOL_ROOT'), 00548 ('PoolRootTreeEvtCnvSvc', 'POOL_ROOTTREE'), 00549 ('PoolRootKeyEvtCnvSvc', 'POOL_ROOTKEY')] 00550 for svc in cnvSvcs : 00551 self.g.declSvcType(svc[0], 'PoolDbCnvSvc') 00552 cnvsvc = self.g.service(svc[0]) 00553 cnvsvc.DbType = svc[1] 00554 self.g.service('EventPersistencySvc').CnvServices = [ svc[0] for svc in cnvSvcs ] 00555 for svc in cnvSvcs : 00556 self.g.createSvc(svc[0]) 00557 self.g.service('EventDataSvc').RootCLID = 1 00558 if type(stream) != list : stream = [stream] 00559 fixpart = "TYP=\'%s\' OPT=\'%s\'" % ( typ, opt ) 00560 if sel : fixpart += " SEL=\'%s\'" % sel 00561 if fun : fixpart += " FUN=\'%s\'" % fun 00562 if collection : fixpart += " COLLECTION=\'%s\'" % collection 00563 cstream = ["DATAFILE=\'%s\' %s" % ( s, fixpart) for s in stream] 00564 self.Input = cstream 00565 self.reinitialize()
| def GaudiPython::Bindings::iEventSelector::rewind | ( | self | ) |
Definition at line 566 of file Bindings.py.
00566 : 00567 # It is not possible to reinitialze EventSelector only 00568 self.g.service('EventLoopMgr').reinitialize() 00569 00570 #----AppMgr class--------------------------------------------------------------------- class AppMgr(iService) :
Definition at line 564 of file Bindings.py.