Changeset 3319
- Timestamp:
- 02/26/04 05:54:34 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3317 r3319 6 6 7 7 2004/02/25: Markus Gaug 8 9 * mcalib/MHCalibrationChargeCam.cc 10 - display only valid pixels for the corr. values in GetPixelContent 11 8 12 9 13 * mcalib/MHCalibrationRelTimeCam.cc -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCam.cc
r3313 r3319 31 31 // 32 32 // 1) MCalibrationChargeCam initializes a TClonesArray whose elements are 33 // pointers to MCalibration Pix Containers33 // pointers to MCalibrationChargePix Containers 34 34 // 2) It initializes a pointer to an MCalibrationBlindPix container 35 35 // 3) It initializes a pointer to an MCalibrationPINDiode container … … 482 482 { 483 483 case 0: 484 if ((*this)[idx].IsExcluded() )484 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid()) 485 485 return kFALSE; 486 486 val = (*this)[idx].GetMeanCharge(); 487 487 break; 488 488 case 1: 489 if ((*this)[idx].IsExcluded() )489 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid()) 490 490 return kFALSE; 491 491 val = (*this)[idx].GetMeanChargeErr(); 492 492 break; 493 493 case 2: 494 if ((*this)[idx].IsExcluded() )494 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid()) 495 495 return kFALSE; 496 496 val = (*this)[idx].GetSigmaCharge(); 497 497 break; 498 498 case 3: 499 if ((*this)[idx].IsExcluded() )499 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid()) 500 500 return kFALSE; 501 501 val = (*this)[idx].GetSigmaChargeErr(); 502 502 break; 503 503 case 4: 504 if ((*this)[idx].IsExcluded() )504 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid()) 505 505 return kFALSE; 506 506 val = (*this)[idx].GetChargeProb(); 507 507 break; 508 508 case 5: 509 if ((*this)[idx].IsExcluded()) 510 return kFALSE; 509 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid()) 510 return kFALSE; 511 if ((*this)[idx].GetRSigmaCharge() == -1.) 512 return kFALSE; 511 513 val = (*this)[idx].GetRSigmaCharge(); 512 514 break; 513 515 case 6: 514 if ((*this)[idx].IsExcluded()) 515 return kFALSE; 516 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid()) 517 return kFALSE; 518 if ((*this)[idx].GetRSigmaCharge() == -1.) 519 return kFALSE; 516 520 val = (*this)[idx].GetRSigmaChargeErr(); 517 521 break; 518 522 case 7: 519 if ((*this)[idx].IsExcluded()) 520 return kFALSE; 523 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid()) 524 return kFALSE; 525 if ((*this)[idx].GetRSigmaCharge() == -1.) 526 return kFALSE; 521 527 val = (*this)[idx].GetRSigmaCharge() / (*this)[idx].GetMeanCharge(); 522 528 break; 523 529 case 8: 524 if ((*this)[idx].IsExcluded()) 525 return kFALSE; 530 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid()) 531 return kFALSE; 532 if ((*this)[idx].GetRSigmaCharge() == -1.) 533 return kFALSE; 526 534 // relative error RsigmaCharge square 527 535 val = (*this)[idx].GetRSigmaChargeErr()* (*this)[idx].GetRSigmaChargeErr() … … 536 544 break; 537 545 case 9: 538 if ((*this)[idx].IsExcluded() )546 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid() || !(*this)[idx].IsFFactorMethodValid()) 539 547 return kFALSE; 540 548 val = (*this)[idx].GetPheFFactorMethod(); 541 549 break; 542 550 case 10: 543 if ((*this)[idx].IsExcluded() )551 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid() || !(*this)[idx].IsFFactorMethodValid()) 544 552 return kFALSE; 545 553 val = (*this)[idx].GetPheFFactorMethodErr(); 546 554 break; 547 555 case 11: 548 if ((*this)[idx].IsExcluded() )556 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid() || !(*this)[idx].IsFFactorMethodValid()) 549 557 return kFALSE; 550 558 val = (*this)[idx].GetMeanConversionFFactorMethod(); 551 559 break; 552 560 case 12: 553 if ((*this)[idx].IsExcluded() )561 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid() || !(*this)[idx].IsFFactorMethodValid()) 554 562 return kFALSE; 555 563 val = (*this)[idx].GetConversionFFactorMethodErr(); 556 564 break; 557 565 case 13: 558 if ((*this)[idx].IsExcluded() )566 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid() || !(*this)[idx].IsFFactorMethodValid()) 559 567 return kFALSE; 560 568 val = (*this)[idx].GetTotalFFactorFFactorMethod(); 561 569 break; 562 570 case 14: 563 if ((*this)[idx].IsExcluded() )571 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid() || !(*this)[idx].IsFFactorMethodValid()) 564 572 return kFALSE; 565 573 val = (*this)[idx].GetTotalFFactorErrFFactorMethod(); 566 574 break; 567 575 case 15: 568 if ((*this)[idx].IsExcluded() )576 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid() || !(*this)[idx].IsBlindPixelMethodValid()) 569 577 return kFALSE; 570 578 val = fBlindPixel->GetMeanFluxInsidePlexiglass()*area; 571 579 break; 572 580 case 16: 573 if ((*this)[idx].IsExcluded() )581 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid() || !(*this)[idx].IsBlindPixelMethodValid()) 574 582 return kFALSE; 575 583 val = fBlindPixel->GetMeanFluxErrInsidePlexiglass()*area; 576 584 break; 577 585 case 17: 578 if ((*this)[idx].IsExcluded() )586 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid() || !(*this)[idx].IsBlindPixelMethodValid()) 579 587 return kFALSE; 580 588 val = (*this)[idx].GetMeanConversionBlindPixelMethod(); 581 589 break; 582 590 case 18: 583 if ((*this)[idx].IsExcluded() )591 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid() || !(*this)[idx].IsBlindPixelMethodValid()) 584 592 return kFALSE; 585 593 val = (*this)[idx].GetConversionBlindPixelMethodErr(); 586 594 break; 587 595 case 19: 588 if ((*this)[idx].IsExcluded() )596 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid() || !(*this)[idx].IsBlindPixelMethodValid()) 589 597 return kFALSE; 590 598 val = (*this)[idx].GetTotalFFactorBlindPixelMethod(); 591 599 break; 592 600 case 20: 593 if ((*this)[idx].IsExcluded() )601 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid() || !(*this)[idx].IsBlindPixelMethodValid()) 594 602 return kFALSE; 595 603 val = (*this)[idx].GetTotalFFactorErrBlindPixelMethod(); 596 604 break; 597 605 case 21: 598 if ((*this)[idx].IsExcluded() )606 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid() || !(*this)[idx].IsPINDiodeMethodValid()) 599 607 return kFALSE; 600 608 val = fPINDiode->GetMeanFluxOutsidePlexiglass()*area; 601 609 break; 602 610 case 22: 603 if ((*this)[idx].IsExcluded() )611 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid() || !(*this)[idx].IsPINDiodeMethodValid()) 604 612 return kFALSE; 605 613 val = fPINDiode->GetMeanFluxErrOutsidePlexiglass()*area; 606 614 break; 607 615 case 23: 608 if ((*this)[idx].IsExcluded() )616 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid() || !(*this)[idx].IsPINDiodeMethodValid()) 609 617 return kFALSE; 610 618 val = (*this)[idx].GetMeanConversionPINDiodeMethod(); 611 619 break; 612 620 case 24: 613 if ((*this)[idx].IsExcluded() )621 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid() || !(*this)[idx].IsPINDiodeMethodValid()) 614 622 return kFALSE; 615 623 val = (*this)[idx].GetConversionPINDiodeMethodErr(); 616 624 break; 617 625 case 25: 618 if ((*this)[idx].IsExcluded() )619 return kFALSE; 620 val = (*this)[idx].GetTotalFFactor BlindPixelMethod();626 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid() || !(*this)[idx].IsPINDiodeMethodValid()) 627 return kFALSE; 628 val = (*this)[idx].GetTotalFFactorPINDiodeMethod(); 621 629 break; 622 630 case 26: 623 if ((*this)[idx].IsExcluded() )624 return kFALSE; 625 val = (*this)[idx].GetTotalFFactorErr BlindPixelMethod();631 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid() || !(*this)[idx].IsPINDiodeMethodValid()) 632 return kFALSE; 633 val = (*this)[idx].GetTotalFFactorErrPINDiodeMethod(); 626 634 break; 627 635 case 27: … … 674 682 break; 675 683 case 34: 676 if ((*this)[idx].IsExcluded() )684 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid()) 677 685 return kFALSE; 678 686 if ((*this)[idx].IsHiGainSaturation()) … … 726 734 break; 727 735 case 42: 728 if ((*this)[idx].IsExcluded() )736 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid()) 729 737 return kFALSE; 730 738 val = (*this)[idx].GetAbsTimeMean(); 731 739 break; 732 740 case 43: 733 if ((*this)[idx].IsExcluded() )741 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsChargeValid()) 734 742 return kFALSE; 735 743 val = (*this)[idx].GetAbsTimeRms();
Note:
See TracChangeset
for help on using the changeset viewer.