CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
utils.KS Class Reference
Inheritance diagram for utils.KS:
utils.StatisticalTest

Public Member Functions

def __init__ (self, threshold)
 
def do_test (self)
 
- Public Member Functions inherited from utils.StatisticalTest
def __init__ (self, threshold)
 
def do_test (self)
 
def get_rank (self)
 
def get_status (self)
 
def set_operands (self, h1, h2)
 

Public Attributes

 name
 
- Public Attributes inherited from utils.StatisticalTest
 h1
 
 h2
 
 is_init
 
 name
 
 rank
 2D! return test_codes["2D"] More...
 
 threshold
 

Detailed Description

Definition at line 199 of file utils.py.

Constructor & Destructor Documentation

def utils.KS.__init__ (   self,
  threshold 
)

Definition at line 200 of file utils.py.

200  def __init__(self, threshold):
201  StatisticalTest.__init__(self,threshold)
202  self.name="KS"
203 
def __init__(self, threshold)
Definition: utils.py:200

Member Function Documentation

def utils.KS.do_test (   self)

Definition at line 204 of file utils.py.

References FitSlicesYTool.h1, ConfigurableHisto.h1, DQMSourceExample.h1, utils.StatisticalTest.h1, PlotAlignmentValidation::DMRPlotInfo.h1, FitSlicesYTool.h2, EgammaTowerIsolationNew< NC >::Sum.h2, ConfigurableHisto.h2, DQMSourceExample.h2, EgammaTowerIsolationNew< NC >.h2, utils.StatisticalTest.h2, and PlotAlignmentValidation::DMRPlotInfo.h2.

204  def do_test(self):
205 
206  # Calculate errors if not there...
207  for h in self.h1,self.h2:
208  w2s=h.GetSumw2()
209  if w2s.GetSize()==0:
210  h.Sumw2()
211 
212  ## If errors are 0:
213  #zero_errors=True
214  #for h in self.h1,self.h2:
215  #for ibin in xrange(Nbins1):
216  #if h.GetBinError(ibin+1) >0:
217  #zero_errors=False
218  #break
219  #if zero_errors:
220  #return test_codes["ZERO_ERR"]
221 
222  return self.h1.KolmogorovTest(self.h2)
223 
224 #-------------------------------------------------------------------------------
def do_test(self)
Definition: utils.py:204

Member Data Documentation

utils.KS.name