00001
00002
00003
00004
00005
00006 from GaudiPython import gbl
00007 gbl.gStyle.SetPalette(1)
00008 gbl.gStyle.SetOptFit(1)
00009
00010 def configure(argv = []):
00011
00012 import sys, getopt
00013 opts,args = getopt.getopt(argv,"i:o:")
00014 statsInput = "None"
00015 diagnosticsOutput = "diagnostics.root"
00016 for opt,arg in opts:
00017 if opt == "-i":
00018 statsInput = arg
00019 if opt == "-o":
00020 diagnosticsOutput = arg
00021
00022 from StatisticsSvc.StatisticsSvcConf import StatisticsSvc
00023 statsSvc = StatisticsSvc()
00024 if statsInput != "None":
00025 statsSvc.Input = {"file0":statsInput}
00026 if diagnosticsOutput != "None":
00027 statsSvc.Output = {"file1":diagnosticsOutput}
00028 return
00029
00030 def run(app):
00031 '''
00032 Configure and add an algorithm to job
00033 '''
00034 app.ExtSvc += ["StatisticsSvc"]
00035 from DataQuality.Tools import DiagnosticAlg
00036 diagAlg = DiagnosticAlg("MyDiagnosticAlg")
00037 app.addAlgorithm(diagAlg)
00038 pass