Ignore:
Timestamp:
09/27/19 21:54:32 (5 years ago)
Author:
tbretz
Message:
Added a function to shift the signal.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/melectronics/MAnalogSignal.cc

    r19693 r19697  
    148148    return rc;
    149149}
     150
     151void MAnalogSignal::ShiftSignal(Double_t shift)
     152{
     153    Float_t *arr = GetArray();
     154    for (UInt_t i=0; i<fN; i++)
     155        arr[i] += shift;
     156}
     157
    150158
    151159// ------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.