CMS 3D CMS Logo

Classes | Functions
QGLikelihoodCalculator Namespace Reference

Classes

class  QGLikelihoodCalculator
 

Functions

def getBinNumber (bins, value)
 

Function Documentation

◆ getBinNumber()

def QGLikelihoodCalculator.getBinNumber (   bins,
  value 
)

Definition at line 8 of file QGLikelihoodCalculator.py.

References isotrackApplyRegressor.range.

Referenced by QGLikelihoodCalculator.QGLikelihoodCalculator.findEntry().

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