Changeset 3801 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
04/22/04 20:02:35 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r3800 r3801  
    5353   * mraw/MRawRead.[h,cc]:
    5454     - added fForceMode flag to be able to suppress event errors
     55
     56   * mbadpixels/MBadPixelsTreat.[h,cc]:
     57     - changes such that the pedestal interpolation is now done
     58       only in ReInit. If you need the old behaviour call
     59       SetProcessRMS()
    5560
    5661
  • trunk/MagicSoft/Mars/mbadpixels/MBadPixelsTreat.cc

    r3652 r3801  
    235235        // If not, unmap the pixel. The maximum number of blind neighbors
    236236        // should be 2
    237         if (num<3)
     237        if (num<fNumMinNeighbors)
    238238        {
    239239            pix->SetPixelUnmapped();
     
    351351//      the Image Parameters.
    352352//
     353/*
    353354void MBadPixelsTreat::Interpolate() const
    354355{
     
    453454        }
    454455
    455         if (num<2)
     456        if (num<fNumMinNeighbors)
    456457        {
    457458            pix->SetPixelUnmapped();
     
    492493    }
    493494}
     495*/
    494496
    495497// --------------------------------------------------------------------------
     
    517519// --------------------------------------------------------------------------
    518520//
     521// Interpolate Pedestals if kProcessRMS not set
     522//
     523Bool_t MBadPixelsTreat::ReInit(MParList *pList)
     524{
     525    if (!TESTBIT(fFlags, kProcessRMS))
     526        InterpolatePedestals();
     527    return kTRUE;
     528}
     529
     530// --------------------------------------------------------------------------
     531//
    519532// Treat the blind pixels
    520533//
    521534Int_t MBadPixelsTreat::Process()
    522535{
    523     /*
    524     if (TESTBIT(fFlags, kCheckPedestalRms))
    525     {
    526         // if the number of blind pixels is too high, do not interpolate
    527        if (CheckPedestalRms()==kFALSE)
    528            return kTRUE;
    529 
    530        if (TESTBIT(fFlags, kUseInterpolation))
    531            InterpolatePedestals();
    532     }
    533     */
    534 
    535536    if (TESTBIT(fFlags, kUseInterpolation) && fGeomCam)
    536         Interpolate();
     537    {
     538        InterpolateSignal();
     539        if (TESTBIT(fFlags, kProcessRMS))
     540            InterpolatePedestals();
     541    }
    537542    else
    538543        Unmap();
    539 
    540 
    541     //fErrors[0]++;
    542544
    543545    return kTRUE;
Note: See TracChangeset for help on using the changeset viewer.