Ignore:
Timestamp:
09/27/19 20:12:29 (5 years ago)
Author:
tbretz
Message:
Implemented to copy the signal
Location:
trunk/Mars/melectronics
Files:
2 edited

Legend:

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

    r17682 r19693  
    159159}
    160160
     161void MAnalogSignal::CopySignal(const MAnalogSignal &s)
     162{
     163    *this = s;
     164    fDer1 = s.fDer1;
     165    fDer2 = s.fDer2;
     166}
    161167
    162168// Deprecated. Use MSimRandomPhotons instead
  • trunk/Mars/melectronics/MAnalogSignal.h

    r17682 r19693  
    2222    Bool_t AddPulse(const TF1 &f1, Float_t t, Float_t f=1);
    2323    void   AddSignal(const MAnalogSignal &s, Int_t delay=0,Float_t dampingFact=1.0);
     24    void   CopySignal(const MAnalogSignal &s);
    2425
    2526    // Deprecated. Use MSimRandomPhotons instead
Note: See TracChangeset for help on using the changeset viewer.