Changeset 2507 in Sophya for trunk/SophyaLib/HiStats/histos2.h


Ignore:
Timestamp:
Mar 15, 2004, 5:47:21 PM (22 years ago)
Author:
ansari
Message:

Remplacement THROW par throw et suppression END_CONSTRUCTOR - Reza 15/03/2004

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/HiStats/histos2.h

    r2479 r2507  
    320320inline Histo2D operator + (const Histo2D& a, const Histo2D& b)
    321321{
    322 if (b.NBinX()!=a.NBinX() || b.NBinY()!=a.NBinY()) THROW(sizeMismatchErr);
     322if (b.NBinX()!=a.NBinX() || b.NBinY()!=a.NBinY()) throw SzMismatchError(PExcLongMessage(""));
    323323Histo2D c(a);
    324324return (c += b);
     
    329329inline Histo2D operator - (const Histo2D& a, const Histo2D& b)
    330330{
    331 if (b.NBinX()!=a.NBinX() || b.NBinY()!=a.NBinY()) THROW(sizeMismatchErr);
     331if (b.NBinX()!=a.NBinX() || b.NBinY()!=a.NBinY()) throw SzMismatchError(PExcLongMessage(""));
    332332Histo2D c(a);
    333333return (c -= b);
     
    338338inline Histo2D operator * (const Histo2D& a, const Histo2D& b)
    339339{
    340 if (b.NBinX()!=a.NBinX() || b.NBinY()!=a.NBinY()) THROW(sizeMismatchErr);
     340if (b.NBinX()!=a.NBinX() || b.NBinY()!=a.NBinY()) throw SzMismatchError(PExcLongMessage(""));
    341341Histo2D c(a);
    342342return (c *= b);
     
    347347inline Histo2D operator / (const Histo2D& a, const Histo2D& b)
    348348{
    349 if (b.NBinX()!=a.NBinX() || b.NBinY()!=a.NBinY()) THROW(sizeMismatchErr);
     349if (b.NBinX()!=a.NBinX() || b.NBinY()!=a.NBinY()) throw SzMismatchError(PExcLongMessage(""));
    350350Histo2D c(a);
    351351return (c /= b);
Note: See TracChangeset for help on using the changeset viewer.