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

In This Package:

RootIOSvc::__init__::Configure Class Reference

List of all members.

Public Member Functions

def __init__

Detailed Description

Definition at line 20 of file __init__.py.


Member Function Documentation

def RootIOSvc::__init__::Configure::__init__ (   self,
  input_streams,
  output_streams,
  force_readout 
)

Definition at line 23 of file __init__.py.

00023                                                                  :
00024         '''Do default configuration of RootIOSvc.  The given input and
00025         output streams are maps between locations in the TES and
00026         files.  The special location "default" is used when locations
00027         are not explicitly listed.'''
00028 
00029         from Gaudi.Configuration import ApplicationMgr
00030         theApp = ApplicationMgr()
00031 
00032         theApp.EvtSel = "NONE"
00033 
00034         if not (input_streams or output_streams): 
00035             print "Note: No file I/O requested."
00036             return
00037 
00038         if input_streams:
00039             theApp.EvtSel = ""
00040             from DybIO.DybIOConf import DybEvtSelector
00041             theApp.ExtSvc += [ DybEvtSelector("EventSelector") ]
00042 
00043         if output_streams:              
00044             from DybIO.DybIOConf import DybStorageSvc
00045             theApp.ExtSvc += [ DybStorageSvc() ]
00046 
00047         from RootIOSvc.RootIOSvcConf import RootIOCnvSvc
00048         rio = RootIOCnvSvc()
00049         theApp.ExtSvc.append(rio)
00050         from GaudiSvc.GaudiSvcConf import EvtPersistencySvc
00051         per = EvtPersistencySvc()
00052         per.CnvServices = [ rio ];
00053 
00054         print 'input_streams=',str(input_streams)
00055         print 'output_streams=',str(output_streams)
00056 
00057         rio.InputStreams = wash_streams(input_streams)
00058         rio.OutputStreams = output_streams
00059         rio.ForceReadout = force_readout
00060 
        return


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:18:22 2011 for RootIOSvc by doxygen 1.4.7