Changeset 11427 for trunk/Mars/msignal


Ignore:
Timestamp:
07/15/11 15:47:35 (13 years ago)
Author:
tbretz
Message:
the upper bound of searching the maximum was wrong
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/msignal/MSignalCalc.cc

    r9312 r11427  
    139139
    140140        USample_t *ptr   = raw;
    141         USample_t *max   = ptr+fRawEvt->GetMaxPos(i, 0, nhi);
     141        USample_t *max   = ptr+fRawEvt->GetMaxPos(i, 0, nhi-1);
    142142        USample_t *end   = ptr+nhi;
    143143        USample_t *first = max-fBefore;
     
    201201            // Area: x9
    202202            ptr = raw+nhi;
    203             max = ptr+fRawEvt->GetMaxPos(i, nhi, nhi+nlo);
     203            max = ptr+fRawEvt->GetMaxPos(i, nhi, nhi+nlo-1);
    204204
    205205            if (*max>250) // FIXME!!!!
Note: See TracChangeset for help on using the changeset viewer.