Ignore:
Timestamp:
08/16/04 18:20:35 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mbadpixels
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCam.cc

    r4342 r4637  
    446446// 4: MBadPixelsPix::IsHiGainBad()
    447447// 5: MBadPixelsPix::IsLoGainBad()
     448// 6: MBadPixelsPix::GetUnsuitableCalibration()
     449// 7: MBadPixelsPix::GetUnreliableCalibration()
    448450// 8: MBadPixelsPix::IsUncalibrated(MBadPixelsPix::kHiGainNotFitted)
    449451// 9: MBadPixelsPix::IsUncalibrated(MBadPixelsPix::kLoGainNotFitted)
     
    501503        return kFALSE;
    502504      break;
     505    case 6:
     506      if  ((*this)[idx].GetUnsuitableCalibration())
     507        val = (*this)[idx].GetUnsuitableCalibration();
     508      else
     509        return kFALSE;
     510      break;
     511    case 7:
     512      if  ((*this)[idx].GetUnreliableCalibration())
     513        val = (*this)[idx].GetUnreliableCalibration();
     514      else
     515        return kFALSE;
     516      break;
    503517    case 8:
    504518      if  ((*this)[idx].IsUncalibrated(MBadPixelsPix::kHiGainNotFitted))
  • trunk/MagicSoft/Mars/mbadpixels/MBadPixelsPix.cc

    r4542 r4637  
    5252// BIT(5 ): kLoGainOscillating   :  The Low  Gain signals fourier transform showed abnormal behavior 
    5353// BIT(6 ): kRelTimeOscillating  :  The High Gain arrival times fourier transform showed abnormal behavior 
    54 // BIT(7 ): kLoGainSaturation    :  The Low  Gain signals were saturated during calibration
    5554//
    5655// * Set bits leading to an unsuitable flag:
    5756//
     57// BIT(7 ): kLoGainSaturation    :  The Low  Gain signals were saturated during calibration
    5858// BIT(8 ): kChargeIsPedestal    :  The calibration signal contained only pedestals - presumably dead pixel
    5959// BIT(9 ): kChargeErrNotValid   :  The absolute error of the derived charge has given non-sense - presumably pedestal
  • trunk/MagicSoft/Mars/mbadpixels/MBadPixelsPix.h

    r4542 r4637  
    8787                                     || IsUncalibrated(kHiGainOscillating  ) ; }
    8888
     89    Int_t  GetUnsuitableCalibration() const   {
     90      if (!IsUnsuitable()) return 0;
     91      if (IsUncalibrated( kChargeIsPedestal    )) return 1;
     92      if (IsUncalibrated( kChargeRelErrNotValid)) return 2;
     93      if (IsUncalibrated( kChargeSigmaNotValid )) return 3;
     94      if (IsUncalibrated( kLoGainSaturation    )) return 4;
     95      if (IsUncalibrated( kMeanTimeInFirstBin  )) return 5;
     96      if (IsUncalibrated( kMeanTimeInLast2Bins )) return 6;
     97      if (IsUncalibrated( kDeviatingNumPhes    )) return 7;
     98      if (IsUncalibrated( kDeviatingFFactor    )) return 8;
     99      if (IsUncalibrated( kDeviatingNumPhots   )) return 9;
     100    }
     101   
     102    Int_t  GetUnreliableCalibration() const   {
     103      if (!IsUnreliable()) return 0;
     104      if (IsUncalibrated( kHiGainNotFitted   )) return 1;
     105      if (IsUncalibrated( kLoGainNotFitted   )) return 2;
     106      if (IsUncalibrated( kRelTimeNotFitted  )) return 3;
     107      if (IsUncalibrated( kHiGainOscillating )) return 4;
     108      if (IsUncalibrated( kLoGainOscillating )) return 5;
     109      if (IsUncalibrated( kRelTimeOscillating)) return 6;
     110    }
     111   
     112       
     113   
    89114    void Merge(const MBadPixelsPix &pix);
    90115
Note: See TracChangeset for help on using the changeset viewer.