Changeset 12276 for fact/tools


Ignore:
Timestamp:
10/26/11 11:00:09 (13 years ago)
Author:
kraehenb
Message:
Moved declaration of parread_tmp to the other declarations of read parameters of the fit.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fact/tools/rootmacros/gainanalysis.C

    r12275 r12276  
    9292        TF1 *f_peaks = new TF1("total","[2]*TMath::Exp(-(x-[0])*(x-[0])/(2*[3]*[3])) + [4]*TMath::Exp(-(x-[0]-[1])*(x-[0]-[1])/(2*[5]*[5])) + [6]*TMath::Exp((-x-[7])/[8])",fit_start,fit_end);
    9393        Double_t par_init[5+2*n_peaks] = {70,90,100,15,10,15,10,30,30};
    94         Double_t parread_tmp[5+2*n_peaks];
    9594//      TF1 *f_peaks = new TF1("total","[2]*TMath::Exp(-(x-[0])*(x-[0])/(2*[3]*[3])) + [4]*TMath::Exp(-(x-[0]-[1])*(x-[0]-[1])/(2*[5]*[5])) + [6]*TMath::Exp(-(x-[0]-2*[1])*(x-[0]-2*[1])/(2*[7]*[7])) + [8]*TMath::Exp(-(x-[0]-3*[1])*(x-[0]-3*[1])/(2*[9]*[9])) + [10]*TMath::Exp(-(x-[12])*(x-[12])/(2*[11]*[11]))",fit_start,fit_end);
    9695//      Double_t par_init[3+2*n_peaks] = {70,90,500000,15,50000,15,5000,15,500,15,800000,20,0};
     
    180179//-------------------------------------------
    181180        Double_t parread[data_px][5+2*n_peaks];
     181        Double_t parread_tmp[5+2*n_peaks];
    182182        Double_t parread_dist[data_px];
    183183        Double_t parread_x[data_px];
Note: See TracChangeset for help on using the changeset viewer.