Add more getBinIndex functions.
Add more error checking to the code. Also allow for npu on the xaxis of the resolution plots with bins of pT.