- Timestamp:
- 02/09/04 08:55:54 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrationCam.cc
r3059 r3063 381 381 return kFALSE; 382 382 383 Float_t arearatio = cam.GetPixRatio(idx); 384 385 if (arearatio == 0) 386 return kFALSE; 387 383 388 switch (type) 384 389 { … … 470 475 if ((*this)[idx].IsExcluded()) 471 476 return kFALSE; 472 if (cam[idx].IsInOuterRing()) 477 if (arearatio == 1.) 478 val = GetMeanPhotInsidePlexiglass(); 479 else 473 480 val = GetMeanPhotInsidePlexiglass()*gkCalibrationOutervsInnerPixelArea; 474 else475 val = GetMeanPhotInsidePlexiglass();476 481 break; 477 482 case 16: 478 483 if ((*this)[idx].IsExcluded()) 479 484 return kFALSE; 480 if (cam[idx].IsInOuterRing()) 485 if (arearatio == 1.) 486 val = (double)fMeanPhotInsidePlexiglass; 487 else 481 488 val = (double)fMeanPhotInsidePlexiglass*gkCalibrationOutervsInnerPixelArea; 482 else483 val = (double)fMeanPhotInsidePlexiglass;484 489 break; 485 490 case 17: 486 491 if ((*this)[idx].IsExcluded()) 487 492 return kFALSE; 488 if (cam[idx].IsInOuterRing()) 493 if (arearatio == 1.) 494 val = (*this)[idx].GetMeanConversionBlindPixelMethod(); 495 else 489 496 val = (*this)[idx].GetMeanConversionBlindPixelMethod()*gkCalibrationOutervsInnerPixelArea; 497 break; 498 case 18: 499 if ((*this)[idx].IsExcluded()) 500 return kFALSE; 501 if (arearatio == 1.) 502 val = (*this)[idx].GetErrorConversionBlindPixelMethod(); 490 503 else 491 val = (*this)[idx].GetMeanConversionBlindPixelMethod();492 break;493 case 18:494 if ((*this)[idx].IsExcluded())495 return kFALSE;496 if (cam[idx].IsInOuterRing())497 504 { 498 505 val = (*this)[idx].GetErrorConversionBlindPixelMethod()*(*this)[idx].GetErrorConversionBlindPixelMethod() 499 506 * gkCalibrationOutervsInnerPixelArea * gkCalibrationOutervsInnerPixelArea; 500 507 val += gkCalibrationOutervsInnerPixelAreaError * gkCalibrationOutervsInnerPixelAreaError 501 508 * (*this)[idx].GetMeanConversionBlindPixelMethod() *(*this)[idx].GetMeanConversionBlindPixelMethod(); 502 509 val = TMath::Sqrt(val); 503 510 } 511 break; 512 case 19: 513 if ((*this)[idx].IsExcluded()) 514 return kFALSE; 515 val = (*this)[idx].GetTotalFFactorBlindPixelMethod(); 516 break; 517 case 20: 518 if ((*this)[idx].IsExcluded()) 519 return kFALSE; 520 val = (*this)[idx].GetTotalFFactorErrorBlindPixelMethod(); 521 break; 522 case 21: 523 if ((*this)[idx].IsExcluded()) 524 return kFALSE; 525 if (arearatio == 1.) 526 val = GetMeanPhotOutsidePlexiglass(); 527 else 528 val = GetMeanPhotOutsidePlexiglass()*gkCalibrationOutervsInnerPixelArea; 529 break; 530 case 22: 531 if ((*this)[idx].IsExcluded()) 532 return kFALSE; 533 if (arearatio == 1.) 534 val = (double)fMeanPhotOutsidePlexiglass; 535 else 536 val = (double)fMeanPhotOutsidePlexiglass*gkCalibrationOutervsInnerPixelArea; 537 break; 538 case 23: 539 if ((*this)[idx].IsExcluded()) 540 return kFALSE; 541 if (arearatio == 1.) 542 val = (*this)[idx].GetMeanConversionPINDiodeMethod(); 504 543 else 505 val = (*this)[idx].GetErrorConversionBlindPixelMethod();506 break;507 case 19:508 if ((*this)[idx].IsExcluded())509 return kFALSE;510 val = (*this)[idx].GetTotalFFactorBlindPixelMethod();511 break;512 case 20:513 if ((*this)[idx].IsExcluded())514 return kFALSE;515 val = (*this)[idx].GetTotalFFactorErrorBlindPixelMethod();516 break;517 case 21:518 if ((*this)[idx].IsExcluded())519 return kFALSE;520 if (cam[idx].IsInOuterRing())521 val = GetMeanPhotOutsidePlexiglass()*gkCalibrationOutervsInnerPixelArea;522 else523 val = GetMeanPhotOutsidePlexiglass();524 break;525 case 22:526 if ((*this)[idx].IsExcluded())527 return kFALSE;528 if (cam[idx].IsInOuterRing())529 val = (double)fMeanPhotOutsidePlexiglass*gkCalibrationOutervsInnerPixelArea;530 else531 val = (double)fMeanPhotOutsidePlexiglass;532 break;533 case 23:534 if ((*this)[idx].IsExcluded())535 return kFALSE;536 if (cam[idx].IsInOuterRing())537 544 val = (*this)[idx].GetMeanConversionPINDiodeMethod()*gkCalibrationOutervsInnerPixelArea; 545 break; 546 case 24: 547 if ((*this)[idx].IsExcluded()) 548 return kFALSE; 549 if (arearatio == 1.) 550 val = (*this)[idx].GetErrorConversionPINDiodeMethod(); 538 551 else 539 val = (*this)[idx].GetMeanConversionPINDiodeMethod();540 break;541 case 24:542 if ((*this)[idx].IsExcluded())543 return kFALSE;544 if (cam[idx].IsInOuterRing())545 552 { 546 553 val = (*this)[idx].GetErrorConversionPINDiodeMethod()*(*this)[idx].GetErrorConversionPINDiodeMethod() … … 550 557 val = TMath::Sqrt(val); 551 558 } 552 else553 val = (*this)[idx].GetErrorConversionPINDiodeMethod();554 559 break; 555 560 case 25:
Note:
See TracChangeset
for help on using the changeset viewer.