Optimization and clean up

This commit is contained in:
Zaher Salman
2018-08-15 20:17:13 +02:00
parent 36e3d28130
commit 3cdf3d356e

View File

@ -109,12 +109,8 @@ double MLRes::operator()(double x, const vector<double> &par) const {
// par[0] time of beam off
// par[1] is the relaxation rate
// par[2] is the exponent
double tau_p;
double y;
tau_p = (tau_Li/(1.+par[1]*tau_Li));
if ( x >= 0 && x <= par[0] ) {
TF1 sexp("sexp", "exp(-([0]-x)/[3])*exp(-pow(([1]*([0]-x)),[2]))", 0.0, 10000.0);
sexp.SetParameters(x, par[1], par[2],tau_Li);