Changeset 18151


Ignore:
Timestamp:
02/18/15 13:15:16 (10 years ago)
Author:
tbretz
Message:
Added SetDelays(const TGraph&)
Location:
trunk/Mars/mdrs
Files:
2 edited

Legend:

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

    r18148 r18151  
    3131
    3232#include <TH1.h>
     33#include <TGraph.h>
    3334
    3435ClassImp(MDrsCalibrationTime);
     
    4748
    4849    return true;
     50}
     51
     52void MDrsCalibrationTime::SetDelays(const TGraph &g)
     53{
     54    fDelays.assign(g.GetY(), g.GetY()+g.GetN());
    4955}
    5056
  • trunk/Mars/mdrs/MDrsCalibrationTime.h

    r18148 r18151  
    1010
    1111class TH1;
     12class TGraph;
    1213
    1314class MDrsCalibrationTime : public MParContainer, public DrsCalibrateTime
     
    3637
    3738    bool SetDelays(const TH1 &cam);
     39    void SetDelays(const TGraph &g);
    3840
    3941    double GetOffset(int hw, int spos, float tm) const
Note: See TracChangeset for help on using the changeset viewer.