Changeset 2956 for trunk/MagicSoft/Mars/mcalib/MCalibrationCam.cc
- Timestamp:
- 01/29/04 15:56:15 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrationCam.cc
r2943 r2956 72 72 : fOffsets(NULL), 73 73 fSlopes(NULL), 74 fOffvsSlope(NULL) 74 fOffvsSlope(NULL), 75 fBlindPixelId(559), 76 fPINDiodeId(9999) 75 77 { 76 78 fName = name ? name : "MCalibrationCam"; … … 181 183 fPINDiode->Clear(); 182 184 183 fNumPhotInsidePlexiglassAvailable = kFALSE;184 185 fMeanPhotInsidePlexiglass = -1.; 185 186 fMeanPhotErrInsidePlexiglass = -1.; 186 fNumPhotOutsidePlexiglassAvailable = kFALSE;187 187 fMeanPhotOutsidePlexiglass = -1.; 188 188 fMeanPhotErrOutsidePlexiglass = -1.; 189 189 190 190 fNumExcludedPixels = 0; 191 192 CLRBIT(fFlags,kBlindPixelMethodValid); 193 CLRBIT(fFlags,kPINDiodeMethodValid); 194 CLRBIT(fFlags,kNumPhotInsidePlexiglassAvailable); 195 CLRBIT(fFlags,kNumPhotOutsidePlexiglassAvailable); 191 196 192 197 return; … … 223 228 return TESTBIT(fFlags,kPINDiodeMethodValid); 224 229 } 230 231 232 Bool_t MCalibrationCam::IsNumPhotInsidePlexiglassAvailable() const 233 { 234 return TESTBIT(fFlags,kNumPhotInsidePlexiglassAvailable); 235 } 236 237 Bool_t MCalibrationCam::IsNumPhotOutsidePlexiglassAvailable() const 238 { 239 return TESTBIT(fFlags,kNumPhotOutsidePlexiglassAvailable); 240 } 241 225 242 226 243 … … 374 391 return kFALSE; 375 392 376 if (idx == gkCalibrationBlindPixelId) 393 if (idx == fBlindPixelId) 394 return kFALSE; 395 396 if (idx == fPINDiodeId) 377 397 return kFALSE; 378 398 … … 501 521 } 502 522 503 fNumPhotInsidePlexiglassAvailable = kTRUE;523 SETBIT(fFlags,kNumPhotInsidePlexiglassAvailable); 504 524 505 525 *fLog << inf << endl; … … 557 577 } 558 578 559 fNumPhotOutsidePlexiglassAvailable = kTRUE;579 SETBIT(fFlags,kNumPhotOutsidePlexiglassAvailable); 560 580 561 581 *fLog << inf << endl; … … 583 603 return kFALSE; 584 604 585 if (! fNumPhotInsidePlexiglassAvailable)605 if (!IsNumPhotInsidePlexiglassAvailable()) 586 606 if (!CalcNumPhotInsidePlexiglass()) 587 607 return kFALSE; … … 627 647 if (ipx < 0 || !IsPixelFitted(ipx)) 628 648 return kFALSE; 649 650 if (!IsNumPhotOutsidePlexiglassAvailable()) 651 if (!CalcNumPhotOutsidePlexiglass()) 652 return kFALSE; 653 654 mean = (*this)[ipx].GetMeanConversionPINDiodeMethod(); 655 err = (*this)[ipx].GetErrorConversionPINDiodeMethod(); 656 sigma = (*this)[ipx].GetSigmaConversionPINDiodeMethod(); 629 657 630 658 return kFALSE;
Note:
See TracChangeset
for help on using the changeset viewer.