| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

DaqRunInfoSvc::Test Namespace Reference


Functions

def configure
def run

Function Documentation

def DaqRunInfoSvc::Test::configure (   argv = []  ) 

Definition at line 13 of file Test.py.

00013                         :
00014     import sys, getopt
00015     runNo = 0 
00016     fileName = ""
00017     verbose = "simple"
00018     outputFile = "runConfig.txt"
00019     opts,args = getopt.getopt(argv,"r:f:v:o:")
00020     for opt,arg in opts:
00021       if opt == "-r":
00022          runNo = int(arg)  
00023       if opt == "-f":
00024          fileName = arg
00025       if opt == "-v":
00026          verbose = arg
00027       if opt == "-o":
00028          outputFile = arg
00029   
00030     from DatabaseSvc.DatabaseSvcConf import DatabaseSvc
00031     dbSvc = DatabaseSvc()
00032 
00033     from DaqRunInfoSvc.DaqRunInfoSvcConf import DaqRunInfoSvc
00034     runSvc = DaqRunInfoSvc()
00035     runSvc.DatabaseSvcName = 'DatabaseSvc' #default
00036 
00037     from DaqRunInfoSvc.DaqRunInfoSvcConf import DaqRunInfoTestAlg
00038     alg = DaqRunInfoTestAlg()
00039     alg.fileName = fileName
00040     alg.runNo = runNo
00041     alg.verbose = verbose
00042     alg.outputFile = outputFile
00043 
00044     from Gaudi.Configuration import ApplicationMgr
00045     theApp = ApplicationMgr()
00046     theApp.ExtSvc.append(dbSvc)
00047     theApp.ExtSvc.append(runSvc)
00048     theApp.TopAlg.append(alg)
00049 
00050     return
00051 
def run(app):

def DaqRunInfoSvc::Test::run (   app  ) 

Definition at line 52 of file Test.py.

00052             :
00053     pass
00054   
  

| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:16:31 2011 for DaqRunInfoSvc by doxygen 1.4.7