Changeset 3195 in Sophya for trunk


Ignore:
Timestamp:
Apr 3, 2007, 4:03:55 PM (18 years ago)
Author:
cmv
Message:

Impressionsi pb dans FunRan::FunRan(Histo) cmv 03/04/2007

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/NTools/perandom.cc

    r3109 r3195  
    121121
    122122  // On normalise la FD
    123  if((*this)(mBins-1)<=0.)
    124    throw RangeCheckError("FunRan::FunRan(Histo) not a distribution function last bin is <=0");
     123  if((*this)(mBins-1)<=0.) {
     124    cout<<"FunRan::FunRan(Histo) not a distribution function last bin is <=0"<<endl;
     125    throw RangeCheckError("FunRan::FunRan(Histo) not a distribution function last bin is <=0");
     126  }
    125127 for(int_4 i=0;i<mBins;i++) (*this)(i) /= (*this)(mBins-1);
    126128}
Note: See TracChangeset for help on using the changeset viewer.