Changeset 7522 for trunk/MagicSoft/Mars
- Timestamp:
- 02/23/06 12:54:27 (19 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7521 r7522 18 18 19 19 -*-*- END OF LINE -*-*- 20 2006/02/23 Thomas Bretz 21 22 * mjobs/MJSpectrum.cc: 23 - fixed plot for Eý.dN/dE. The spectrum was multiplied with two 24 times the bin-width instead of the absolute energy 25 26 27 20 28 2006/02/22 Daniela Dorner 21 29 -
trunk/MagicSoft/Mars/NEWS
r7517 r7522 7 7 - ganymed: now stops in requested source isn't found in catalog file 8 8 9 - ganymed: fixed plot for Eý.dN/dE. The spectrum was multiplied with two 10 times the bin-width instead of the absolute energy 9 11 10 12 -
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.