Changeset 3422 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
03/07/04 16:00:03 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mcalib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc

    r3418 r3422  
    435435      }
    436436
    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;
    439442
    440443      nvalid++;
  • trunk/MagicSoft/Mars/mcalib/MCalibrationChargePix.cc

    r3418 r3422  
    578578// 4) Pixel has a charge sigma bigger than its Pedestal RMS
    579579//
    580 Bool_t MCalibrationChargePix::CheckChargeValidity(MBadPixelsPix *bad)
     580void MCalibrationChargePix::CheckChargeValidity(MBadPixelsPix *bad)
    581581{
    582582 
     
    588588      *fLog << warn << "WARNING: Fitted Charge is smaller than "
    589589            << fChargeLimit << " Pedestal RMS in Pixel  " << fPixId << endl;
    590       return kFALSE;
     590      bad->SetCalcChargePedestal();
    591591    }
     592  else
     593    bad->SetNoCalcChargePedestal();
     594     
    592595 
    593596  if (GetMeanChargeErr() < fChargeErrLimit)
     
    595598      *fLog << warn << "WARNING: Error of Fitted Charge is smaller than "
    596599            << fChargeErrLimit << " in Pixel  " << fPixId << endl;
    597       return kFALSE;
     600      bad->SetNoCalcChargeErrValid();
    598601    }
     602  else
     603    bad->SetCalcChargeErrValid();
    599604     
    600605   if (GetMeanCharge() < fChargeRelErrLimit*GetMeanChargeErr())
     
    602607      *fLog << warn << "WARNING: Fitted Charge is smaller than "
    603608            << fChargeRelErrLimit << "* its error in Pixel  " << fPixId << endl;
    604       return kFALSE;
     609      bad->SetNoCalcChargeRelErrValid();
    605610    }
    606      
     611   else
     612      bad->SetCalcChargeRelErrValid();     
     613
    607614  if (GetSigmaCharge() < GetPedRms())
    608615    {
    609616        *fLog << warn << "WARNING: Sigma of Fitted Charge smaller than Pedestal RMS in Pixel  " << fPixId << endl;
    610         return kFALSE;
     617        bad->SetNoCalcChargeSigmaValid();
    611618    }
     619  else
     620    bad->SetCalcChargeSigmaValid();
    612621 
    613   SetChargeValid();
    614   return kTRUE;
    615622}
    616623
     
    620627// The mean arrival time is at least 1.0 slices from the used edge slices
    621628//
    622 Bool_t MCalibrationChargePix::CheckTimeValidity(MBadPixelsPix *bad)
     629void MCalibrationChargePix::CheckTimeValidity(MBadPixelsPix *bad)
    623630{
    624631
     
    629636    {
    630637        *fLog << warn << "WARNING: Mean ArrivalTime in first extraction bin of the Pixel " << fPixId << endl;
    631         SetMeanTimeInFirstBin();
    632         return kFALSE;
     638        bad->SetMeanTimeInFirstBin();
    633639    }
     640    else
     641      bad->SetNoMeanTimeInFirstBin();
    634642   
    635643    if ( fAbsTimeMean > upperedge-1.)
    636644    {
    637645        *fLog << warn << "WARNING: Mean ArrivalTime in last extraction bin of the Pixel " << fPixId << endl;
    638         SetMeanTimeInLastBin();
    639         return kFALSE;
     646        bad->SetMeanTimeInLastBin();
    640647    }
    641 
    642   return kTRUE;
     648    else
     649      bad->SetNoMeanTimeInLastBin();
     650
    643651}
    644652
  • trunk/MagicSoft/Mars/mcalib/MCalibrationChargePix.h

    r3418 r3422  
    298298  void  ApplyLoGainConversion();
    299299
    300   Bool_t CheckChargeValidity ( MBadPixelsPix *bad=NULL );
    301   Bool_t CheckTimeValidity   ( MBadPixelsPix *bad=NULL );
     300  void CheckChargeValidity ( MBadPixelsPix *bad=NULL );
     301  void CheckTimeValidity   ( MBadPixelsPix *bad=NULL );
    302302  Bool_t CalcReducedSigma();
    303303  Bool_t CalcFFactorMethod();
Note: See TracChangeset for help on using the changeset viewer.