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

Constructor & Destructor Documentation

def utils.KS.__init__ (   self,
  threshold 
)

Definition at line 194 of file utils.py.

195  def __init__(self, threshold):
196  StatisticalTest.__init__(self,threshold)
197  self.name="KS"
def __init__
Definition: utils.py:194

Member Function Documentation

def utils.KS.do_test (   self)

Definition at line 198 of file utils.py.

References dictionary.h1, FitSlicesYTool.h1, ConfigurableHisto.h1, L1TLTC.h1, XmasToDQMSource.h1, DQMSourceExample.h1, utils.StatisticalTest.h1, RPCMonitorSync.h1, PlotAlignmentValidation::DMRPlotInfo.h1, dictionary.h2, FitSlicesYTool.h2, ConfigurableHisto.h2, L1TLTC.h2, DQMSourceExample.h2, utils.StatisticalTest.h2, and PlotAlignmentValidation::DMRPlotInfo.h2.

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

Member Data Documentation

utils.KS.name

Definition at line 196 of file utils.py.

Referenced by dataset.Dataset.__getFileInfoList(), BeautifulSoup.Tag._invert(), and Vispa.Views.PropertyView.Property.valueChanged().