Functions | |
def | configure |
def | run |
def DataQuality::DiagnosticFigs::configure | ( | argv = [] |
) |
Definition at line 10 of file DiagnosticFigs.py.
00010 : 00011 # Process module options 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 def run(app):
def DataQuality::DiagnosticFigs::run | ( | app | ) |
Configure and add an algorithm to job
Definition at line 30 of file DiagnosticFigs.py.
00030 : 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 pass