00001
00002
00003
00004
00005
00006
00007
00008
00009 def configure(argv = []):
00010 "Reload the calibration statistics file, and re-calibrate"
00011
00012 import sys,getopt
00013 inFile = "calibStats.root"
00014 outFile = "calibStatsReprocessed.root"
00015 opts, args = getopt.getopt(argv,"i:o:")
00016 print "opts = ",opts
00017 for opt, arg in opts:
00018 if opt == "-i":
00019 inFile = arg
00020 if opt == "-o":
00021 outFile = arg
00022 print "inFile: ",inFile
00023 print "outFile: ",outFile
00024
00025 import CalibParam
00026 CalibParam.Configure()
00027
00028 from StatisticsSvc.StatisticsSvcConf import StatisticsSvc
00029 statssvc = StatisticsSvc()
00030 statssvc.Input ={"file0":inFile}
00031 statssvc.Output ={"file0":outFile}