Ignore:
Timestamp:
02/23/06 12:54:27 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.