xLow,xHigh=getSmallestInterval(hist1,desiredWidth=0.99)# get the smallest intervall that subtends a fraction 'desiredWidth' of all events
# let's practice lambda functions, and define one that gives me, for a given histogram 'aHist' and an 'xValue', the bin number for the hist of interest
# the syntax is the following:
# <name of the function> = lambda(as sign for python that we get an inline function here) <parameters of the function> : <definition of the function?