Changeset 6312 for trunk/MagicSoft/Mars/msignal
- Timestamp:
- 02/09/05 16:04:12 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/msignal
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilterPeakSearch.cc
r6290 r6312 62 62 #include "MLogManip.h" 63 63 64 #include "MParList.h" 65 64 66 #include "MPedestalPix.h" 65 67 #include "MPedestalCam.h" … … 72 74 #include "MArrivalTimeCam.h" 73 75 #include "MArrivalTimePix.h" 76 77 #include "MBadPixelsCam.h" 78 #include "MBadPixelsPix.h" 74 79 75 80 ClassImp(MExtractTimeAndChargeDigitalFilterPeakSearch); … … 98 103 // 99 104 MExtractTimeAndChargeDigitalFilterPeakSearch::MExtractTimeAndChargeDigitalFilterPeakSearch(const char *name, const char *title) 105 : fBadPixels(NULL) 100 106 { 101 107 fName = name ? name : "MExtractTimeAndChargeDigitalFilterPeakSearch"; … … 142 148 fLoGainOutOfRangeRight = 0; 143 149 150 fBadPixels = (MBadPixelsCam*)pList->FindObject(AddSerialNumber("MBadPixelsCam")); 151 if (!fBadPixels) 152 { 153 *fLog << err << "Cannot find MBadPixelsCam ... abort." << endl; 154 return kFALSE; 155 } 156 144 157 return kTRUE; 145 158 } … … 293 306 sat = 0; 294 307 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); 296 312 297 313 if (sumhi > maxsumhi && sat == 0) -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilterPeakSearch.h
r6274 r6312 17 17 class TH2F; 18 18 class MPedestalPix; 19 class MBadPixelsCam; 20 19 21 class MExtractTimeAndChargeDigitalFilterPeakSearch : public MExtractTimeAndChargeDigitalFilter 20 22 { … … 42 44 ULong_t fLoGainOutOfRangeRight; // Number of events out of range to the right side in low gain 43 45 46 MBadPixelsCam *fBadPixels; // Bad Pixels Camera 47 44 48 void FindPeak(Byte_t *ptr, Byte_t *logain, 45 49 Byte_t &startslice, Int_t &max, Int_t &sat, Byte_t &satpos) const;
Note:
See TracChangeset
for help on using the changeset viewer.