Changeset 12276 for fact/tools/rootmacros
- Timestamp:
- 10/26/11 11:00:09 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/rootmacros/gainanalysis.C
r12275 r12276 92 92 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); 93 93 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];95 94 // 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); 96 95 // Double_t par_init[3+2*n_peaks] = {70,90,500000,15,50000,15,5000,15,500,15,800000,20,0}; … … 180 179 //------------------------------------------- 181 180 Double_t parread[data_px][5+2*n_peaks]; 181 Double_t parread_tmp[5+2*n_peaks]; 182 182 Double_t parread_dist[data_px]; 183 183 Double_t parread_x[data_px];
Note:
See TracChangeset
for help on using the changeset viewer.