Changeset 3422 for trunk/MagicSoft/Mars/mcalib
- Timestamp:
- 03/07/04 16:00:03 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mcalib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc
r3418 r3422 435 435 } 436 436 437 if (!pix.CheckChargeValidity(&bad) || !pix.CheckTimeValidity(&bad)) 438 continue; 437 pix.CheckChargeValidity(&bad); 438 pix.CheckTimeValidity(&bad); 439 440 if (!bad.IsCalibrationValid()) 441 continue; 439 442 440 443 nvalid++; -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargePix.cc
r3418 r3422 578 578 // 4) Pixel has a charge sigma bigger than its Pedestal RMS 579 579 // 580 Bool_tMCalibrationChargePix::CheckChargeValidity(MBadPixelsPix *bad)580 void MCalibrationChargePix::CheckChargeValidity(MBadPixelsPix *bad) 581 581 { 582 582 … … 588 588 *fLog << warn << "WARNING: Fitted Charge is smaller than " 589 589 << fChargeLimit << " Pedestal RMS in Pixel " << fPixId << endl; 590 return kFALSE;590 bad->SetCalcChargePedestal(); 591 591 } 592 else 593 bad->SetNoCalcChargePedestal(); 594 592 595 593 596 if (GetMeanChargeErr() < fChargeErrLimit) … … 595 598 *fLog << warn << "WARNING: Error of Fitted Charge is smaller than " 596 599 << fChargeErrLimit << " in Pixel " << fPixId << endl; 597 return kFALSE;600 bad->SetNoCalcChargeErrValid(); 598 601 } 602 else 603 bad->SetCalcChargeErrValid(); 599 604 600 605 if (GetMeanCharge() < fChargeRelErrLimit*GetMeanChargeErr()) … … 602 607 *fLog << warn << "WARNING: Fitted Charge is smaller than " 603 608 << fChargeRelErrLimit << "* its error in Pixel " << fPixId << endl; 604 return kFALSE;609 bad->SetNoCalcChargeRelErrValid(); 605 610 } 606 611 else 612 bad->SetCalcChargeRelErrValid(); 613 607 614 if (GetSigmaCharge() < GetPedRms()) 608 615 { 609 616 *fLog << warn << "WARNING: Sigma of Fitted Charge smaller than Pedestal RMS in Pixel " << fPixId << endl; 610 return kFALSE;617 bad->SetNoCalcChargeSigmaValid(); 611 618 } 619 else 620 bad->SetCalcChargeSigmaValid(); 612 621 613 SetChargeValid();614 return kTRUE;615 622 } 616 623 … … 620 627 // The mean arrival time is at least 1.0 slices from the used edge slices 621 628 // 622 Bool_tMCalibrationChargePix::CheckTimeValidity(MBadPixelsPix *bad)629 void MCalibrationChargePix::CheckTimeValidity(MBadPixelsPix *bad) 623 630 { 624 631 … … 629 636 { 630 637 *fLog << warn << "WARNING: Mean ArrivalTime in first extraction bin of the Pixel " << fPixId << endl; 631 SetMeanTimeInFirstBin(); 632 return kFALSE; 638 bad->SetMeanTimeInFirstBin(); 633 639 } 640 else 641 bad->SetNoMeanTimeInFirstBin(); 634 642 635 643 if ( fAbsTimeMean > upperedge-1.) 636 644 { 637 645 *fLog << warn << "WARNING: Mean ArrivalTime in last extraction bin of the Pixel " << fPixId << endl; 638 SetMeanTimeInLastBin(); 639 return kFALSE; 646 bad->SetMeanTimeInLastBin(); 640 647 } 641 642 return kTRUE; 648 else 649 bad->SetNoMeanTimeInLastBin(); 650 643 651 } 644 652 -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargePix.h
r3418 r3422 298 298 void ApplyLoGainConversion(); 299 299 300 Bool_tCheckChargeValidity ( MBadPixelsPix *bad=NULL );301 Bool_tCheckTimeValidity ( MBadPixelsPix *bad=NULL );300 void CheckChargeValidity ( MBadPixelsPix *bad=NULL ); 301 void CheckTimeValidity ( MBadPixelsPix *bad=NULL ); 302 302 Bool_t CalcReducedSigma(); 303 303 Bool_t CalcFFactorMethod();
Note:
See TracChangeset
for help on using the changeset viewer.