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

In This Package:

MergeStats Namespace Reference


Classes

class  MergeAlg

Functions

def configure
def run

Variables

dictionary inputMap = {}
string output = 'file0'
list dontAdd = []

Function Documentation

def MergeStats::configure (   argv = []  ) 

Definition at line 117 of file MergeStats.py.

00117                         :
00118     global inputMap, output, dontAdd
00119     import sys,getopt
00120 
00121     inFiles = []
00122     outFile = "merge.root"
00123     
00124     opts, args = getopt.getopt(argv,"i:o:d:")
00125     print "opts = ",opts
00126     for opt, arg in opts:
00127         if opt == "-i":
00128             inFiles.append(arg)
00129         if opt == "-o":
00130             outFile = arg
00131         if opt == "-d":
00132             print arg.split(",")
00133             dontAdd = [name.strip() for name in arg.split(",")]
00134 
00135     print "inFiles: ",inFiles
00136     print "outFile: ",outFile
00137     print "dontAdd: ",dontAdd
00138 
00139     nPath = 1
00140     for filename in inFiles:
00141         inputMap["file%d" % nPath] = filename
00142         nPath += 1
00143 
00144     print "inputMap = ", inputMap
00145     from StatisticsSvc.StatisticsSvcConf import StatisticsSvc
00146     statssvc = StatisticsSvc()
00147     statssvc.Input = inputMap
00148     statssvc.Output = { output : outFile }
00149 
00150     return
00151 
def run(app):

def MergeStats::run (   app  ) 

Configure and add an algorithm to job

Definition at line 152 of file MergeStats.py.

00152             :
00153     '''
00154     Configure and add an algorithm to job
00155     '''
00156     global inputMap, output, dontAdd
00157     app.ExtSvc += ["StatisticsSvc"]
00158     mergeAlg = MergeAlg("MyMerge")
00159     mergeAlg.Input = inputMap.keys()
00160     mergeAlg.Output = output
00161     mergeAlg.DontAdd = dontAdd
00162     
00163     app.addAlgorithm(mergeAlg)
00164     pass
    pass


Variable Documentation

dictionary MergeStats::inputMap = {} [static]

Definition at line 113 of file MergeStats.py.

string MergeStats::output = 'file0' [static]

Definition at line 114 of file MergeStats.py.

list MergeStats::dontAdd = [] [static]

Definition at line 115 of file MergeStats.py.

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

Generated on Mon Apr 11 20:10:02 2011 for StatisticsSvc by doxygen 1.4.7