Changeset 3849 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
04/27/04 16:53:14 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r3848 r3849  
    1818
    1919                                                 -*-*- END OF LINE -*-*-
     20
     21 2004/04/27: Markus Gaug
     22
     23   * mcalib/MCalibrationChargeCalc.cc
     24     - set unsuitable pixels to excluded in MCalibrationChargePix, which
     25       will not display them in the status display
     26
    2027
    2128 2004/04/26: Abelardo Moralejo
  • trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc

    r3843 r3849  
    228228const Float_t MCalibrationChargeCalc::fgLambdaErrLimit         = 0.2;
    229229const Float_t MCalibrationChargeCalc::fgLambdaCheckLimit       = 0.2;
    230 const Float_t MCalibrationChargeCalc::fgPheErrLimit            = 5.;
     230const Float_t MCalibrationChargeCalc::fgPheErrLimit            = 4.;
    231231// --------------------------------------------------------------------------
    232232//
     
    814814// - MBadPixelsPix::kMeanTimeInFirstBin
    815815// - MBadPixelsPix::kMeanTimeInLast2Bins
    816 //
    817 // Sets pixel to MBadPixelsPix::kUnreliableRun, if one of the following flags is set:
    818816// - MBadPixelsPix::kDeviatingNumPhes
    819817//
     818// - Call MCalibrationPix::SetExcluded() for the bad pixels
     819//
    820820void MCalibrationChargeCalc::FinalizeBadPixels()
    821821{
     
    825825     
    826826      MBadPixelsPix    &bad    = (*fBadPixels)[i];
     827      MCalibrationPix  &pix    = (*fCam)[i];
    827828
    828829      if (bad.IsUncalibrated( MBadPixelsPix::kChargeIsPedestal))
     
    845846
    846847      if (bad.IsUncalibrated( MBadPixelsPix::kDeviatingNumPhes ))
    847         bad.SetUnsuitable(   MBadPixelsPix::kUnreliableRun    );
     848        bad.SetUnsuitable(   MBadPixelsPix::kUnsuitableRun    );
     849      //        bad.SetUnsuitable(   MBadPixelsPix::kUnreliableRun    );
     850
     851      if (bad.IsUnsuitable(   MBadPixelsPix::kUnsuitableRun    ))
     852        pix.SetExcluded();
     853
    848854    }
    849855}
     
    981987                << Form("%4.2f%s%4.2f",lowlim[aidx],",",upplim[aidx]) << "] in pixel " << i << endl;
    982988          bad.SetUncalibrated( MBadPixelsPix::kDeviatingNumPhes );
    983           bad.SetUnsuitable  ( MBadPixelsPix::kUnreliableRun    );
     989          bad.SetUnsuitable  ( MBadPixelsPix::kUnsuitableRun    );
     990          pix.SetExcluded();
     991          //          bad.SetUnsuitable  ( MBadPixelsPix::kUnreliableRun    );
    984992          continue;
    985993        }
  • trunk/MagicSoft/Mars/mcalib/MHCalibrationTestCam.cc

    r3845 r3849  
    461461  const MHGausEvents &pix = (*this)[idx];
    462462
     463  if (pix.IsExcluded())
     464    return kFALSE;
     465
    463466  switch (type)
    464467    {
  • trunk/MagicSoft/Mars/mcalib/MHCalibrationTestPix.cc

    r3846 r3849  
    5252const Int_t   MHCalibrationTestPix::fgChargeNbins     = 2000;
    5353const Axis_t  MHCalibrationTestPix::fgChargeFirst     = -0.5;
    54 const Axis_t  MHCalibrationTestPix::fgChargeLast      = 1999.5;
     54const Axis_t  MHCalibrationTestPix::fgChargeLast      = 3999.5;
    5555// --------------------------------------------------------------------------
    5656//
Note: See TracChangeset for help on using the changeset viewer.