Ignore:
Timestamp:
03/19/08 11:24:30 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mjobs/MJSpectrum.cc

    r8882 r8884  
    290290    }
    291291
    292     const Double_t ofl = vstime->GetBinContent(vstime->GetNbinsX());
     292    const Double_t ofl = vstime->GetBinContent(vstime->GetNbinsX()+1);
    293293    const Double_t eff = vstime->Integral()+ofl;
    294294    if (ofl>0)
     
    335335    const Float_t emin2 = chain.GetMaximum("MMcCorsikaRunHeader.fELowLim");
    336336    *fLog << "found " << emin2 << "GeV" << endl;
     337
     338    // Need a check for the upper energy LIMIT?!?
    337339
    338340    if (emin2>emin)
     
    558560    // Calculate the Probability
    559561    temp1.Divide(&temp2);
    560     temp1.Scale(1./temp1.Integral(1, temp1.GetNbinsX()));
     562    temp1.Scale(1./temp1.Integral(1, temp1.GetNbinsX()+1));
    561563
    562564    // Some cosmetics: Name, Axis, etc.
Note: See TracChangeset for help on using the changeset viewer.