Ignore:
Timestamp:
08/06/04 16:26:18 (20 years ago)
Author:
tonello
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r3476 r4527  
    3535//
    3636// Check the pedestal RMS of every pixel with respect to the mean
    37 // pedestal RMS of the camera (Sigmabar).
     37// pedestal RMS of the camera.
    3838//
    3939// The pixels can be set as blind if the pedestalRMS is too big or 0.
     
    4848//   [MPedPhotCam]
    4949//   [MGeomCam]
    50 //   [MSigmabar]
    5150//
    5251//  Output Containers:
     
    6665#include "MGeomPix.h"
    6766
    68 #include "MSigmabar.h"
     67//#include "MSigmabar.h"
    6968
    7069#include "MPedPhotCam.h"
     
    117116        }
    118117
    119         fSigmabar = (MSigmabar*)pList->FindObject(AddSerialNumber("MSigmabar"));
     118        /*        fSigmabar = (MSigmabar*)pList->FindObject(AddSerialNumber("MSigmabar"));
    120119        if (!fSigmabar)
    121120        {
     
    123122            return kFALSE;
    124123        }
     124        */
    125125    }
    126126    return kTRUE;
     
    138138//     MBadPixelsCalc calc;
    139139//     calc.SetPedestalLevel(-1);
    140 //
     140/*
    141141void MBadPixelsCalc::CheckPedestalRMS() const
    142142{
     
    157157    }
    158158}
    159 
     159*/
    160160// --------------------------------------------------------------------------
    161161// Check the pedestal Rms of the pixels: compute with 2 iterations the mean
     
    233233        const Byte_t  aidx = (*fGeomCam)[i].GetAidx();
    234234
    235         if (rms>meanrms2[aidx]/3 && rms<=meanrms2[aidx]*3)
     235        if (rms>meanrms2[aidx]/fPedestalLevel && rms<=meanrms2[aidx]*fPedestalLevel)
    236236            continue;
    237237
     
    242242    // Check if the number of pixels to blind is > 60% of total number of pixels
    243243    //
    244     if (bads>0.6*entries)
    245     {
    246         //fErrors[2]++;
    247         return kFALSE;
    248     }
     244    //    if (bads>0.6*entries)
     245    //    {
     246    //    fErrors[2]++;
     247    //    return kFALSE;
     248    //    }
    249249
    250250    return kTRUE;
     
    262262    return kTRUE;
    263263}
     264
     265
Note: See TracChangeset for help on using the changeset viewer.