quite moenchTree creator for first nanoscope beamtime

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorCalibration@47 113b152e-814d-439b-b186-022a431db7b5
This commit is contained in:
l_msdetect
2014-04-05 09:39:32 +00:00
parent fb40e2236e
commit 0f881677d2
6 changed files with 123 additions and 177 deletions

View File

@ -447,9 +447,11 @@ TF1* energyCalibration::fitFunction(TF1 *fun, TH1 *h1, Double_t *mypar, Double_t
fitfun= h1->GetFunction(fname);
fitfun->GetParameters(mypar);
for (int ip=0; ip<6; ip++) {
emypar[ip]=fitfun->GetParError(ip);
if (fitfun) {
fitfun->GetParameters(mypar);
for (int ip=0; ip<6; ip++) {
emypar[ip]=fitfun->GetParError(ip);
}
}
return fitfun;
}