00001
00002
00003 '''
00004 Run like:
00005
00006 nuwa.py -A none -l 4 -n XXX RawCalibRecon.py input.data
00007
00008 '''
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 import RawDataIO
00023 rawdataio=RawDataIO.Configure()
00024
00025 from RawDataIO.RawDataIOConf import RawDataInputSvc
00026 rawDataInputSvc = RawDataInputSvc()
00027 rawDataInputSvc.PrintFreq = 0
00028
00029 import CalibAlg
00030 CalibAlg.Configure()
00031
00032 from DetHelpers.DetHelpersConf import PmtGeomInfoSvc
00033 pgisvc = PmtGeomInfoSvc("PmtGeomInfoSvc")
00034 pgisvc.StreamItems = [ "/dd/Structure/DayaBay" ]
00035
00036 from AdRec.AdRecConf import FastQCtrTool
00037 fastQCtrTool = FastQCtrTool("AdFastQCtrTool")
00038
00039 import ReconAlg
00040 recAlg = ReconAlg.Configure()
00041 recAlg.setReconStyle( {
00042 "AdFastQCtr": [fastQCtrTool.getFullName()]
00043 } )
00044
00045 import AnalysesEx
00046 AnalysesEx.Configure()
00047
00048 from AnalysesEx.AnalysesExConf import DataAnalyses
00049 anaAlg = DataAnalyses()
00050 anaAlg.PrintFreq = 1000
00051 anaAlg.CheckGen = 0;
00052 anaAlg.CheckReadout = 1;
00053 anaAlg.CheckCalibReadout = 1;
00054 anaAlg.CheckRec = 1;
00055
00056 from GaudiSvc.GaudiSvcConf import NTupleSvc
00057 ntSvc = NTupleSvc()
00058 ntSvc.Output += [ "FILE1 DATAFILE='ana.root' OPT='NEW' TYP='ROOT'" ]