Ignore:
Timestamp:
04/15/04 17:13:25 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/msignal
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/msignal/MArrivalTime.cc

    r3306 r3757  
    1717!
    1818!   Author(s): Sebastian Raducci, 12/2003 <mailto:raducci@fisica.uniud.it>
     19!              Markus Gaug        04/2004 <mailto:markus@ifae.es>
    1920!
    2021!   Copyright: MAGIC Software Development, 2000-2004
     
    6263void MArrivalTime::Reset()
    6364{
    64     fData.Reset(-1);
     65  fData.Reset(-1);
     66  fDataErr.Reset(-1);
    6567}
    6668
    6769void MArrivalTime::InitSize(Int_t i)
    6870{
    69     fData.Set(i);
     71  fData.Set(i);
     72  fDataErr.Set(i);
    7073}
    7174
     
    7780{
    7881    fData[i] = t;
     82}
     83     
     84
     85// -------------------------------------------------------------------------
     86//
     87// Set the arrival time error in one pixel
     88//
     89void MArrivalTime::SetTimeErr(const Int_t i, const Float_t t)
     90{
     91    fDataErr[i] = t;
    7992}
    8093     
  • trunk/MagicSoft/Mars/msignal/MArrivalTime.h

    r3306 r3757  
    2020class MArrivalTime : public MParContainer, public MCamEvent
    2121{
    22  private:
    23     TArrayF fData;  // Stores the arrival times
     22private:
     23  TArrayF fData;     // Stores the calibrated arrival times
     24  TArrayF fDataErr;  // Stores the calibrated arrival time errors
    2425
    2526public:
     
    3435
    3536    void SetTime(const Int_t i, const Float_t time);
     37    void SetTimeErr(const Int_t i, const Float_t timeerr);   
    3638   
    3739    const TArrayF &GetData() const { return fData; }
     40    const TArrayF &GetDataErr() const { return fDataErr; }
    3841
    3942    Double_t operator[](int i) { return fData[i]; }
     43    Double_t operator()(int i) { return fDataErr[i]; }   
    4044
    4145    Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
Note: See TracChangeset for help on using the changeset viewer.