Ignore:
Timestamp:
08/01/06 14:13:34 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r7354 r7829  
    2020    Float_t  fArrivalTime;   // Calibrated Arrival Time
    2121
     22    Bool_t   fLoGainUsed;      //! Is lo gain used
     23
    2224public:
    2325    MSignalPix(Float_t phot=0, Float_t errphot=0);
     
    3234        pix.fPhot       = fPhot;
    3335        pix.fErrPhot    = fErrPhot;
     36        pix.fLoGainUsed = fLoGainUsed;
    3437    }
    3538
    36     Float_t GetNumPhotons() const       { return fPhot;    }
    37     Float_t GetErrorPhot() const        { return fErrPhot; }
    38     Float_t GetArrivalTime() const      { return fArrivalTime; }
    39    
    40     Bool_t  IsPixelUsed() const         { return fRing>0; }
    41     Bool_t  IsPixelUnmapped() const     { return fRing==-1; }
    42     void    SetPixelUnused()            { fRing=0;  }
    43     void    SetPixelUsed()              { fRing=1;  }
    44     void    SetPixelUnmapped()          { fRing=-1; }
    45     void    SetIdxIsland(Short_t num)   { fIdxIsland=num; }
    46     Short_t GetIdxIsland() const        { return fIdxIsland; }
     39    Float_t GetNumPhotons() const         { return fPhot;    }
     40    Float_t GetErrorPhot() const          { return fErrPhot; }
     41    Float_t GetArrivalTime() const        { return fArrivalTime; }
    4742
    48     void    SetRing(UShort_t r)         { fRing = r;   }
    49     Short_t GetRing() const             { return fRing;}
     43    Bool_t  IsPixelUsed() const           { return fRing>0; }
     44    Bool_t  IsPixelUnmapped() const       { return fRing==-1; }
     45    void    SetPixelUnused()              { fRing=0;  }
     46    void    SetPixelUsed()                { fRing=1;  }
     47    void    SetPixelUnmapped()            { fRing=-1; }
     48    void    SetIdxIsland(Short_t num)     { fIdxIsland=num; }
     49    Short_t GetIdxIsland() const          { return fIdxIsland; }
    5050
    51     void    SetPixelCore(Bool_t b=kTRUE){ fIsCore = b; }
    52     Bool_t  IsPixelCore() const         { return fIsCore;  }
     51    void    SetRing(UShort_t r)           { fRing = r;  }
     52    Short_t GetRing() const               { return fRing;}
    5353
    54     void    SetNumPhotons(Float_t f)    { MMath::ReducePrecision(f); fPhot    = f; }
    55     void    SetErrorPhot(Float_t f)     { MMath::ReducePrecision(f); fErrPhot = f; }
    56     void    Set(Float_t np, Float_t ep) { MMath::ReducePrecision(np); MMath::ReducePrecision(ep);  fPhot = np; fErrPhot = ep; }
    57     void    SetArrivalTime(Float_t tm)  { MMath::ReducePrecision(tm); fArrivalTime = tm; }
     54    void    SetPixelCore(Bool_t b=kTRUE)  { fIsCore = b; }
     55    Bool_t  IsPixelCore() const           { return fIsCore;  }
    5856
    59     void    AddNumPhotons(Float_t f)    { fPhot += f; }
     57    void    SetNumPhotons(Float_t f)      { MMath::ReducePrecision(f); fPhot    = f; }
     58    void    SetErrorPhot(Float_t f)       { MMath::ReducePrecision(f); fErrPhot = f; }
     59    void    Set(Float_t np, Float_t ep)   { MMath::ReducePrecision(np); MMath::ReducePrecision(ep);  fPhot = np; fErrPhot = ep; }
     60    void    SetArrivalTime(Float_t tm)    { MMath::ReducePrecision(tm); fArrivalTime = tm; }
    6061
    61     void    Scale(Float_t f)            { fPhot/=f; }
     62    void    SetLoGainUsed(Bool_t b=kTRUE) { fLoGainUsed=b;      }
     63    Bool_t  IsLoGainUsed() const          { return fLoGainUsed; }
     64
     65    void    AddNumPhotons(Float_t f)      { fPhot += f; }
     66    void    Scale(Float_t f)              { fPhot /= f; }
    6267
    6368    void    Print(Option_t *opt = NULL) const;
    64     Bool_t  IsSortable() const { return kTRUE; }
    6569
    6670    ClassDef(MSignalPix, 7)  // class containing information about the Cerenkov Photons in a pixel
Note: See TracChangeset for help on using the changeset viewer.