Ignore:
Timestamp:
09/16/05 12:04:53 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/msignal/MSignalPix.h

    r6856 r7354  
    1313private:
    1414    Bool_t   fIsCore;        //! the pixel is a Core pixel -> kTRUE
    15     Short_t  fRing;          //! NT: number of analyzed rings around the core pixels, fRing>0 means: used, fRing= 0 means: unused, fRing= -1 means: unmapped (no possible to use in the calculation of the image parameters)
     15    Short_t  fRing;          //  NT: number of analyzed rings around the core pixels, fRing>0 means: used, fRing= 0 means: unused, fRing= -1 means: unmapped (no possible to use in the calculation of the image parameters)
    1616    Short_t  fIdxIsland;     //! the pixel is a Core pixel -> kTRUE
    1717
     
    1919    Float_t  fErrPhot;       // the error of fPhot
    2020    Float_t  fArrivalTime;   // Calibrated Arrival Time
    21     // FIXME: arrival time t, and it's error sigma t
    2221
    2322public:
    24     MSignalPix(/*Int_t pix=-1,*/ Float_t phot=0, Float_t errphot=0);
     23    MSignalPix(Float_t phot=0, Float_t errphot=0);
    2524
    2625    void Clear(Option_t *o=0);
     26    void Copy(TObject &obj) const
     27    {
     28        MSignalPix &pix = (MSignalPix&)obj;
     29        pix.fIsCore     = fIsCore;
     30        pix.fRing       = fRing;
     31        pix.fIdxIsland  = fIdxIsland;
     32        pix.fPhot       = fPhot;
     33        pix.fErrPhot    = fErrPhot;
     34    }
    2735
    2836    Float_t GetNumPhotons() const       { return fPhot;    }
     
    3240    Bool_t  IsPixelUsed() const         { return fRing>0; }
    3341    Bool_t  IsPixelUnmapped() const     { return fRing==-1; }
    34     void    SetPixelUnused()            { fRing=0; }
    35     void    SetPixelUsed()              { fRing=1; }
    36     void    SetPixelUnmapped()          { fRing=-1;}
     42    void    SetPixelUnused()            { fRing=0;  }
     43    void    SetPixelUsed()              { fRing=1;  }
     44    void    SetPixelUnmapped()          { fRing=-1; }
    3745    void    SetIdxIsland(Short_t num)   { fIdxIsland=num; }
    3846    Short_t GetIdxIsland() const        { return fIdxIsland; }
     
    4452    Bool_t  IsPixelCore() const         { return fIsCore;  }
    4553
    46     void    SetNumPhotons(Float_t f)    { MMath::ReducePrecision(f); fPhot     = f; }
     54    void    SetNumPhotons(Float_t f)    { MMath::ReducePrecision(f); fPhot    = f; }
    4755    void    SetErrorPhot(Float_t f)     { MMath::ReducePrecision(f); fErrPhot = f; }
    4856    void    Set(Float_t np, Float_t ep) { MMath::ReducePrecision(np); MMath::ReducePrecision(ep);  fPhot = np; fErrPhot = ep; }
     
    5664    Bool_t  IsSortable() const { return kTRUE; }
    5765
    58     ClassDef(MSignalPix, 6)  // class containing information about the Cerenkov Photons in a pixel
     66    ClassDef(MSignalPix, 7)  // class containing information about the Cerenkov Photons in a pixel
    5967};
    6068
Note: See TracChangeset for help on using the changeset viewer.