changed names of some member variables
changed names of some arguments
use histogram instead of TF1 to calculate Nevt(Enr)