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

In This Package:

rawpython.py

Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 #" python rawpython.py     "
00003 
00004 import GaudiPython as gm
00005 appMgr = gm.AppMgr()
00006 appMgr.TopAlg += ['RawDataHistogram']
00007 # default: -1 = infinite
00008 appMgr.EvtMax = 1000
00009 # default: "" = "EventSelector"
00010 # no need to set EvtSel
00011 #appMgr.EvtSel ="NONE"
00012 appMgr.DLLs += [ "DQMRawData", "RawDataIO" ]
00013 appMgr.ExtSvc +=["RawDataEvtSelector/EventSelector","RawDataInputSvc","RawDataConSvc","RootIOCnvSvc","DybStorageSvc"]
00014 per = appMgr.service("EventPersistencySvc")
00015 per.CnvServices = [ "RawDataConSvc" ]
00016 output =appMgr.service("RootIOCnvSvc")
00017 output.DefaultOutput="rawoutput.root" 
00018 rawsvc = appMgr.service("RawDataInputSvc")
00019 rawsvc.RawDataFiles=[ "daq.NoTag.0001847.Physics.TST-AD1.SFO-1._0005.data" ]
00020 rawsvc.PrintFreq = 0
00021 
00022 THistSvc = appMgr.service("THistSvc")
00023 THistSvc.Output = [ "DQMHist DATAFILE='hist_test.root' OPT='RECREATE' TYP='ROOT'"]
00024 
00025 #--------------------------------------------------------------
00026 # Set output level threshold (1=VERBOSE, 2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL, 7=ALWAYS)
00027 #--------------------------------------------------------------
00028 
00029 MessageSvc = appMgr.service( "MessageSvc" )
00030 MessageSvc.OutputLevel = 3
00031 MessageSvc.Format = "% F%24W%S%7W%R%T %0W%M"
00032 
00033 rawReader = appMgr.algorithm("RawDataReader")
00034 ## 0: not print
00035 rawReader.PrintFreq = 50000
00036 
00037 appMgr.initialize()
00038 appMgr.run( appMgr.EvtMax )
00039 appMgr.exit()
00040 
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:26:19 2011 for DQMRawData by doxygen 1.4.7