CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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__
 
def do_test
 
- Public Member Functions inherited from utils.StatisticalTest
def __init__
 
def do_test
 
def get_rank
 
def get_status
 
def set_operands
 

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 190 of file utils.py.

Constructor & Destructor Documentation

def utils.KS.__init__ (   self,
  threshold 
)

Definition at line 191 of file utils.py.

192  def __init__(self, threshold):
193  StatisticalTest.__init__(self,threshold)
194  self.name="KS"
def __init__
Definition: utils.py:191

Member Function Documentation

def utils.KS.do_test (   self)

Definition at line 195 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, EgammaTowerIsolationNew< NC >.h2, DQMSourceExample.h2, utils.StatisticalTest.h2, and PlotAlignmentValidation::DMRPlotInfo.h2.

196  def do_test(self):
197 
198  # Calculate errors if not there...
199  for h in self.h1,self.h2:
200  w2s=h.GetSumw2()
201  if w2s.GetSize()==0:
202  h.Sumw2()
203 
204  ## If errors are 0:
205  #zero_errors=True
206  #for h in self.h1,self.h2:
207  #for ibin in xrange(Nbins1):
208  #if h.GetBinError(ibin+1) >0:
209  #zero_errors=False
210  #break
211  #if zero_errors:
212  #return test_codes["ZERO_ERR"]
213 
214  return self.h1.KolmogorovTest(self.h2)
215 
#-------------------------------------------------------------------------------
def do_test
Definition: utils.py:195

Member Data Documentation

utils.KS.name

Definition at line 193 of file utils.py.

Referenced by dataset.Dataset.__getFileInfoList(), cuy.divideElement.__init__(), cuy.plotElement.__init__(), cuy.additionElement.__init__(), cuy.superimposeElement.__init__(), cuy.graphElement.__init__(), and Vispa.Views.PropertyView.Property.valueChanged().