Changeset 3007 for trunk/MagicSoft/Mars/mcalib/MCalibrationCam.cc
- Timestamp:
- 02/02/04 22:52:53 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrationCam.cc
r2956 r3007 59 59 60 60 using namespace std; 61 62 const Int_t MCalibrationCam::gkBlindPixelId = 559; 63 const Int_t MCalibrationCam::gkPINDiodeId = 9999; 64 const Float_t MCalibrationCam::gkTimeSliceWidth = 3.3; 65 61 66 // -------------------------------------------------------------------------- 62 67 // … … 72 77 : fOffsets(NULL), 73 78 fSlopes(NULL), 74 fOffvsSlope(NULL), 75 fBlindPixelId(559), 76 fPINDiodeId(9999) 79 fOffvsSlope(NULL) 77 80 { 78 81 fName = name ? name : "MCalibrationCam"; … … 261 264 { 262 265 263 if (pix->Is FitValid() && !pix->IsExcluded())266 if (pix->IsChargeFitValid() && !pix->IsExcluded()) 264 267 { 265 268 … … 287 290 { 288 291 289 if (!pix->Is FitValid() && !pix->IsExcluded())292 if (!pix->IsChargeFitValid() && !pix->IsExcluded()) 290 293 { 291 294 … … 388 391 return kFALSE; 389 392 390 if ( (!(*this)[idx].Is FitValid()) || (*this)[idx].IsExcluded())391 return kFALSE; 392 393 if (idx == fBlindPixelId)394 return kFALSE; 395 396 if (idx == fPINDiodeId)393 if ( (!(*this)[idx].IsChargeFitValid()) || (*this)[idx].IsExcluded()) 394 return kFALSE; 395 396 if (idx == gkBlindPixelId) 397 return kFALSE; 398 399 if (idx == gkPINDiodeId) 397 400 return kFALSE; 398 401 … … 415 418 break; 416 419 case 5: 417 val = (*this)[idx].GetTime(); 420 if (!(*this)[idx].IsTimeFitValid()) 421 return kFALSE; 422 val = (*this)[idx].GetTime() * gkTimeSliceWidth; 418 423 break; 419 424 case 6: 420 val = (*this)[idx].GetSigmaTime(); 425 if (!(*this)[idx].IsTimeFitValid()) 426 return kFALSE; 427 val = (*this)[idx].GetSigmaTime() * gkTimeSliceWidth; 421 428 break; 422 429 case 7: 423 val = (*this)[idx].GetTimeChiSquare(); 430 if (!(*this)[idx].IsTimeFitValid()) 431 return kFALSE; 432 val = (*this)[idx].GetTimeProb(); 424 433 break; 425 434 case 8: … … 550 559 { 551 560 552 if (!fPINDiode->Is FitValid())561 if (!fPINDiode->IsChargeFitValid()) 553 562 return kFALSE; 554 563
Note:
See TracChangeset
for help on using the changeset viewer.