Changeset 19375


Ignore:
Timestamp:
Nov 11, 2018, 2:09:11 PM (2 months ago)
Author:
tbretz
Message:
The spike removal was broken, it was only working for the first channel. The statistics should exclude the last 60 samples to exclude the time markers - we do not have dedicated TM channels anymore.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/EventBuilderWrapper.h

    r18630 r19375  
    10221022
    10231023            // ------------------------- Remove spikes --------------------------------
    1024             DrsCalibrate::RemoveSpikes4(vec.data(), roi);
     1024            DrsCalibrate::RemoveSpikes4(vec.data(), roi*1440);
    10251025
    10261026            // -------------- Update raw data dim sevice (VERY SLOW) -----------------
     
    10421042            edat.runNum = evt.runNum;
    10431043            edat.evNum  = evt.evNum;
    1044             //array<float, 1440*4> stats; // Mean, RMS, Max, Pos
    1045             const float max = DrsCalibrate::GetPixelStats(edat.data, vec.data(), roi, 15, 5);
     1044            //array<float, 1440*4> stats; // Mean, RMS, Max, Pos  // 60 to exclude time markers
     1045            const float max = DrsCalibrate::GetPixelStats(edat.data, vec.data(), roi, 15, 60);
    10461046            if (evt.trgTyp==0 && max>fMaxEvent.first)
    10471047                fMaxEvent = make_pair(max, edat);
Note: See TracChangeset for help on using the changeset viewer.