Changeset 8020 for trunk/MagicSoft/Mars/mhcalib
- Timestamp:
- 10/08/06 14:09:01 (18 years ago)
- Location:
- trunk/MagicSoft/Mars/mhcalib
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhcalib/MHCalibrationPix.cc
r8019 r8020 223 223 // 3) The Probability is greater than fProbLimit (default: fgProbLimit) 224 224 // 225 if ( TMath::IsNaN ( fMean )226 || TMath::IsNaN( fMeanErr )227 || TMath::IsNaN ( fProb )228 || TMath::IsNaN( fSigma )229 || TMath::IsNaN ( fSigmaErr )225 if ( !TMath::Finite( fMean ) 226 || !TMath::Finite( fMeanErr ) 227 || !TMath::Finite( fProb ) 228 || !TMath::Finite( fSigma ) 229 || !TMath::Finite( fSigmaErr ) 230 230 || fFGausFit->GetNDF() < GetNDFLimit() 231 231 || fProb < GetProbLimit() ) -
trunk/MagicSoft/Mars/mhcalib/MHGausEvents.cc
r8013 r8020 129 129 fHPowerProbability(NULL), 130 130 fPowerSpectrum(NULL), 131 fF GausFit(NULL), fFExpFit(NULL),131 fFExpFit(NULL), 132 132 fFirst(0.), 133 133 fGraphEvents(NULL), fGraphPowerSpectrum(NULL), 134 fLast(100.), fNbins(100) 134 fLast(100.), fNbins(100), fFGausFit(NULL) 135 135 { 136 136 … … 762 762 // 4) The Probability is greater than fProbLimit (default: fgProbLimit) 763 763 // 764 if ( TMath::IsNaN(fMean) || !TMath::Finite(fMean) 765 || TMath::IsNaN(fMeanErr) || !TMath::Finite(fMeanErr) 766 || TMath::IsNaN(fProb) || !TMath::Finite(fProb) 767 || TMath::IsNaN(fSigma) || !TMath::Finite(fSigma) 768 || TMath::IsNaN(fSigmaErr) || !TMath::Finite(fSigmaErr) 764 // !Finitite means either infinite or not-a-number 765 if ( !TMath::Finite(fMean) 766 || !TMath::Finite(fMeanErr) 767 || !TMath::Finite(fProb) 768 || !TMath::Finite(fSigma) 769 || !TMath::Finite(fSigmaErr) 769 770 || fFGausFit->GetNDF() < fNDFLimit 770 771 || fProb < fProbLimit ) -
trunk/MagicSoft/Mars/mhcalib/MHGausEvents.h
r7189 r8020 35 35 Float_t *CreatePSDXaxis (Int_t n); // Create an x-axis for the PSD TGraphs 36 36 37 pr otected:37 private: 38 38 39 39 Int_t fBinsAfterStripping; // Bins for the Gauss Histogram after stripping off the zeros at both ends … … 52 52 53 53 MArrayF fEvents; // Array which holds the entries of GausHist 54 TF1 *fFGausFit; // Gauss fit for fHGausHist55 54 TF1 *fFExpFit; // Exponential fit for FHPowerProbability 56 55 Axis_t fFirst; // Lower histogram edge for fHGausHist (used by InitBins()) 57 56 TGraph *fGraphEvents; //! TGraph to display the event array 58 57 TGraph *fGraphPowerSpectrum; //! TGraph to display the power spectrum array 58 Axis_t fLast; // Upper histogram edge for fHGausHist (used by InitBins()) 59 Int_t fNbins; // Number histogram bins for fHGausHist (used by InitBins()) 60 Int_t fNDFLimit; // NDF limit for judgement if fit is OK 61 Float_t fProbLimit; // Probability limit for judgement if fit is OK 62 63 protected: 64 TF1 *fFGausFit; // Gauss fit for fHGausHist 59 65 TH1F fHGausHist; // Histogram to hold the Gaussian distribution 60 Axis_t fLast; // Upper histogram edge for fHGausHist (used by InitBins()) 66 61 67 Double_t fMean; // Mean of the Gauss fit 62 68 Double_t fMeanErr; // Error of the mean of the Gauss fit 63 Int_t fNbins; // Number histogram bins for fHGausHist (used by InitBins())64 Int_t fNDFLimit; // NDF limit for judgement if fit is OK65 69 Double_t fSigma; // Sigma of the Gauss fit 66 70 Double_t fSigmaErr; // Error of the sigma of the Gauss fit 67 71 Double_t fProb; // Probability of the Gauss fit 68 Float_t fProbLimit; // Probability limit for judgement if fit is OK69 72 70 73 // Setters … … 137 140 const Double_t GetSigmaErr() const { return fSigmaErr; } 138 141 const Double_t GetSlope() const { return ( fFExpFit ? fFExpFit->GetParameter(1) : 0.); } 142 const Int_t GetNDFLimit() const { return fNDFLimit; } 143 const Float_t GetProbLimit() const { return fProbLimit; } 139 144 145 const Bool_t IsValid() const { return fMean!=0 || fSigma!=0; } 140 146 const Bool_t IsExcluded() const { return TESTBIT(fFlags,kExcluded); } 141 147 const Bool_t IsExpFitOK() const { return TESTBIT(fFlags,kExpFitOK); } -
trunk/MagicSoft/Mars/mhcalib/MHPedestalPix.cc
r6329 r8020 136 136 // 3) The Probability is greater than fProbLimit (default: fgProbLimit) 137 137 // 138 if ( TMath::IsNaN(GetMean()) 139 || TMath::IsNaN(GetMeanErr()) 140 || TMath::IsNaN(GetProb()) 141 || TMath::IsNaN(GetSigma()) 142 || TMath::IsNaN(GetSigmaErr()) 143 || fProb < fProbLimit ) 138 // !Finitite means either infinite or not-a-number 139 if ( !TMath::Finite(GetMean()) 140 || !TMath::Finite(GetMeanErr()) 141 || !TMath::Finite(GetProb()) 142 || !TMath::Finite(GetSigma()) 143 || !TMath::Finite(GetSigmaErr()) 144 || fProb < GetProbLimit()) 144 145 return kFALSE; 145 146 … … 222 223 // 3) The Probability is greater than fProbLimit (default: fgProbLimit) 223 224 // 224 if ( TMath::IsNaN(GetMean()) 225 || TMath::IsNaN(GetMeanErr()) 226 || TMath::IsNaN(GetProb()) 227 || TMath::IsNaN(GetSigma()) 228 || TMath::IsNaN(GetSigmaErr()) 229 || fProb < fProbLimit ) 225 // !Finitite means either infinite or not-a-number 226 if ( !TMath::Finite(GetMean()) 227 || !TMath::Finite(GetMeanErr()) 228 || !TMath::Finite(GetProb()) 229 || !TMath::Finite(GetSigma()) 230 || !TMath::Finite(GetSigmaErr()) 231 || fProb < GetProbLimit() ) 230 232 return kFALSE; 231 233
Note:
See TracChangeset
for help on using the changeset viewer.