Ignore:
Timestamp:
Apr 6, 2009, 2:34:47 PM (15 years ago)
Author:
garnier
Message:

update event

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/event/src/G4SPSEneDistribution.cc

    r816 r964  
    11531153      // Set Emin and Emax
    11541154      Emin = ebins[0];
    1155       Emax = ebins[maxcount-1];
    1156 
     1155      if (maxcount > 1)
     1156        Emax = ebins[maxcount-1];
     1157      else
     1158        Emax = ebins[0];
    11571159      // Put energy bins into new histogram - UDefEnergyH.
    11581160      for(count=0;count<maxcount;count++)
Note: See TracChangeset for help on using the changeset viewer.