Changeset 6312 for trunk/MagicSoft


Ignore:
Timestamp:
02/09/05 16:04:12 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/msignal
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilterPeakSearch.cc

    r6290 r6312  
    6262#include "MLogManip.h"
    6363
     64#include "MParList.h"
     65
    6466#include "MPedestalPix.h"
    6567#include "MPedestalCam.h"
     
    7274#include "MArrivalTimeCam.h"
    7375#include "MArrivalTimePix.h"
     76
     77#include "MBadPixelsCam.h"
     78#include "MBadPixelsPix.h"
    7479
    7580ClassImp(MExtractTimeAndChargeDigitalFilterPeakSearch);
     
    98103//
    99104MExtractTimeAndChargeDigitalFilterPeakSearch::MExtractTimeAndChargeDigitalFilterPeakSearch(const char *name, const char *title)
     105    : fBadPixels(NULL)
    100106{
    101107    fName  = name  ? name  : "MExtractTimeAndChargeDigitalFilterPeakSearch";
     
    142148  fLoGainOutOfRangeRight = 0;
    143149 
     150  fBadPixels = (MBadPixelsCam*)pList->FindObject(AddSerialNumber("MBadPixelsCam"));
     151  if (!fBadPixels)
     152    {
     153      *fLog << err << "Cannot find MBadPixelsCam ... abort." << endl;
     154      return kFALSE;
     155    }
     156
    144157  return kTRUE;
    145158}
     
    293306      sat = 0;
    294307
    295       FindPeak(pixel.GetHiGainSamples()+fHiGainFirst, pixel.GetLoGainSamples(), startslice, sumhi, sat, satpos);
     308      MBadPixelsPix &bad = (*fBadPixels)[pixel.GetPixelId()];
     309     
     310      if (!bad.IsUnsuitable())
     311        FindPeak(pixel.GetHiGainSamples()+fHiGainFirst, pixel.GetLoGainSamples(), startslice, sumhi, sat, satpos);
    296312
    297313      if (sumhi > maxsumhi && sat == 0)
  • trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilterPeakSearch.h

    r6274 r6312  
    1717class TH2F;
    1818class MPedestalPix;
     19class MBadPixelsCam;
     20
    1921class MExtractTimeAndChargeDigitalFilterPeakSearch : public MExtractTimeAndChargeDigitalFilter
    2022{
     
    4244  ULong_t fLoGainOutOfRangeRight;              // Number of events out of range to the right side in low gain
    4345
     46  MBadPixelsCam *fBadPixels;                   // Bad Pixels Camera
     47 
    4448  void    FindPeak(Byte_t *ptr, Byte_t *logain,
    4549                   Byte_t &startslice, Int_t &max, Int_t &sat, Byte_t &satpos) const;
Note: See TracChangeset for help on using the changeset viewer.