Changeset 14760
- Timestamp:
- 12/21/12 15:32:48 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/rootmacros/PulseTemplates/templateextractors.C
r14751 r14760 525 525 TString overlayType, 526 526 int pulse_order, 527 int numBootstrapIt,// = 10, //number of iterations for bootstrapping 527 528 int verbosityLevel 528 529 ) … … 609 610 610 611 //calculate Errors with bootstrapping 611 CalculateErrorsWithBootstrapping(hTempHisto, 10, slMean, slError);612 CalculateErrorsWithBootstrapping(hTempHisto, numBootstrapIt, slMean, slError); 612 613 613 614 if (verbosityLevel > 3) … … 617 618 618 619 //Get maximum of slice's distribution 619 max_prop = hTempHisto->GetBinCenter( hTempHisto->GetMaximumBin() );620 //max_prop = slMean[0];620 // max_prop = hTempHisto->GetBinCenter( hTempHisto->GetMaximumBin() ); 621 max_prop = slMean[0]; 621 622 622 623 //improve result by< fitting gaussian to slices distribution 623 TF1 gaus("fgaus", "gaus", max_prop-30, max_prop+30);624 hTempHisto->Fit("fgaus", "QRN0");625 max_prop = gaus.GetParameter(1);624 // TF1 gaus("fgaus", "gaus", max_prop-30, max_prop+30); 625 // hTempHisto->Fit("fgaus", "QRN0"); 626 // max_prop = gaus.GetParameter(1); 626 627 627 628 //calculate error of max prop … … 634 635 cout << "\t\t...calculating Median of slice " << slice << endl; 635 636 } 636 median = MedianOfH1(hTempHisto);637 //median = slMean[1];637 // median = MedianOfH1(hTempHisto); 638 median = slMean[1]; 638 639 median_err = slError[1]; //error from bootstraping 639 640 … … 641 642 642 643 643 mean = hTempHisto->GetMean();644 //mean = slMean[2];645 mean_err = hTempHisto->GetRMS(); //RMS of slice646 //mean_err = slError[2]; //error from bootstraping644 // mean = hTempHisto->GetMean(); 645 mean = slMean[2]; 646 // mean_err = hTempHisto->GetRMS()/hTempHisto->GetEntries(); //RMS of slice 647 mean_err = slError[2]; //error from bootstraping 647 648 648 649 if (verbosityLevel > 4) cout << "\t\t\t\t MaxProb of Slice " << slice << ": " << max_prop << endl;
Note:
See TracChangeset
for help on using the changeset viewer.