00001
00002
00003
00004 import GaudiPython as gm
00005 appMgr = gm.AppMgr()
00006 appMgr.TopAlg += ['RawDataHistogram']
00007
00008 appMgr.EvtMax = 1000
00009
00010
00011
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
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
00035 rawReader.PrintFreq = 50000
00036
00037 appMgr.initialize()
00038 appMgr.run( appMgr.EvtMax )
00039 appMgr.exit()
00040