List of all members.
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
00654 self.g.service('EventLoopMgr').reinitialize()
00655
Member Data Documentation
The documentation for this class was generated from the following file:
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v22r4/GaudiPython/python/GaudiPython/Bindings.py