Ignore:
Timestamp:
05/13/05 21:25:26 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mbadpixels
Files:
2 edited

Legend:

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

    r7033 r7035  
    176176    for (Int_t i=0; i<entries; i++)
    177177    {
     178        if ((*fBadPixels)[i].IsUnsuitable())
     179            continue;
     180
    178181        const Double_t rms = (*fPedPhotCam)[i].GetRms();
    179182
     
    204207    for (Int_t i=0; i<entries; i++)
    205208    {
     209        if ((*fBadPixels)[i].IsUnsuitable())
     210            continue;
     211
    206212        const Double_t rms = (*fPedPhotCam)[i].GetRms();
    207213        const Byte_t  aidx = (*fGeomCam)[i].GetAidx();
    208214
    209215        //Calculate the corrected means:
    210         if (rms<=0.5*meanrms[aidx] || rms>=1.5*meanrms[aidx])
     216        if (rms<=meanrms[aidx]/1.5 || rms>=meanrms[aidx]*1.5)
    211217            continue;
    212218
     
    250256    for (Int_t i=0; i<entries; i++)
    251257    {
     258        if ((*fBadPixels)[i].IsUnsuitable())
     259            continue;
     260
    252261        const Double_t rms = (*fPedPhotCam)[i].GetRms();
    253262        const Byte_t  aidx = (*fGeomCam)[i].GetAidx();
  • trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCam.cc

    r7012 r7035  
    614614// 23: MBadPixelsPix::IsUncalibrated(MBadPixelsPix::kHiGainOverFlow      )
    615615// 24: MBadPixelsPix::IsUncalibrated(MBadPixelsPix::kLoGainOverFlow      )
     616// 102: MBadPixelsPix::IsUnsuitable()
    616617//
    617618Bool_t MBadPixelsCam::GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type) const
     
    747748      val = 1;
    748749      break;
     750    case 102:
     751      if  (!(*this)[idx].IsUnsuitable())
     752          return kFALSE;
     753      val = 1;
     754      break;
    749755    default:
    750756      return kFALSE;
Note: See TracChangeset for help on using the changeset viewer.