Changeset 2507 in Sophya for trunk/SophyaLib/HiStats/histos2.cc
- Timestamp:
- Mar 15, 2004, 5:47:21 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/HiStats/histos2.cc
r2341 r2507 54 54 Zero(); 55 55 mB_s.H = NULL; 56 END_CONSTRUCTOR57 56 } 58 57 … … 73 72 Zero(); 74 73 mB_s.H = NULL; 75 END_CONSTRUCTOR76 74 } 77 75 … … 140 138 } 141 139 142 END_CONSTRUCTOR143 140 } 144 141 … … 156 153 for(int_4 i=0;i<3;i++) for(int_4 j=0;j<3;j++) mOver[i][j]=0.; 157 154 mB_s.H = NULL; 158 END_CONSTRUCTOR159 155 } 160 156 … … 332 328 { 333 329 int_4 i,j; 334 if (b==0.) THROW(inconsistentErr);330 if (b==0.) throw ParmError("Histo2D::operator / (0) "); 335 331 r_8 b2 = b*b; 336 332 for(i=0;i<mNxy;i++) { … … 412 408 { 413 409 int_4 i,j; 414 if(mNx!=a.mNx || mNy!=a.mNy) THROW(sizeMismatchErr);410 if(mNx!=a.mNx || mNy!=a.mNy) throw SzMismatchError("Histo2D::operator += "); 415 411 for(i=0;i<mNxy;i++) { 416 412 mData[i] += a.mData[i]; … … 435 431 { 436 432 int_4 i,j; 437 if(mNx!=a.mNx || mNy!=a.mNy) THROW(sizeMismatchErr);433 if(mNx!=a.mNx || mNy!=a.mNy) throw SzMismatchError("Histo2D::operator -= "); 438 434 for(i=0;i<mNxy;i++) { 439 435 mData[i] -= a.mData[i]; … … 458 454 { 459 455 int_4 i,j; 460 if(mNx!=a.mNx || mNy!=a.mNy) THROW(sizeMismatchErr);456 if(mNx!=a.mNx || mNy!=a.mNy) throw SzMismatchError("Histo2D::operator *= "); 461 457 nHist = 0.; 462 458 for(i=0;i<mNxy;i++) { … … 483 479 { 484 480 int_4 i,j; 485 if(mNx!=a.mNx || mNy!=a.mNy) THROW(sizeMismatchErr);481 if(mNx!=a.mNx || mNy!=a.mNy) throw SzMismatchError("Histo2D::operator /= "); 486 482 nHist = 0.; 487 483 for(i=0;i<mNxy;i++) { … … 575 571 void Histo2D::PutValue(TMatrix<r_8> &v, int_4 ierr) 576 572 { 577 //if(v.NRows()!=(uint_4)mNx || v.NCol()!=(uint_4)mNy) THROW(sizeMismatchErr);573 //if(v.NRows()!=(uint_4)mNx || v.NCol()!=(uint_4)mNy) throw SzMismatchError("Histo2D::PutValue()"); 578 574 uint_4 nnx = (v.NRows()<(uint_4)mNx)? v.NRows(): (uint_4)mNx; 579 575 uint_4 nny = (v.NCol() <(uint_4)mNy)? v.NCol() : (uint_4)mNy; … … 590 586 void Histo2D::PutValueAdd(TMatrix<r_8> &v, int_4 ierr) 591 587 { 592 //if(v.NRows()!=(uint_4)mNx || v.NCol()!=(uint_4)mNy) THROW(sizeMismatchErr);588 //if(v.NRows()!=(uint_4)mNx || v.NCol()!=(uint_4)mNy) throw SzMismatchError("Histo2D::PutValueAdd "); 593 589 uint_4 nnx = (v.NRows()<(uint_4)mNx)? v.NRows(): (uint_4)mNx; 594 590 uint_4 nny = (v.NCol() <(uint_4)mNy)? v.NCol() : (uint_4)mNy; … … 606 602 void Histo2D::PutError2(TMatrix<r_8> &v) 607 603 { 608 //if(v.NRows()!=(uint_4)mNx || v.NCol()!=(uint_4)mNy) THROW(sizeMismatchErr);604 //if(v.NRows()!=(uint_4)mNx || v.NCol()!=(uint_4)mNy) throw SzMismatchError("Histo2D::PutError2 "); 609 605 uint_4 nnx = (v.NRows()<(uint_4)mNx)? v.NRows(): (uint_4)mNx; 610 606 uint_4 nny = (v.NCol() <(uint_4)mNy)? v.NCol() : (uint_4)mNy; … … 622 618 void Histo2D::PutError2Add(TMatrix<r_8> &v) 623 619 { 624 //if(v.NRows()!=(uint_4)mNx || v.NCol()!=(uint_4)mNy) THROW(sizeMismatchErr);620 //if(v.NRows()!=(uint_4)mNx || v.NCol()!=(uint_4)mNy) throw SzMismatchError("Histo2D::PutError2Add "); 625 621 uint_4 nnx = (v.NRows()<(uint_4)mNx)? v.NRows(): (uint_4)mNx; 626 622 uint_4 nny = (v.NCol() <(uint_4)mNy)? v.NCol() : (uint_4)mNy; … … 638 634 void Histo2D::PutError(TMatrix<r_8> &v) 639 635 { 640 //if(v.NRows()!=(uint_4)mNx || v.NCol()!=(uint_4)mNy) THROW(sizeMismatchErr);636 //if(v.NRows()!=(uint_4)mNx || v.NCol()!=(uint_4)mNy) throw SzMismatchError("Histo2D::PutError "); 641 637 uint_4 nnx = (v.NRows()<(uint_4)mNx)? v.NRows(): (uint_4)mNx; 642 638 uint_4 nny = (v.NCol() <(uint_4)mNy)? v.NCol() : (uint_4)mNy;
Note:
See TracChangeset
for help on using the changeset viewer.