CMS 3D CMS Logo

Classes | Functions
QGLikelihoodCalculator Namespace Reference

Classes

class  QGLikelihoodCalculator
 

Functions

def getBinNumber (bins, value)
 

Function Documentation

def QGLikelihoodCalculator.getBinNumber (   bins,
  value 
)

Definition at line 6 of file QGLikelihoodCalculator.py.

Referenced by QGLikelihoodCalculator.QGLikelihoodCalculator.findEntry().

6 def getBinNumber( bins, value ) :
7 
8  if value<bins[0] or value>bins[len(bins)-1]: return False
9  for i in range(0,len(bins)-1):
10  if value>bins[i] and value<bins[i+1]:
11  return i
12 
13  return -1
14 
15 
16 
17