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.

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 

References FastTimerService_cff.range.

Referenced by QGLikelihoodCalculator.QGLikelihoodCalculator.findEntry().

FastTimerService_cff.range
range
Definition: FastTimerService_cff.py:34
QGLikelihoodCalculator.getBinNumber
def getBinNumber(bins, value)
Definition: QGLikelihoodCalculator.py:8