Changeset 9153 for trunk/MagicSoft/Mars/mhbase
- Timestamp:
- 11/11/08 11:49:49 (16 years ago)
- Location:
- trunk/MagicSoft/Mars/mhbase
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhbase/MFillH.cc
r8961 r9153 564 564 // fCanvas->cd(); 565 565 566 const Bool_t rc = fH->Fill(fParContainer, fWeight?fWeight->GetVal():1);566 const Int_t rc = fH->Fill(fParContainer, fWeight?fWeight->GetVal():1); 567 567 fH->SetNumExecutions(GetNumExecutions()+1); 568 568 569 569 // if (save && fCanvas) 570 570 // save->cd(); 571 return rc ==kFALSE ? kCONTINUE : kTRUE;571 return rc; 572 572 } 573 573 -
trunk/MagicSoft/Mars/mhbase/MH.cc
r8957 r9153 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MH.cc,v 1. 39 2008-06-14 15:55:52tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MH.cc,v 1.40 2008-11-11 11:42:13 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 112 112 // to your class definition. 113 113 // 114 Bool_t MH::Fill(const MParContainer *par, const Stat_t w)114 Int_t MH::Fill(const MParContainer *par, const Stat_t w) 115 115 { 116 116 *fLog << warn << GetDescriptor() << ": Fill not overloaded! Can't be used!" << endl; 117 return k FALSE;117 return kERROR; 118 118 } 119 119 -
trunk/MagicSoft/Mars/mhbase/MH.h
r8957 r9153 47 47 virtual Bool_t SetupFill(const MParList *pList) { return kTRUE; } 48 48 virtual Bool_t ReInit(MParList *pList) { return kTRUE; } 49 virtual Bool_tFill(const MParContainer *par, const Stat_t weight=1);49 virtual Int_t Fill(const MParContainer *par, const Stat_t weight=1); 50 50 virtual Bool_t Finalize() { return kTRUE; } 51 51 -
trunk/MagicSoft/Mars/mhbase/MH3.cc
r9041 r9153 674 674 // Fills the one, two or three data members into our histogram 675 675 // 676 Bool_t MH3::Fill(const MParContainer *par, const Stat_t ww)676 Int_t MH3::Fill(const MParContainer *par, const Stat_t ww) 677 677 { 678 678 // Get Information about labels (UInt_t, to supress warning about -
trunk/MagicSoft/Mars/mhbase/MH3.h
r9044 r9153 135 135 // MH 136 136 Bool_t SetupFill(const MParList *pList); 137 Bool_tFill(const MParContainer *par, const Stat_t w=1);137 Int_t Fill(const MParContainer *par, const Stat_t w=1); 138 138 Bool_t Finalize(); 139 139 -
trunk/MagicSoft/Mars/mhbase/MHArray.cc
r8907 r9153 466 466 // successfull filled. 467 467 // 468 Bool_t MHArray::Fill(const MParContainer *par, const Stat_t w)468 Int_t MHArray::Fill(const MParContainer *par, const Stat_t w) 469 469 { 470 470 const Int_t n = fArray->GetSize(); … … 474 474 *fLog << warn << "Histogram Index #" << fIdx << " out of bounds (>"; 475 475 *fLog << n << ")... skipped." << endl; 476 return k CONTINUE;476 return kERROR; 477 477 } 478 478 479 479 if (fIdx==n) 480 480 if (!CreateH()) 481 return k FALSE;481 return kERROR; 482 482 483 483 return GetH()->Fill(par, w); -
trunk/MagicSoft/Mars/mhbase/MHArray.h
r2735 r9153 42 42 43 43 Bool_t SetupFill(const MParList *pList); 44 Bool_tFill(const MParContainer *par, const Stat_t w=1);44 Int_t Fill(const MParContainer *par, const Stat_t w=1); 45 45 Bool_t Finalize(); 46 46 -
trunk/MagicSoft/Mars/mhbase/MHMatrix.cc
r8957 r9153 268 268 // Add the values correspoding to the columns to the new row 269 269 // 270 Bool_t MHMatrix::Fill(const MParContainer *par, const Stat_t w)270 Int_t MHMatrix::Fill(const MParContainer *par, const Stat_t w) 271 271 { 272 272 AddRow(); -
trunk/MagicSoft/Mars/mhbase/MHMatrix.h
r7804 r9153 55 55 Bool_t SetupFill(const MParList *pList); 56 56 57 Bool_tFill(const MParContainer *par, const Stat_t w=1);57 Int_t Fill(const MParContainer *par, const Stat_t w=1); 58 58 Bool_t Finalize(); 59 59 -
trunk/MagicSoft/Mars/mhbase/MHn.cc
r8957 r9153 499 499 // Call Fill for all initialized histograms 500 500 // 501 Bool_t MHn::Fill(const MParContainer *par, const Stat_t w)501 Int_t MHn::Fill(const MParContainer *par, const Stat_t w) 502 502 { 503 503 for (int i=0; i<fNum; i++) 504 if (!fHist[i]->Fill(par, w)) 505 return kFALSE; 504 { 505 const Int_t rc = fHist[i]->Fill(par, w); 506 if (rc!=kTRUE) 507 return rc; 508 } 506 509 507 510 return kTRUE; -
trunk/MagicSoft/Mars/mhbase/MHn.h
r8893 r9153 67 67 // MH 68 68 Bool_t SetupFill(const MParList *pList); 69 Bool_tFill(const MParContainer *par, const Stat_t w=1);69 Int_t Fill(const MParContainer *par, const Stat_t w=1); 70 70 Bool_t Finalize(); 71 71
Note:
See TracChangeset
for help on using the changeset viewer.