Changeset 17335 for trunk


Ignore:
Timestamp:
11/21/13 17:24:04 (11 years ago)
Author:
tbretz
Message:
Implemented a fourth spike removal algorithm. The spike removal is now valid only for a single pixel - this makes it easier to use for debugging.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mdrs/MDrsCalibApply.cc

    r17105 r17335  
    220220    {
    221221    case 1:
    222         DrsCalibrate::RemoveSpikes(vec, roi);
     222        for (size_t ch=0; ch<fRawEvt->GetNumPixels(); ch++)
     223            DrsCalibrate::RemoveSpikes(vec+ch*roi, roi);
    223224        break;
    224225    case 2:
    225         DrsCalibrate::RemoveSpikes2(vec, roi);
     226        for (size_t ch=0; ch<fRawEvt->GetNumPixels(); ch++)
     227            DrsCalibrate::RemoveSpikes2(vec+ch*roi, roi);
    226228        break;
    227229    case 3:
    228         DrsCalibrate::RemoveSpikes3(vec, roi);
     230        for (size_t ch=0; ch<fRawEvt->GetNumPixels(); ch++)
     231            DrsCalibrate::RemoveSpikes3(vec+ch*roi, roi);
     232        break;
     233    case 4:
     234        for (size_t ch=0; ch<fRawEvt->GetNumPixels(); ch++)
     235            DrsCalibrate::RemoveSpikes4(vec+ch*roi, roi);
    229236        break;
    230237    }
Note: See TracChangeset for help on using the changeset viewer.