Changeset 8019 for trunk/MagicSoft/Mars/mhcalib
- Timestamp:
- 10/08/06 14:03:51 (18 years ago)
- Location:
- trunk/MagicSoft/Mars/mhcalib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargeBlindPix.cc
r5137 r8019 666 666 // 4) at least fNumSinglePheLimit events are in the single Photo-electron peak 667 667 // 668 if ( TMath::IsNaN(fLambda) 669 || TMath::IsNaN(fLambdaErr) 670 || TMath::IsNaN(fProb) 671 || TMath::IsNaN(fMu0) 672 || TMath::IsNaN(fMu0Err) 673 || TMath::IsNaN(fMu1) 674 || TMath::IsNaN(fMu1Err) 675 || TMath::IsNaN(fSigma0) 676 || TMath::IsNaN(fSigma0Err) 677 || TMath::IsNaN(fSigma1) 678 || TMath::IsNaN(fSigma1Err) 679 || fNDF < fNDFLimit 680 || fProb < fProbLimit ) 668 // !Finitite means either infinite or not-a-number 669 if ( !TMath::Finite(fLambda) 670 || !TMath::Finite(fLambdaErr) 671 || !TMath::Finite(fProb) 672 || !TMath::Finite(fMu0) 673 || !TMath::Finite(fMu0Err) 674 || !TMath::Finite(fMu1) 675 || !TMath::Finite(fMu1Err) 676 || !TMath::Finite(fSigma0) 677 || !TMath::Finite(fSigma0Err) 678 || !TMath::Finite(fSigma1) 679 || !TMath::Finite(fSigma1Err) 680 || fNDF < GetNDFLimit() 681 || fProb < GetProbLimit() ) 681 682 return kFALSE; 682 683 -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationPix.cc
r5688 r8019 159 159 const Double_t MHCalibrationPix::GetPickup() const 160 160 { 161 162 if ((fMean == 0.) && (fSigma == 0.)) 161 if (!IsValid()) 163 162 return -1.; 164 163 … … 196 195 return kTRUE; 197 196 198 if ( (fMean == 0.) && (fSigma == 0.))197 if (!IsValid()) 199 198 return FitGaus(); 200 199 … … 202 201 // Get new fitting ranges 203 202 // 204 Axis_t rmin = fMean - fBlackoutLimit * fSigma;205 Axis_t rmax = fMean + fPickupLimit * fSigma;203 Axis_t rmin = GetMean() - fBlackoutLimit * GetSigma(); 204 Axis_t rmax = GetMean() + fPickupLimit * GetSigma(); 206 205 207 206 Axis_t hmin = fHGausHist.GetBinCenter(fHGausHist.GetXaxis()->GetFirst()); … … 229 228 || TMath::IsNaN ( fSigma ) 230 229 || TMath::IsNaN ( fSigmaErr ) 231 || fFGausFit->GetNDF() < fNDFLimit232 || fProb < fProbLimit)230 || fFGausFit->GetNDF() < GetNDFLimit() 231 || fProb < GetProbLimit() ) 233 232 return kFALSE; 234 233
Note:
See TracChangeset
for help on using the changeset viewer.