Changeset 7522 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 02/23/06 12:54:27 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJSpectrum.cc
r7488 r7522 700 700 for (int i=0; i<spectrum.GetNbinsX(); i++) 701 701 { 702 spectrum.SetBinContent(i+1, spectrum.GetBinContent(i+1)*spectrum.GetBinWidth(i+1)*spectrum.GetBinWidth(i+1)); 703 spectrum.SetBinError( i+1, spectrum.GetBinError(i+1) *spectrum.GetBinWidth(i+1)*spectrum.GetBinWidth(i+1)); 702 const Double_t e = TMath::Sqrt(spectrum.GetBinLowEdge(i+1)*spectrum.GetBinLowEdge(i+2))*1e-3; 703 704 spectrum.SetBinContent(i+1, spectrum.GetBinContent(i+1)*e*e); 705 spectrum.SetBinError( i+1, spectrum.GetBinError(i+1) *e*e); 704 706 } 705 707
Note:
See TracChangeset
for help on using the changeset viewer.