Classes | Namespaces | Functions | Variables
ValidateOpDetReco.py File Reference

Go to the source code of this file.

Classes

class  ValidateOpDetReco.Flash
 Define objects #. More...
 
class  ValidateOpDetReco.Assoc
 
class  ValidateOpDetReco.Hit
 

Namespaces

 ValidateOpDetReco
 

Functions

def ValidateOpDetReco.ApproxCompare (left, right, tolerance=0.001)
 Define utility functions #. More...
 
def ValidateOpDetReco.CountFailures (left, right)
 
def ValidateOpDetReco.ListFailures (left, right)
 
def ValidateOpDetReco.ListFailuresFlash (left, right)
 
def ValidateOpDetReco.ListFailuresAssoc (left, right)
 
def ValidateOpDetReco.ListFailuresHit (left, right)
 

Variables

bool ValidateOpDetReco.startup = False
 Parse arguments #. More...
 
string ValidateOpDetReco.usage = "usage: %prog -n <nominal file> -t <test file> [-o <dir>] [-s] [-d] [-e 0,1] [--opdets=0,1] "
 
 ValidateOpDetReco.parser = OptionParser(usage=usage)
 
 ValidateOpDetReco.dest
 
 ValidateOpDetReco.help
 
 ValidateOpDetReco.metavar
 
 ValidateOpDetReco.default
 
 ValidateOpDetReco.False
 
 ValidateOpDetReco.action
 
 ValidateOpDetReco.options
 
 ValidateOpDetReco.args
 
list ValidateOpDetReco.versions = [ "nominal", "test" ]
 
 ValidateOpDetReco.S = versions[0]
 
 ValidateOpDetReco.R = versions[1]
 
dictionary ValidateOpDetReco.files = {}
 
dictionary ValidateOpDetReco.hittrees = {}
 
dictionary ValidateOpDetReco.flashtrees = {}
 
dictionary ValidateOpDetReco.assoctrees = {}
 
dictionary ValidateOpDetReco.all = {}
 Flash Comparison #. More...
 
 ValidateOpDetReco.onlies = copy.deepcopy(all)
 Hit Comparison #. More...
 
int ValidateOpDetReco.iS = 0
 
list ValidateOpDetReco.matches = []
 
int ValidateOpDetReco.failures = [0]*8
 
bool ValidateOpDetReco.found = False
 
 ValidateOpDetReco.index = all[E][v].index(flsh)
 
 ValidateOpDetReco.failures_here = ListFailures(flsh[S],flsh[R])
 
 ValidateOpDetReco.maxval = len(onlies[E][S])
 
list ValidateOpDetReco.widgets
 
 ValidateOpDetReco.pbar = pb.ProgressBar(widgets=widgets, maxval=maxval, term_width=100)
 
 ValidateOpDetReco.end
 while True: pbar.update(maxval-len(onlies[E][S])) #print iS, "/", len(onlies[E][S]) found = False for iR in range(len(onlies[E][R])): if onlies[E][S][iS] == onlies[E][R][iR]: matches.append( { S: onlies[E][S].pop( iS ), R: onlies[E][R].pop( iR ) } ) found = True break if not found: matches.append( { S: iS += 1 if iS >= len(onlies[E][S]): break pbar.finish() print "" More...
 
dictionary ValidateOpDetReco.color = { S:kBlack, R:kRed }
 Flash and Hit Plots #. More...
 
string ValidateOpDetReco.hstyle = "hist"
 
int ValidateOpDetReco.mstyle = 20
 
int ValidateOpDetReco.lstyle = 2
 
int ValidateOpDetReco.nbins = 100
 
 ValidateOpDetReco.c1 = TCanvas("c1","c1")
 
 ValidateOpDetReco.h1 = gROOT.FindObject("h"+name+"1")
 
 ValidateOpDetReco.h2 = gROOT.FindObject("h"+name+"2")
 
 ValidateOpDetReco.hRatio = h2.Clone("hRatio")
 
 ValidateOpDetReco.ratio
 
 ValidateOpDetReco.True
 
 ValidateOpDetReco.forceOne
 
 ValidateOpDetReco.ignoreError
 
 ValidateOpDetReco.l1 = TLine(gPad.GetUxmin(), 1, gPad.GetUxmax(), 1)