Changeset 2507 in Sophya for trunk/SophyaLib/HiStats/histos2.h
- Timestamp:
- Mar 15, 2004, 5:47:21 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/HiStats/histos2.h
r2479 r2507 320 320 inline Histo2D operator + (const Histo2D& a, const Histo2D& b) 321 321 { 322 if (b.NBinX()!=a.NBinX() || b.NBinY()!=a.NBinY()) THROW(sizeMismatchErr);322 if (b.NBinX()!=a.NBinX() || b.NBinY()!=a.NBinY()) throw SzMismatchError(PExcLongMessage("")); 323 323 Histo2D c(a); 324 324 return (c += b); … … 329 329 inline Histo2D operator - (const Histo2D& a, const Histo2D& b) 330 330 { 331 if (b.NBinX()!=a.NBinX() || b.NBinY()!=a.NBinY()) THROW(sizeMismatchErr);331 if (b.NBinX()!=a.NBinX() || b.NBinY()!=a.NBinY()) throw SzMismatchError(PExcLongMessage("")); 332 332 Histo2D c(a); 333 333 return (c -= b); … … 338 338 inline Histo2D operator * (const Histo2D& a, const Histo2D& b) 339 339 { 340 if (b.NBinX()!=a.NBinX() || b.NBinY()!=a.NBinY()) THROW(sizeMismatchErr);340 if (b.NBinX()!=a.NBinX() || b.NBinY()!=a.NBinY()) throw SzMismatchError(PExcLongMessage("")); 341 341 Histo2D c(a); 342 342 return (c *= b); … … 347 347 inline Histo2D operator / (const Histo2D& a, const Histo2D& b) 348 348 { 349 if (b.NBinX()!=a.NBinX() || b.NBinY()!=a.NBinY()) THROW(sizeMismatchErr);349 if (b.NBinX()!=a.NBinX() || b.NBinY()!=a.NBinY()) throw SzMismatchError(PExcLongMessage("")); 350 350 Histo2D c(a); 351 351 return (c /= b);
Note:
See TracChangeset
for help on using the changeset viewer.