Changeset 4641 for trunk/MagicSoft/Mars/mbadpixels
- Timestamp:
- 08/17/04 09:50:03 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCam.cc
r4637 r4641 474 474 return (*this)[idx].GetInfo()[0]; 475 475 case 1: 476 if ((*this)[idx].IsUnsuitable(MBadPixelsPix::kUnsuitableRun)) 477 val = 1; 478 else 479 return kFALSE; 476 if (!(*this)[idx].IsUnsuitable(MBadPixelsPix::kUnsuitableRun)) 477 return kFALSE; 478 val = 1; 480 479 break; 481 480 case 2: 482 if ((*this)[idx].IsUnsuitable(MBadPixelsPix::kUnsuitableEvt)) 483 val = 1; 484 else 485 return kFALSE; 481 if (!(*this)[idx].IsUnsuitable(MBadPixelsPix::kUnsuitableEvt)) 482 return kFALSE; 483 val = 1; 486 484 break; 487 485 case 3: 488 if ((*this)[idx].IsUnsuitable(MBadPixelsPix::kUnreliableRun)) 489 val = 1; 490 else 491 return kFALSE; 486 if (!(*this)[idx].IsUnsuitable(MBadPixelsPix::kUnreliableRun)) 487 return kFALSE; 488 val = 1; 492 489 break; 493 490 case 4: 494 if ((*this)[idx].IsHiGainBad()) 495 val = 1; 496 else 497 return kFALSE; 491 if (!(*this)[idx].IsHiGainBad()) 492 return kFALSE; 493 val = 1; 498 494 break; 499 495 case 5: 500 if ((*this)[idx].IsLoGainBad()) 501 val = 1; 502 else 503 return kFALSE; 496 if (!(*this)[idx].IsLoGainBad()) 497 return kFALSE; 498 val = 1; 504 499 break; 505 500 case 6: … … 516 511 break; 517 512 case 8: 518 if ((*this)[idx].IsUncalibrated(MBadPixelsPix::kHiGainNotFitted)) 519 val = 1; 520 else 521 return kFALSE; 513 if (!(*this)[idx].IsUncalibrated(MBadPixelsPix::kHiGainNotFitted)) 514 return kFALSE; 515 val = 1; 522 516 break; 523 517 case 9: 524 if ((*this)[idx].IsUncalibrated(MBadPixelsPix::kLoGainNotFitted)) 525 val = 1; 526 else 527 return kFALSE; 518 if (!(*this)[idx].IsUncalibrated(MBadPixelsPix::kLoGainNotFitted)) 519 return kFALSE; 520 val = 1; 528 521 break; 529 522 case 10: 530 if ((*this)[idx].IsUncalibrated(MBadPixelsPix::kHiGainOscillating)) 531 val = 1; 532 else 533 return kFALSE; 523 if (!(*this)[idx].IsUncalibrated(MBadPixelsPix::kHiGainOscillating)) 524 return kFALSE; 525 val = 1; 534 526 break; 535 527 case 11: 536 if ((*this)[idx].IsUncalibrated(MBadPixelsPix::kLoGainOscillating)) 537 val = 1; 538 else 539 return kFALSE; 528 if (!(*this)[idx].IsUncalibrated(MBadPixelsPix::kLoGainOscillating)) 529 return kFALSE; 530 val = 1; 540 531 break; 541 532 case 12: 542 if ((*this)[idx].IsUncalibrated(MBadPixelsPix::kLoGainSaturation )) 543 val = 1; 544 else 545 return kFALSE; 533 if (!(*this)[idx].IsUncalibrated(MBadPixelsPix::kLoGainSaturation )) 534 return kFALSE; 535 val = 1; 546 536 break; 547 537 case 13: 548 if ((*this)[idx].IsUncalibrated(MBadPixelsPix::kChargeIsPedestal )) 549 val = 1; 550 else 551 return kFALSE; 538 if (!(*this)[idx].IsUncalibrated(MBadPixelsPix::kChargeIsPedestal )) 539 return kFALSE; 540 val = 1; 552 541 break; 553 542 case 14: 554 if ((*this)[idx].IsUncalibrated(MBadPixelsPix::kChargeErrNotValid)) 555 val = 1; 556 else 557 return kFALSE; 543 if (!(*this)[idx].IsUncalibrated(MBadPixelsPix::kChargeErrNotValid)) 544 return kFALSE; 545 val = 1; 558 546 break; 559 547 case 15: 560 if ((*this)[idx].IsUncalibrated(MBadPixelsPix::kChargeRelErrNotValid)) 561 val = 1; 562 else 563 return kFALSE; 548 if (!(*this)[idx].IsUncalibrated(MBadPixelsPix::kChargeRelErrNotValid)) 549 return kFALSE; 550 val = 1; 564 551 break; 565 552 case 16: 566 if ((*this)[idx].IsUncalibrated(MBadPixelsPix::kChargeSigmaNotValid )) 567 val = 1; 568 else 569 return kFALSE; 553 if (!(*this)[idx].IsUncalibrated(MBadPixelsPix::kChargeSigmaNotValid )) 554 return kFALSE; 555 val = 1; 570 556 break; 571 557 case 17: 572 if ((*this)[idx].IsUncalibrated(MBadPixelsPix::kMeanTimeInFirstBin )) 573 val = 1; 574 else 575 return kFALSE; 558 if (!(*this)[idx].IsUncalibrated(MBadPixelsPix::kMeanTimeInFirstBin )) 559 return kFALSE; 560 val = 1; 576 561 break; 577 562 case 18: 578 if ((*this)[idx].IsUncalibrated(MBadPixelsPix::kMeanTimeInLast2Bins )) 579 val = 1; 580 else 581 return kFALSE; 563 if (!(*this)[idx].IsUncalibrated(MBadPixelsPix::kMeanTimeInLast2Bins )) 564 return kFALSE; 565 val = 1; 582 566 break; 583 567 case 19: 584 if ((*this)[idx].IsUncalibrated(MBadPixelsPix::kDeviatingNumPhes )) 585 val = 1; 586 else 587 return kFALSE; 568 if (!(*this)[idx].IsUncalibrated(MBadPixelsPix::kDeviatingNumPhes )) 569 return kFALSE; 570 val = 1; 588 571 break; 589 572 case 20: 590 if ((*this)[idx].IsUncalibrated(MBadPixelsPix::kRelTimeNotFitted )) 591 val = 1; 592 else 593 return kFALSE; 573 if (!(*this)[idx].IsUncalibrated(MBadPixelsPix::kRelTimeNotFitted )) 574 return kFALSE; 575 val = 1; 594 576 break; 595 577 case 21: 596 if ((*this)[idx].IsUncalibrated(MBadPixelsPix::kRelTimeOscillating)) 597 val = 1; 598 else 599 return kFALSE; 578 if (!(*this)[idx].IsUncalibrated(MBadPixelsPix::kRelTimeOscillating)) 579 return kFALSE; 580 val = 1; 600 581 break; 601 582 default:
Note:
See TracChangeset
for help on using the changeset viewer.