Changeset 2507 in Sophya for trunk/SophyaLib/HiStats/histos.h
- Timestamp:
- Mar 15, 2004, 5:47:21 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/HiStats/histos.h
r2479 r2507 1 1 // This may look like C code, but it is really -*- C++ -*- 2 2 // 3 // $Id: histos.h,v 1.1 7 2003-12-06 23:58:17ansari Exp $3 // $Id: histos.h,v 1.18 2004-03-15 16:47:20 ansari Exp $ 4 4 // 5 5 … … 240 240 inline Histo operator + (const Histo& a, const Histo& b) 241 241 { 242 if (b.NBins()!=a.NBins()) THROW(sizeMismatchErr);242 if (b.NBins()!=a.NBins()) throw SzMismatchError(PExcLongMessage("")); 243 243 Histo c(a); 244 244 return (c += b); … … 249 249 inline Histo operator - (const Histo& a, const Histo& b) 250 250 { 251 if (b.NBins()!=a.NBins()) THROW(sizeMismatchErr);251 if (b.NBins()!=a.NBins()) throw SzMismatchError(PExcLongMessage("")); 252 252 Histo c(a); 253 253 return (c -= b); … … 258 258 inline Histo operator * (const Histo& a, const Histo& b) 259 259 { 260 if (b.NBins()!=a.NBins()) THROW(sizeMismatchErr);260 if (b.NBins()!=a.NBins()) throw SzMismatchError(PExcLongMessage("")); 261 261 Histo c(a); 262 262 return (c *= b); … … 267 267 inline Histo operator / (const Histo& a, const Histo& b) 268 268 { 269 if (b.NBins()!=a.NBins()) THROW(sizeMismatchErr);269 if (b.NBins()!=a.NBins()) throw SzMismatchError(PExcLongMessage("")); 270 270 Histo c(a); 271 271 return (c /= b);
Note:
See TracChangeset
for help on using the changeset viewer.