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

Constructor & Destructor Documentation

◆ __init__()

def utils.KS.__init__ (   self,
  threshold 
)

Reimplemented from utils.StatisticalTest.

Definition at line 202 of file utils.py.

202  def __init__(self, threshold):
203  StatisticalTest.__init__(self,threshold)
204  self.name="KS"
205 

Member Function Documentation

◆ do_test()

def utils.KS.do_test (   self)

Reimplemented from utils.StatisticalTest.

Definition at line 206 of file utils.py.

206  def do_test(self):
207 
208  # Calculate errors if not there...
209  for h in self.h1,self.h2:
210  w2s=h.GetSumw2()
211  if w2s.GetSize()==0:
212  h.Sumw2()
213 
214 
223 
224  return self.h1.KolmogorovTest(self.h2)
225 
226 #-------------------------------------------------------------------------------

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

Member Data Documentation

◆ name

utils.KS.name