test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
QGLikelihoodCalculator Namespace Reference

Classes

class  QGLikelihoodCalculator
 

Functions

def getBinNumber
 

Function Documentation

def QGLikelihoodCalculator.getBinNumber (   bins,
  value 
)

Definition at line 6 of file QGLikelihoodCalculator.py.

Referenced by QGLikelihoodCalculator.QGLikelihoodCalculator.findEntry().

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