Changeset 7354 for trunk/MagicSoft/Mars/msignal
- Timestamp:
- 09/16/05 12:04:53 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MSignalPix.h
r6856 r7354 13 13 private: 14 14 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) 16 16 Short_t fIdxIsland; //! the pixel is a Core pixel -> kTRUE 17 17 … … 19 19 Float_t fErrPhot; // the error of fPhot 20 20 Float_t fArrivalTime; // Calibrated Arrival Time 21 // FIXME: arrival time t, and it's error sigma t22 21 23 22 public: 24 MSignalPix( /*Int_t pix=-1,*/Float_t phot=0, Float_t errphot=0);23 MSignalPix(Float_t phot=0, Float_t errphot=0); 25 24 26 25 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 } 27 35 28 36 Float_t GetNumPhotons() const { return fPhot; } … … 32 40 Bool_t IsPixelUsed() const { return fRing>0; } 33 41 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; } 37 45 void SetIdxIsland(Short_t num) { fIdxIsland=num; } 38 46 Short_t GetIdxIsland() const { return fIdxIsland; } … … 44 52 Bool_t IsPixelCore() const { return fIsCore; } 45 53 46 void SetNumPhotons(Float_t f) { MMath::ReducePrecision(f); fPhot 54 void SetNumPhotons(Float_t f) { MMath::ReducePrecision(f); fPhot = f; } 47 55 void SetErrorPhot(Float_t f) { MMath::ReducePrecision(f); fErrPhot = f; } 48 56 void Set(Float_t np, Float_t ep) { MMath::ReducePrecision(np); MMath::ReducePrecision(ep); fPhot = np; fErrPhot = ep; } … … 56 64 Bool_t IsSortable() const { return kTRUE; } 57 65 58 ClassDef(MSignalPix, 6) // class containing information about the Cerenkov Photons in a pixel66 ClassDef(MSignalPix, 7) // class containing information about the Cerenkov Photons in a pixel 59 67 }; 60 68
Note:
See TracChangeset
for help on using the changeset viewer.