Changeset 3056 for trunk/MagicSoft/Mars/mcalib/MCalibrationPINDiode.cc
- Timestamp:
- 02/08/04 20:52:18 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrationPINDiode.cc
r3007 r3056 88 88 fPed = -1.; 89 89 fPedRms = -1.; 90 fTime = -1.;91 fSigmaTime = -1.;92 fTimeChiSquare = -1.;93 94 90 } 95 91 … … 271 267 } 272 268 273 274 // --------------------------------------------------------------------------275 //276 // 1) Fit the arrival times277 // 2) Retrieve the results278 // 3) Note that because of the low number of bins, the NDf is sometimes 0, so279 // Root does not give a reasonable Probability, the Chisquare is more significant280 //281 Bool_t MCalibrationPINDiode::FitTime()282 {283 284 if(!fHist->FitTime())285 {286 *fLog << warn << "WARNING: Could not fit Hi Gain times of PIN Diode" << endl;287 fHist->PrintTimeFitResult();288 return kFALSE;289 }290 291 fTime = fHist->GetRelTimeMean();292 fSigmaTime = fHist->GetRelTimeSigma();293 fTimeProb = fHist->GetRelTimeProb();294 295 if (CheckTimeFitValidity())296 SETBIT(fFlags,kTimeFitValid);297 else298 CLRBIT(fFlags,kTimeFitValid);299 300 return kTRUE;301 }302 303 269 // 304 270 // The check returns kTRUE if:
Note:
See TracChangeset
for help on using the changeset viewer.