Changeset 7522


Ignore:
Timestamp:
02/23/06 12:54:27 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r7521 r7522  
    1818
    1919                                                 -*-*- 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
    2028 2006/02/22 Daniela Dorner
    2129
  • trunk/MagicSoft/Mars/NEWS

    r7517 r7522  
    77   - ganymed: now stops in requested source isn't found in catalog file
    88
     9   - ganymed: fixed plot for Eý.dN/dE. The spectrum was multiplied with two
     10     times the bin-width instead of the absolute energy
    911
    1012
  • trunk/MagicSoft/Mars/mjobs/MJSpectrum.cc

    r7488 r7522  
    700700    for (int i=0; i<spectrum.GetNbinsX(); i++)
    701701    {
    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);
    704706    }
    705707
Note: See TracChangeset for help on using the changeset viewer.