CMS 3D CMS Logo

Public Member Functions | Public Attributes

utils::KS Class Reference

Inheritance diagram for utils::KS:
utils::StatisticalTest

List of all members.

Public Member Functions

def __init__
def do_test

Public Attributes

 name

Detailed Description

Definition at line 193 of file utils.py.


Constructor & Destructor Documentation

def utils::KS::__init__ (   self,
  threshold 
)

Reimplemented from utils::StatisticalTest.

Definition at line 194 of file utils.py.

00195                                :
00196    StatisticalTest.__init__(self,threshold)
00197    self.name="KS"


Member Function Documentation

def utils::KS::do_test (   self)

Reimplemented from utils::StatisticalTest.

Definition at line 198 of file utils.py.

00199                    :
00200 
00201     # Calculate errors if not there...
00202     for h in self.h1,self.h2:
00203       w2s=h.GetSumw2()
00204       if w2s.GetSize()==0:
00205         h.Sumw2()
00206 
00207     ## If errors are 0:
00208     #zero_errors=True
00209     #for h in self.h1,self.h2:
00210       #for ibin in xrange(Nbins1):
00211         #if h.GetBinError(ibin+1) >0:
00212           #zero_errors=False
00213           #break
00214     #if zero_errors:
00215       #return test_codes["ZERO_ERR"]
00216 
00217     return self.h1.KolmogorovTest(self.h2)
00218 
#-------------------------------------------------------------------------------

Member Data Documentation

Reimplemented from utils::StatisticalTest.

Definition at line 194 of file utils.py.