Changeset 9153
- Timestamp:
- 11/11/08 11:49:49 (16 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 89 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r9152 r9153 48 48 mimage/MHHillasSrc.[h,cc], mimage/MHImagePar.[h,cc], 49 49 mimage/MHNewImagePar.[h,cc], mimage/MHNewImagePar2.[h,cc], 50 mimage/MHVsSize.[h,cc], mbadpixels/MHBadPixels.[h,cc]: 50 mimage/MHVsSize.[h,cc], mbadpixels/MHBadPixels.[h,cc], 51 mmuon/MHMuonPar.[h,cc], mmuon/MHSingleMuon.[h,cc], 52 mpedestal/MHPedestalCor.[h,cc], mpointing/MHPointing.[h,cc], 53 mranforest/MHRanForest.[h,cc], mranforest/MHRanForestGini.[h,cc], 54 mreflector/MHReflector.[h,cc]: 51 55 - changed return type of Fill from bool to int 52 56 - fixed return value where necessary -
trunk/MagicSoft/Mars/manalysis/Makefile
r7928 r9153 34 34 MEventRate.cc \ 35 35 MEventRateCalc.cc \ 36 MMcTriggerLvl2.cc \37 MMcTriggerLvl2Calc.cc \38 36 MMcCalibrationUpdate.cc 39 37 38 # MMcTriggerLvl2.cc \ 39 # MMcTriggerLvl2Calc.cc \ 40 40 # MCompProbCalc.cc \ 41 41 -
trunk/MagicSoft/Mars/mbadpixels/MHBadPixels.cc
r5431 r9153 170 170 // 171 171 172 Bool_t MHBadPixels::Fill(const MParContainer *par, const Stat_t w)172 Int_t MHBadPixels::Fill(const MParContainer *par, const Stat_t w) 173 173 { 174 174 if (!par) 175 return kFALSE; 176 177 Double_t theta = fPointPos->GetZd(); 175 { 176 *fLog << err << "ERROR - par==NULL." << endl; 177 return kERROR; 178 } 179 180 const Double_t theta = fPointPos->GetZd(); 178 181 179 182 const MBadPixelsCam *fBadPixels = (MBadPixelsCam*)par; -
trunk/MagicSoft/Mars/mbadpixels/MHBadPixels.h
r5431 r9153 44 44 45 45 void Draw(Option_t* option = ""); 46 46 47 Bool_t SetupFill(const MParList *plist); 47 Bool_tFill(const MParContainer *par, const Stat_t w=1);48 Int_t Fill(const MParContainer *par, const Stat_t w=1); 48 49 49 50 ClassDef(MHBadPixels, 1) // Histogram of bad pixel Id vs. Theta -
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 -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationCam.cc
r8988 r9153 868 868 // Call FillHists() 869 869 // 870 Bool_t MHCalibrationCam::Fill(const MParContainer *par, const Stat_t w)870 Int_t MHCalibrationCam::Fill(const MParContainer *par, const Stat_t w) 871 871 { 872 872 if (fCurrentNumEvts >= fMaxNumEvts) … … 878 878 879 879 if (!IsSizeCheck()) 880 return FillHists(par,w); 880 { 881 const Bool_t rc = FillHists(par,w); 882 return rc ? kTRUE : kERROR; 883 } 881 884 882 885 const Int_t npixels = fGeom->GetNumPixels(); … … 890 893 { 891 894 *fLog << err << "ERROR - Size mismatch in number of pixels... abort." << endl; 892 return k FALSE;895 return kERROR; 893 896 } 894 897 … … 898 901 { 899 902 *fLog << err << "ERROR - Size mismatch in number of pixels... abort." << endl; 900 return k FALSE;903 return kERROR; 901 904 } 902 905 } … … 908 911 { 909 912 *fLog << err << "ERROR - Size mismatch in number of areas ... abort." << endl; 910 return k FALSE;913 return kERROR; 911 914 } 912 915 … … 914 917 { 915 918 *fLog << err << "ERROR - Size mismatch in number of sectors ... abort." << endl; 916 return k FALSE;919 return kERROR; 917 920 } 918 921 … … 923 926 { 924 927 *fLog << err << "ERROR - Size mismatch in number of areas ... abort." << endl; 925 return k FALSE;928 return kERROR; 926 929 } 927 930 … … 929 932 { 930 933 *fLog << err << "ERROR - Size mismatch in number of sectors ... abort." << endl; 931 return k FALSE;934 return kERROR; 932 935 } 933 936 } 934 935 return FillHists(par, w); 937 938 const Bool_t rc = FillHists(par, w); 939 940 return rc ? kTRUE : kERROR; 936 941 } 937 942 -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationCam.h
r8452 r9153 180 180 Bool_t SetupFill(const MParList *pList); 181 181 Bool_t ReInit ( MParList *pList); 182 Bool_tFill (const MParContainer *par, const Stat_t w=1);182 Int_t Fill (const MParContainer *par, const Stat_t w=1); 183 183 Bool_t Finalize ( ); 184 184 -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargePINDiode.cc
r8341 r9153 225 225 // - FillRmsCharge(rms); 226 226 // 227 Bool_t MHCalibrationChargePINDiode::Fill(const MParContainer *par, const Stat_t w)227 Int_t MHCalibrationChargePINDiode::Fill(const MParContainer *par, const Stat_t w) 228 228 { 229 229 … … 232 232 { 233 233 *fLog << err << "No argument in MExtractedSignalPINDiode::Fill... abort." << endl; 234 return k FALSE;234 return kERROR; 235 235 } 236 236 -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargePINDiode.h
r8339 r9153 72 72 Bool_t SetupFill(const MParList *pList); 73 73 Bool_t ReInit ( MParList *pList); 74 Bool_tFill (const MParContainer *par, const Stat_t w=1);74 Int_t Fill (const MParContainer *par, const Stat_t w=1); 75 75 Bool_t Finalize (); 76 76 -
trunk/MagicSoft/Mars/mhflux/MHAlpha.cc
r8996 r9153 463 463 // Fill the histogram. For details see the code or the class description 464 464 // 465 Bool_t MHAlpha::Fill(const MParContainer *par, const Stat_t w)465 Int_t MHAlpha::Fill(const MParContainer *par, const Stat_t w) 466 466 { 467 467 Double_t alpha, energy, theta; -
trunk/MagicSoft/Mars/mhflux/MHAlpha.h
r8879 r9153 95 95 // MH 96 96 Bool_t SetupFill(const MParList *pl); 97 Bool_tFill(const MParContainer *par, const Stat_t w=1);97 Int_t Fill(const MParContainer *par, const Stat_t w=1); 98 98 Bool_t Finalize(); 99 99 -
trunk/MagicSoft/Mars/mhflux/MHCollectionArea.cc
r8911 r9153 464 464 } 465 465 466 Bool_t MHCollectionArea::Fill(const MParContainer *par, const Stat_t weight)466 Int_t MHCollectionArea::Fill(const MParContainer *par, const Stat_t weight) 467 467 { 468 468 const Double_t energy = fMcEvt->GetEnergy(); -
trunk/MagicSoft/Mars/mhflux/MHCollectionArea.h
r8911 r9153 43 43 Bool_t SetupFill(const MParList *pList); 44 44 Bool_t ReInit(MParList *pList); 45 Bool_tFill(const MParContainer *par, const Stat_t weight=1);45 Int_t Fill(const MParContainer *par, const Stat_t weight=1); 46 46 Bool_t Finalize(); 47 47 -
trunk/MagicSoft/Mars/mhflux/MHDisp.cc
r8957 r9153 146 146 // Fill the histogram. For details see the code or the class description 147 147 // 148 Bool_t MHDisp::Fill(const MParContainer *par, const Stat_t w)148 Int_t MHDisp::Fill(const MParContainer *par, const Stat_t w) 149 149 { 150 150 const MHillas *hil = dynamic_cast<const MHillas*>(par); … … 152 152 { 153 153 *fLog << err << "MHDisp::Fill: No container specified!" << endl; 154 return k FALSE;154 return kERROR; 155 155 } 156 156 -
trunk/MagicSoft/Mars/mhflux/MHDisp.h
r8719 r9153 87 87 // MH 88 88 Bool_t SetupFill(const MParList *pList); 89 Bool_tFill(const MParContainer *par, const Stat_t w=1);89 Int_t Fill(const MParContainer *par, const Stat_t w=1); 90 90 Bool_t Finalize(); 91 91 -
trunk/MagicSoft/Mars/mhflux/MHEffectiveOnTime.cc
r8946 r9153 720 720 // Fill the histogram 721 721 // 722 Bool_t MHEffectiveOnTime::Fill(const MParContainer *par, const Stat_t w)722 Int_t MHEffectiveOnTime::Fill(const MParContainer *par, const Stat_t w) 723 723 { 724 724 const MTime *time = dynamic_cast<const MTime*>(par); … … 726 726 { 727 727 *fLog << err << "ERROR - MHEffectiveOnTime::Fill without argument or container doesn't inherit from MTime... abort." << endl; 728 return k FALSE;728 return kERROR; 729 729 } 730 730 -
trunk/MagicSoft/Mars/mhflux/MHEffectiveOnTime.h
r8929 r9153 66 66 Bool_t SetupFill(const MParList *pList); 67 67 Bool_t ReInit(MParList *pList); 68 Bool_tFill(const MParContainer *par, const Stat_t w=1);68 Int_t Fill(const MParContainer *par, const Stat_t w=1); 69 69 Bool_t Finalize(); 70 70 -
trunk/MagicSoft/Mars/mhflux/MHEnergyEst.cc
r8985 r9153 187 187 // Fill the histogram 188 188 // 189 Bool_t MHEnergyEst::Fill(const MParContainer *par, const Stat_t w)189 Int_t MHEnergyEst::Fill(const MParContainer *par, const Stat_t w) 190 190 { 191 191 const Double_t eest = fEnergy->GetVal(); -
trunk/MagicSoft/Mars/mhflux/MHEnergyEst.h
r8935 r9153 48 48 49 49 Bool_t SetupFill(const MParList *pList); 50 Bool_tFill(const MParContainer *par, const Stat_t w=1);50 Int_t Fill(const MParContainer *par, const Stat_t w=1); 51 51 Bool_t Finalize(); 52 52 -
trunk/MagicSoft/Mars/mhflux/MHFalseSource.cc
r8601 r9153 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MHFalseSource.cc,v 1.2 2 2007-06-24 16:31:57tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MHFalseSource.cc,v 1.23 2008-11-11 11:42:14 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 309 309 // Fill the histogram. For details see the code or the class description 310 310 // 311 Bool_t MHFalseSource::Fill(const MParContainer *par, const Stat_t w)311 Int_t MHFalseSource::Fill(const MParContainer *par, const Stat_t w) 312 312 { 313 313 const MHillas *hil = dynamic_cast<const MHillas*>(par); … … 315 315 { 316 316 *fLog << err << "MHFalseSource::Fill: No container specified!" << endl; 317 return k FALSE;317 return kERROR; 318 318 } 319 319 -
trunk/MagicSoft/Mars/mhflux/MHFalseSource.h
r8185 r9153 94 94 // MH 95 95 Bool_t SetupFill(const MParList *pList); 96 Bool_tFill(const MParContainer *par, const Stat_t w=1);96 Int_t Fill(const MParContainer *par, const Stat_t w=1); 97 97 98 98 // TObject -
trunk/MagicSoft/Mars/mhflux/MHPhi.cc
r7618 r9153 186 186 // MMuonSearchPar container. 187 187 // 188 Bool_t MHPhi::Fill(const MParContainer *par, const Stat_t weight)188 Int_t MHPhi::Fill(const MParContainer *par, const Stat_t weight) 189 189 { 190 190 // Here we calculate an upper phi cut to take a -
trunk/MagicSoft/Mars/mhflux/MHPhi.h
r7618 r9153 41 41 // MH 42 42 Bool_t SetupFill(const MParList *plist); 43 Bool_tFill(const MParContainer *par, const Stat_t w=1);43 Int_t Fill(const MParContainer *par, const Stat_t w=1); 44 44 45 45 public: -
trunk/MagicSoft/Mars/mhflux/MHThetaSqN.cc
r8592 r9153 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MHThetaSqN.cc,v 1. 9 2007-06-22 15:49:50tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MHThetaSqN.cc,v 1.10 2008-11-11 11:42:14 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 215 215 } 216 216 217 Bool_t MHThetaSqN::Fill(const MParContainer *par, const Stat_t weight)217 Int_t MHThetaSqN::Fill(const MParContainer *par, const Stat_t weight) 218 218 { 219 219 const TVector2 norm(GetVec(fHillas->GetNormAxis(), 6)); … … 272 272 SetVal(dist[i]); 273 273 274 if (!MHAlpha::Fill(NULL, w)) 275 return kFALSE; 274 const Int_t rc = MHAlpha::Fill(NULL, w); 275 if (rc!=kTRUE) 276 return rc; 276 277 } 277 278 -
trunk/MagicSoft/Mars/mhflux/MHThetaSqN.h
r7775 r9153 48 48 // MH 49 49 Bool_t SetupFill(const MParList *pl); 50 Bool_tFill(const MParContainer *par, const Stat_t weight);50 Int_t Fill(const MParContainer *par, const Stat_t weight); 51 51 Bool_t Finalize(); 52 52 -
trunk/MagicSoft/Mars/mhflux/MHThreshold.cc
r8988 r9153 164 164 } 165 165 166 Bool_t MHThreshold::Fill(const MParContainer *par, const Stat_t weight)166 Int_t MHThreshold::Fill(const MParContainer *par, const Stat_t weight) 167 167 { 168 168 const Double_t energy = fMcEvt->GetEnergy(); -
trunk/MagicSoft/Mars/mhflux/MHThreshold.h
r7349 r9153 23 23 24 24 Bool_t SetupFill(const MParList *pList); 25 Bool_tFill(const MParContainer *par, const Stat_t weight=1);25 Int_t Fill(const MParContainer *par, const Stat_t weight=1); 26 26 27 27 void Draw(Option_t *option=""); -
trunk/MagicSoft/Mars/mhist/MHCamEvent.cc
r8964 r9153 169 169 // Fill the histograms with data from a MCamEvent-Container. 170 170 // 171 Bool_t MHCamEvent::Fill(const MParContainer *par, const Stat_t w)171 Int_t MHCamEvent::Fill(const MParContainer *par, const Stat_t w) 172 172 { 173 173 const MCamEvent *evt = par ? dynamic_cast<const MCamEvent*>(par) : fEvt; … … 175 175 { 176 176 *fLog << err << dbginf << "Got no MCamEvent as argument of Fill()..." << endl; 177 return k FALSE;177 return kERROR; 178 178 } 179 179 if (fUseThreshold) -
trunk/MagicSoft/Mars/mhist/MHCamEvent.h
r8291 r9153 32 32 33 33 Bool_t SetupFill(const MParList *pList); 34 Bool_tFill(const MParContainer *par, const Stat_t w=1);34 Int_t Fill(const MParContainer *par, const Stat_t w=1); 35 35 36 36 public: -
trunk/MagicSoft/Mars/mhist/MHCamEventRot.cc
r8907 r9153 176 176 // Fill the histogram. For details see the code or the class description 177 177 // 178 Bool_t MHCamEventRot::Fill(const MParContainer *par, const Stat_t w)178 Int_t MHCamEventRot::Fill(const MParContainer *par, const Stat_t w) 179 179 { 180 180 const MCamEvent *evt = dynamic_cast<const MCamEvent*>(par); … … 182 182 { 183 183 *fLog << err << "MHCamEventRot::Fill: No container specified!" << endl; 184 return k FALSE;184 return kERROR; 185 185 } 186 186 -
trunk/MagicSoft/Mars/mhist/MHCamEventRot.h
r6977 r9153 49 49 50 50 Bool_t SetupFill(const MParList *pList); 51 Bool_tFill(const MParContainer *par, const Stat_t w=1);51 Int_t Fill(const MParContainer *par, const Stat_t w=1); 52 52 53 53 TH1 *GetHistByName(const TString name) const { return const_cast<TH2D*>(&fHist); } -
trunk/MagicSoft/Mars/mhist/MHEvent.cc
r9141 r9153 191 191 } 192 192 193 Bool_t MHEvent::Fill(const MParContainer *par, const Stat_t weight)193 Int_t MHEvent::Fill(const MParContainer *par, const Stat_t weight) 194 194 { 195 195 if (fHist->IsFreezed()) … … 197 197 198 198 if (!par) 199 return kFALSE; 199 { 200 *fLog << err << "ERROR - par==NULL... abort." << endl; 201 return kERROR; 202 } 200 203 201 204 const MCamEvent *event = dynamic_cast<const MCamEvent*>(par); … … 203 206 { 204 207 *fLog << err << par->GetDescriptor() << " doesn't inherit from MCamEvent... abort." << endl; 205 return k FALSE;208 return kERROR; 206 209 } 207 210 -
trunk/MagicSoft/Mars/mhist/MHEvent.h
r7297 r9153 52 52 53 53 Bool_t SetupFill(const MParList *plist); 54 Bool_tFill(const MParContainer *par, const Stat_t weight=1);54 Int_t Fill(const MParContainer *par, const Stat_t weight=1); 55 55 56 56 public: -
trunk/MagicSoft/Mars/mhist/MHHadronness.cc
r8907 r9153 200 200 // are skipped at the moment. 201 201 // 202 Bool_t MHHadronness::Fill(const MParContainer *par, const Stat_t w)202 Int_t MHHadronness::Fill(const MParContainer *par, const Stat_t w) 203 203 { 204 204 // Preliminary Workaround: FIXME! … … 206 206 { 207 207 *fLog << err << "MHHadronness::Fill: No MHadronness container specified!" << endl; 208 return k FALSE;208 return kERROR; 209 209 } 210 210 … … 214 214 215 215 if (!TMath::Finite(h)) 216 return k CONTINUE;216 return kTRUE; // Use kCONTINUE with extreme care! 217 217 218 218 const Int_t particleid = fMatrix ? (Int_t)(*fMatrix)[fMap] : fMcEvt->GetPartId(); -
trunk/MagicSoft/Mars/mhist/MHHadronness.h
r6890 r9153 49 49 50 50 Bool_t SetupFill(const MParList *plist); 51 Bool_tFill(const MParContainer *par, const Stat_t w=1);51 Int_t Fill(const MParContainer *par, const Stat_t w=1); 52 52 Bool_t Finalize(); 53 53 -
trunk/MagicSoft/Mars/mhist/MHRate.cc
r8104 r9153 145 145 // MMuonSearchPar container. 146 146 // 147 Bool_t MHRate::Fill(const MParContainer *par, const Stat_t w)147 Int_t MHRate::Fill(const MParContainer *par, const Stat_t w) 148 148 { 149 149 const MTime *t = dynamic_cast<const MTime*>(par); -
trunk/MagicSoft/Mars/mhist/MHRate.h
r7198 r9153 46 46 47 47 Bool_t SetupFill(const MParList *plist); 48 Bool_tFill(const MParContainer *par, const Stat_t w=1);48 Int_t Fill(const MParContainer *par, const Stat_t w=1); 49 49 50 50 void Draw(Option_t *opt=""); -
trunk/MagicSoft/Mars/mhist/MHStarMap.cc
r3666 r9153 189 189 // Be careful: Only call this with an object of type MHillas 190 190 // 191 Bool_t MHStarMap::Fill(const MParContainer *par, const Stat_t w)191 Int_t MHStarMap::Fill(const MParContainer *par, const Stat_t w) 192 192 { 193 193 const MHillas &h = *(MHillas*)par; -
trunk/MagicSoft/Mars/mhist/MHStarMap.h
r6977 r9153 33 33 34 34 Bool_t SetupFill(const MParList *pList); 35 Bool_tFill(const MParContainer *par, const Stat_t w=1);35 Int_t Fill(const MParContainer *par, const Stat_t w=1); 36 36 37 37 Bool_t ReInit(MParList *pList); -
trunk/MagicSoft/Mars/mhist/MHTriggerLvl0.cc
r6977 r9153 121 121 // Fill the histograms with data from a MCamEvent-Container. 122 122 // 123 Bool_t MHTriggerLvl0::Fill(const MParContainer *par, const Stat_t w)123 Int_t MHTriggerLvl0::Fill(const MParContainer *par, const Stat_t w) 124 124 { 125 125 const MCamEvent *evt = par ? dynamic_cast<const MCamEvent*>(par) : fEvt; … … 127 127 { 128 128 *fLog << err << dbginf << "Got no MCamEvent as argument of Fill()..." << endl; 129 return k FALSE;129 return kERROR; 130 130 } 131 131 -
trunk/MagicSoft/Mars/mhist/MHTriggerLvl0.h
r6977 r9153 21 21 22 22 Bool_t SetupFill(const MParList *pList); 23 Bool_tFill(const MParContainer *par, const Stat_t w=1);23 Int_t Fill(const MParContainer *par, const Stat_t w=1); 24 24 Bool_t Finalize(); 25 25 -
trunk/MagicSoft/Mars/mhist/MHWeather.cc
r8940 r9153 161 161 // MMuonSearchPar container. 162 162 // 163 Bool_t MHWeather::Fill(const MParContainer *par, const Stat_t w)163 Int_t MHWeather::Fill(const MParContainer *par, const Stat_t w) 164 164 { 165 165 const MTime *t = dynamic_cast<const MTime*>(par); -
trunk/MagicSoft/Mars/mhist/MHWeather.h
r8934 r9153 41 41 42 42 Bool_t SetupFill(const MParList *plist); 43 Bool_tFill(const MParContainer *par, const Stat_t w=1);43 Int_t Fill(const MParContainer *par, const Stat_t w=1); 44 44 45 45 // If this is needed be aware that it would be called twice in star -
trunk/MagicSoft/Mars/mhvstime/MHPixVsTime.cc
r8907 r9153 169 169 // Fill the histograms with data from a MPixVsTime-Container. 170 170 // 171 Bool_t MHPixVsTime::Fill(const MParContainer *par, const Stat_t w)171 Int_t MHPixVsTime::Fill(const MParContainer *par, const Stat_t w) 172 172 { 173 173 const MCamEvent *evt = par ? dynamic_cast<const MCamEvent*>(par) : fEvt; … … 175 175 { 176 176 *fLog << err << dbginf << "No MCamEvent found..." << endl; 177 return k FALSE;177 return kERROR; 178 178 } 179 179 … … 182 182 evt->GetPixelContent(val, fIndex, *fCam, fType); 183 183 if (!TMath::Finite(val)) 184 return k CONTINUE;184 return kTRUE; // Use kCONTINUE with extreme care! 185 185 186 186 Double_t t = 0; … … 196 196 evt->GetPixelContent(rms, fIndex, *fCam, fTypeErr); 197 197 if (!TMath::Finite(rms)) 198 return k CONTINUE;198 return kTRUE; // Use kCONTINUE with extreme care! 199 199 } 200 200 -
trunk/MagicSoft/Mars/mhvstime/MHPixVsTime.h
r6977 r9153 39 39 40 40 Bool_t SetupFill(const MParList *pList); 41 Bool_tFill(const MParContainer *par, const Stat_t w=1);41 Int_t Fill(const MParContainer *par, const Stat_t w=1); 42 42 43 43 public: -
trunk/MagicSoft/Mars/mhvstime/MHSectorVsTime.cc
r8281 r9153 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MHSectorVsTime.cc,v 1.1 3 2007-02-01 11:24:19tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MHSectorVsTime.cc,v 1.14 2008-11-11 11:42:16 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 214 214 // Fill the histograms with data from a MCamEvent 215 215 // 216 Bool_t MHSectorVsTime::Fill(const MParContainer *par, const Stat_t w)216 Int_t MHSectorVsTime::Fill(const MParContainer *par, const Stat_t w) 217 217 { 218 218 const MCamEvent *evt = par ? dynamic_cast<const MCamEvent*>(par) : fEvt; … … 220 220 { 221 221 *fLog << err << dbginf << "No MCamEvent found..." << endl; 222 return k FALSE;222 return kERROR; 223 223 } 224 224 -
trunk/MagicSoft/Mars/mhvstime/MHSectorVsTime.h
r8281 r9153 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MHSectorVsTime.h,v 1. 7 2007-02-01 11:24:19tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MHSectorVsTime.h,v 1.8 2008-11-11 11:42:16 tbretz Exp $ 3 3 \* ======================================================================== */ 4 4 #ifndef MARS_MHSectorVsTime … … 57 57 // MH 58 58 Bool_t SetupFill(const MParList *pList); 59 Bool_tFill(const MParContainer *par, const Stat_t w=1);59 Int_t Fill(const MParContainer *par, const Stat_t w=1); 60 60 Bool_t Finalize(); 61 61 -
trunk/MagicSoft/Mars/mhvstime/MHVsTime.cc
r8907 r9153 205 205 // Set the next data point. If the graph exceeds fMaxPts remove the first 206 206 // 207 Bool_t MHVsTime::Fill(const MParContainer *par, const Stat_t w)207 Int_t MHVsTime::Fill(const MParContainer *par, const Stat_t w) 208 208 { 209 209 Double_t t = 0; … … 219 219 { 220 220 *fLog << err << dbginf << "No MTime found..." << endl; 221 return k FALSE;221 return kERROR; 222 222 } 223 223 // If the time is not valid skip this entry -
trunk/MagicSoft/Mars/mhvstime/MHVsTime.h
r8478 r9153 65 65 66 66 Bool_t SetupFill(const MParList *pList); 67 Bool_tFill(const MParContainer *par, const Stat_t w=1);67 Int_t Fill(const MParContainer *par, const Stat_t w=1); 68 68 69 69 TString GetDataMember() const; -
trunk/MagicSoft/Mars/mimage/MHHillas.cc
r8996 r9153 246 246 // Be careful: Only call this with an object of type MHillas 247 247 // 248 Bool_t MHHillas::Fill(const MParContainer *par, const Stat_t w)248 Int_t MHHillas::Fill(const MParContainer *par, const Stat_t w) 249 249 { 250 250 if (!par) 251 251 { 252 252 *fLog << err << "MHHillas::Fill: Pointer (!=NULL) expected." << endl; 253 return k FALSE;253 return kERROR; 254 254 } 255 255 -
trunk/MagicSoft/Mars/mimage/MHHillas.h
r7841 r9153 39 39 40 40 Bool_t SetupFill(const MParList *pList); 41 Bool_tFill(const MParContainer *par, const Stat_t w=1);41 Int_t Fill(const MParContainer *par, const Stat_t w=1); 42 42 43 43 TH1 *GetHistByName(const TString name) const; -
trunk/MagicSoft/Mars/mimage/MHHillasExt.cc
r8677 r9153 178 178 // Be careful: Only call this with an object of type MHillas 179 179 // 180 Bool_t MHHillasExt::Fill(const MParContainer *par, const Stat_t w)180 Int_t MHHillasExt::Fill(const MParContainer *par, const Stat_t w) 181 181 { 182 182 const MHillasSrc *src = (MHillasSrc*)par; -
trunk/MagicSoft/Mars/mimage/MHHillasExt.h
r8657 r9153 37 37 38 38 Bool_t SetupFill(const MParList *pList); 39 Bool_tFill(const MParContainer *par, const Stat_t w=1);39 Int_t Fill(const MParContainer *par, const Stat_t w=1); 40 40 41 41 TH1 *GetHistByName(const TString name) const; -
trunk/MagicSoft/Mars/mimage/MHHillasSrc.cc
r8677 r9153 145 145 // Be careful: Only call this with an object of type MHillas 146 146 // 147 Bool_t MHHillasSrc::Fill(const MParContainer *par, const Stat_t w)147 Int_t MHHillasSrc::Fill(const MParContainer *par, const Stat_t w) 148 148 { 149 149 if (!par) 150 150 { 151 151 *fLog << err << "MHHillasSrc::Fill: Pointer (!=NULL) expected." << endl; 152 return k FALSE;152 return kERROR; 153 153 } 154 154 -
trunk/MagicSoft/Mars/mimage/MHHillasSrc.h
r6977 r9153 30 30 31 31 Bool_t SetupFill(const MParList *pList); 32 Bool_tFill(const MParContainer *par, const Stat_t w=1);32 Int_t Fill(const MParContainer *par, const Stat_t w=1); 33 33 34 34 TH1 *GetHistByName(const TString name) const; -
trunk/MagicSoft/Mars/mimage/MHImagePar.cc
r8677 r9153 163 163 // Fill the histograms with data from a MNewImagePar container. 164 164 // 165 Bool_t MHImagePar::Fill(const MParContainer *par, const Stat_t w)165 Int_t MHImagePar::Fill(const MParContainer *par, const Stat_t w) 166 166 { 167 167 if (!par) 168 168 { 169 169 *fLog << err << "MImagePar::Fill: Pointer (!=NULL) expected." << endl; 170 return k FALSE;170 return kERROR; 171 171 } 172 172 -
trunk/MagicSoft/Mars/mimage/MHImagePar.h
r6977 r9153 31 31 32 32 Bool_t SetupFill(const MParList *plist); 33 Bool_tFill(const MParContainer *par, const Stat_t w=1);33 Int_t Fill(const MParContainer *par, const Stat_t w=1); 34 34 35 35 TH1 *GetHistByName(const TString name) const; -
trunk/MagicSoft/Mars/mimage/MHNewImagePar.cc
r8677 r9153 224 224 // Fill the histograms with data from a MNewImagePar container. 225 225 // 226 Bool_t MHNewImagePar::Fill(const MParContainer *par, const Stat_t w)226 Int_t MHNewImagePar::Fill(const MParContainer *par, const Stat_t w) 227 227 { 228 228 if (!par) 229 229 { 230 230 *fLog << err << "MHNewImagePar::Fill: Pointer (!=NULL) expected." << endl; 231 return k FALSE;231 return kERROR; 232 232 } 233 233 -
trunk/MagicSoft/Mars/mimage/MHNewImagePar.h
r7538 r9153 35 35 36 36 Bool_t SetupFill(const MParList *plist); 37 Bool_tFill(const MParContainer *par, const Stat_t w=1);37 Int_t Fill(const MParContainer *par, const Stat_t w=1); 38 38 39 39 TH1 *GetHistByName(const TString name) const; -
trunk/MagicSoft/Mars/mimage/MHNewImagePar2.cc
r6869 r9153 118 118 // Fill the histograms with data from a MNewImagePar2 container. 119 119 // 120 Bool_t MHNewImagePar2::Fill(const MParContainer *par, const Stat_t w)120 Int_t MHNewImagePar2::Fill(const MParContainer *par, const Stat_t w) 121 121 { 122 122 const MNewImagePar2 *h = dynamic_cast<const MNewImagePar2*>(par); … … 124 124 { 125 125 *fLog << err << "MHNewImagePar2::Fill: Pointer (!=NULL) expected." << endl; 126 return k FALSE;126 return kERROR; 127 127 } 128 128 -
trunk/MagicSoft/Mars/mimage/MHNewImagePar2.h
r6869 r9153 24 24 25 25 Bool_t SetupFill(const MParList *plist); 26 Bool_tFill(const MParContainer *par, const Stat_t w=1);26 Int_t Fill(const MParContainer *par, const Stat_t w=1); 27 27 28 28 void SetMmScale(Bool_t mmscale=kTRUE); -
trunk/MagicSoft/Mars/mimage/MHVsSize.cc
r8659 r9153 240 240 // Be careful: Only call this with an object of type MHillas 241 241 // 242 Bool_t MHVsSize::Fill(const MParContainer *par, const Stat_t w)242 Int_t MHVsSize::Fill(const MParContainer *par, const Stat_t w) 243 243 { 244 244 const MHillasSrc *src = dynamic_cast<const MHillasSrc*>(par); … … 246 246 { 247 247 *fLog << err << "MHVsSize::Fill: Wrong argument... abort." << endl; 248 return k FALSE;248 return kERROR; 249 249 } 250 250 -
trunk/MagicSoft/Mars/mimage/MHVsSize.h
r6956 r9153 40 40 41 41 Bool_t SetupFill(const MParList *pList); 42 Bool_tFill(const MParContainer *par, const Stat_t w=1);42 Int_t Fill(const MParContainer *par, const Stat_t w=1); 43 43 44 44 void Draw(Option_t *opt=NULL); -
trunk/MagicSoft/Mars/mmuon/MHMuonPar.cc
r8713 r9153 170 170 // MMuonSearchPar container. 171 171 // 172 Bool_t MHMuonPar::Fill(const MParContainer *par, const Stat_t w)172 Int_t MHMuonPar::Fill(const MParContainer *par, const Stat_t w) 173 173 { 174 174 fHistRadius.Fill(fMm2Deg*fMuonSearchPar->GetRadius(), w); -
trunk/MagicSoft/Mars/mmuon/MHMuonPar.h
r7366 r9153 40 40 41 41 Bool_t SetupFill(const MParList *plist); 42 Bool_tFill(const MParContainer *par, const Stat_t w=1);42 Int_t Fill(const MParContainer *par, const Stat_t w=1); 43 43 44 44 const TH1F& GetHistRadius() const { return fHistRadius; } -
trunk/MagicSoft/Mars/mmuon/MHSingleMuon.cc
r8775 r9153 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MHSingleMuon.cc,v 1.1 7 2007-12-03 17:44:59tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MHSingleMuon.cc,v 1.18 2008-11-11 11:46:25 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 197 197 // MMuonSearchPar container. 198 198 // 199 Bool_t MHSingleMuon::Fill(const MParContainer *par, const Stat_t w)199 Int_t MHSingleMuon::Fill(const MParContainer *par, const Stat_t w) 200 200 { 201 201 fRelTimeMean = 0; -
trunk/MagicSoft/Mars/mmuon/MHSingleMuon.h
r8776 r9153 37 37 38 38 Bool_t SetupFill(const MParList *plist); 39 Bool_tFill(const MParContainer *par, const Stat_t w=1);39 Int_t Fill(const MParContainer *par, const Stat_t w=1); 40 40 41 41 Bool_t CalcPhi(Double_t, Double_t &, Double_t &) const; -
trunk/MagicSoft/Mars/mpedestal/MHPedestalCor.cc
r8573 r9153 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MHPedestalCor.cc,v 1. 3 2007-06-17 20:50:58tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MHPedestalCor.cc,v 1.4 2008-11-11 11:49:49 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 103 103 // Fill the histograms with data from a MCamEvent-Container. 104 104 // 105 Bool_t MHPedestalCor::Fill(const MParContainer *par, const Stat_t w)105 Int_t MHPedestalCor::Fill(const MParContainer *par, const Stat_t w) 106 106 { 107 107 const MPedestalSubtractedEvt *evt = dynamic_cast<const MPedestalSubtractedEvt*>(par); … … 109 109 { 110 110 *fLog << err << dbginf << "Got no MCamEvent as argument of Fill()..." << endl; 111 return k FALSE;111 return kERROR; 112 112 } 113 113 -
trunk/MagicSoft/Mars/mpedestal/MHPedestalCor.h
r8152 r9153 20 20 TProfile fProf; 21 21 22 Bool_t Fill(const MParContainer *par, const Stat_t w=1);22 Int_t Fill(const MParContainer *par, const Stat_t w=1); 23 23 24 24 public: -
trunk/MagicSoft/Mars/mpointing/MHPointing.cc
r8907 r9153 152 152 // MMuonSearchPar container. 153 153 // 154 Bool_t MHPointing::Fill(const MParContainer *par, const Stat_t w)154 Int_t MHPointing::Fill(const MParContainer *par, const Stat_t w) 155 155 { 156 156 const MTime *t = dynamic_cast<const MTime*>(par); … … 168 168 { 169 169 *fLog << err << "ERROR: fReportSG==NULL... abort." << endl; 170 return k FALSE;170 return kERROR; 171 171 } 172 172 … … 199 199 { 200 200 *fLog << err << "ERROR: fReportCosy==NULL... abort." << endl; 201 return k FALSE;201 return kERROR; 202 202 } 203 203 -
trunk/MagicSoft/Mars/mpointing/MHPointing.h
r7726 r9153 44 44 45 45 Bool_t SetupFill(const MParList *plist); 46 Bool_tFill(const MParContainer *par, const Stat_t w=1);46 Int_t Fill(const MParContainer *par, const Stat_t w=1); 47 47 48 48 void Draw(Option_t *opt=""); -
trunk/MagicSoft/Mars/mpointing/MHSrcPosCam.cc
r9000 r9153 135 135 // deleted. 136 136 // 137 Bool_t MHSrcPosCam::Fill(const MParContainer *par, const Stat_t w)137 Int_t MHSrcPosCam::Fill(const MParContainer *par, const Stat_t w) 138 138 { 139 139 const MSrcPosCam *cam = dynamic_cast<const MSrcPosCam*>(par); … … 141 141 { 142 142 *fLog << err << dbginf << "Got no MSrcPosCam as argument of Fill()..." << endl; 143 return k FALSE;143 return kERROR; 144 144 } 145 145 -
trunk/MagicSoft/Mars/mpointing/MHSrcPosCam.h
r9000 r9153 41 41 // MH 42 42 Bool_t SetupFill(const MParList *pl); 43 Bool_tFill(const MParContainer *par, const Stat_t w=1);43 Int_t Fill(const MParContainer *par, const Stat_t w=1); 44 44 45 45 // MHSrcPosCam -
trunk/MagicSoft/Mars/mranforest/MHRanForest.cc
r8907 r9153 111 111 // 112 112 // 113 Bool_t MHRanForest::Fill(const MParContainer *par, const Stat_t w)113 Int_t MHRanForest::Fill(const MParContainer *par, const Stat_t w) 114 114 { 115 115 fNumEvent++; -
trunk/MagicSoft/Mars/mranforest/MHRanForest.h
r2071 r9153 33 33 34 34 Bool_t SetupFill(const MParList *plist); 35 Bool_tFill(const MParContainer *par, const Stat_t w=1);35 Int_t Fill(const MParContainer *par, const Stat_t w=1); 36 36 Bool_t Finalize(); 37 37 -
trunk/MagicSoft/Mars/mranforest/MHRanForestGini.cc
r8907 r9153 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MHRanForestGini.cc,v 1. 8 2008-06-02 08:46:43tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MHRanForestGini.cc,v 1.9 2008-11-11 11:46:50 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 94 94 { 95 95 *fLog << err << dbginf << "MRanForest not found... aborting." << endl; 96 return k FALSE;96 return kERROR; 97 97 } 98 98 … … 107 107 // 108 108 // 109 Bool_t MHRanForestGini::Fill(const MParContainer *par, const Stat_t w)109 Int_t MHRanForestGini::Fill(const MParContainer *par, const Stat_t w) 110 110 { 111 111 MRanTree *t = fRanForest->GetCurTree(); -
trunk/MagicSoft/Mars/mranforest/MHRanForestGini.h
r7413 r9153 37 37 38 38 Bool_t SetupFill(const MParList *plist); 39 Bool_tFill(const MParContainer *par, const Stat_t w=1);39 Int_t Fill(const MParContainer *par, const Stat_t w=1); 40 40 Bool_t Finalize(); 41 41 -
trunk/MagicSoft/Mars/mreflector/MHReflector.cc
r8907 r9153 128 128 // 129 129 #include "MRflSinglePhoton.h" 130 Bool_t MHReflector::Fill(const MParContainer *par, const Stat_t weight)130 Int_t MHReflector::Fill(const MParContainer *par, const Stat_t weight) 131 131 { 132 132 const Double_t energy = fHeader->GetEnergy(); -
trunk/MagicSoft/Mars/mreflector/MHReflector.h
r8315 r9153 30 30 31 31 Bool_t SetupFill(const MParList *pList); 32 Bool_tFill(const MParContainer *par, const Stat_t weight=1);32 Int_t Fill(const MParContainer *par, const Stat_t weight=1); 33 33 Bool_t Finalize(); 34 34
Note:
See TracChangeset
for help on using the changeset viewer.