Changeset 2507 in Sophya for trunk/SophyaLib/HiStats/histos.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/histos.h

    r2479 r2507  
    11// This may look like C code, but it is really -*- C++ -*-
    22//
    3 // $Id: histos.h,v 1.17 2003-12-06 23:58:17 ansari Exp $
     3// $Id: histos.h,v 1.18 2004-03-15 16:47:20 ansari Exp $
    44//
    55
     
    240240inline Histo operator + (const Histo& a, const Histo& b)
    241241{
    242 if (b.NBins()!=a.NBins()) THROW(sizeMismatchErr);
     242if (b.NBins()!=a.NBins()) throw SzMismatchError(PExcLongMessage(""));
    243243Histo c(a);
    244244return (c += b);
     
    249249inline Histo operator - (const Histo& a, const Histo& b)
    250250{
    251 if (b.NBins()!=a.NBins()) THROW(sizeMismatchErr);
     251if (b.NBins()!=a.NBins()) throw SzMismatchError(PExcLongMessage(""));
    252252Histo c(a);
    253253return (c -= b);
     
    258258inline Histo operator * (const Histo& a, const Histo& b)
    259259{
    260 if (b.NBins()!=a.NBins()) THROW(sizeMismatchErr);
     260if (b.NBins()!=a.NBins()) throw SzMismatchError(PExcLongMessage(""));
    261261Histo c(a);
    262262return (c *= b);
     
    267267inline Histo operator / (const Histo& a, const Histo& b)
    268268{
    269 if (b.NBins()!=a.NBins()) THROW(sizeMismatchErr);
     269if (b.NBins()!=a.NBins()) throw SzMismatchError(PExcLongMessage(""));
    270270Histo c(a);
    271271return (c /= b);
Note: See TracChangeset for help on using the changeset viewer.