Changeset 3195 in Sophya for trunk/SophyaLib/NTools
- Timestamp:
- Apr 3, 2007, 4:03:55 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/NTools/perandom.cc
r3109 r3195 121 121 122 122 // 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 } 125 127 for(int_4 i=0;i<mBins;i++) (*this)(i) /= (*this)(mBins-1); 126 128 }
Note:
See TracChangeset
for help on using the changeset viewer.