| 1 | #ifndef MARS_MCerPhotPix_H
|
|---|
| 2 | #define MARS_MCerPhotPix_H
|
|---|
| 3 |
|
|---|
| 4 | #ifndef MARS_MParContainer
|
|---|
| 5 | #include "MParContainer.h"
|
|---|
| 6 | #endif
|
|---|
| 7 |
|
|---|
| 8 | class MCerPhotPix : public MParContainer
|
|---|
| 9 | {
|
|---|
| 10 | private:
|
|---|
| 11 |
|
|---|
| 12 | Int_t fPixId; // the pixel Id
|
|---|
| 13 |
|
|---|
| 14 | 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 | Bool_t fIsCore; // the pixel is a Core pixel -> kTRUE
|
|---|
| 16 |
|
|---|
| 17 | Float_t fPhot; // The number of Cerenkov photons
|
|---|
| 18 | Float_t fErrPhot; // the error of fPhot
|
|---|
| 19 |
|
|---|
| 20 | Bool_t fIsSaturated; // the pixel is saturated
|
|---|
| 21 |
|
|---|
| 22 | // FIXME: arrival time t, and it's error sigma t
|
|---|
| 23 |
|
|---|
| 24 | public:
|
|---|
| 25 | MCerPhotPix(Int_t pix=-1, Float_t phot=0, Float_t errphot=0);
|
|---|
| 26 |
|
|---|
| 27 | Int_t GetPixId() const { return fPixId; }
|
|---|
| 28 | Float_t GetNumPhotons() const { return fPhot; }
|
|---|
| 29 | Float_t GetErrorPhot() const { return fErrPhot; }
|
|---|
| 30 |
|
|---|
| 31 | Bool_t IsPixelUsed() const { return fRing>0; }
|
|---|
| 32 | Bool_t IsPixelUnmapped() const { return fRing==-1; }
|
|---|
| 33 | void SetPixelUnused() { fRing=0; }
|
|---|
| 34 | void SetPixelUsed() { fRing=1; }
|
|---|
| 35 | void SetPixelUnmapped() { fRing=-1;}
|
|---|
| 36 |
|
|---|
| 37 | void SetRing(UShort_t r) { fRing = r; }
|
|---|
| 38 | Short_t GetRing() const { return fRing;}
|
|---|
| 39 |
|
|---|
| 40 | void SetPixelCore() { fIsCore = kTRUE; }
|
|---|
| 41 | Bool_t IsPixelCore() const { return fIsCore; }
|
|---|
| 42 |
|
|---|
| 43 | void SetNumPhotons(Float_t f) { fPhot = f; }
|
|---|
| 44 | void SetErrorPhot(Float_t f) { fErrPhot = f; }
|
|---|
| 45 | void Set(Float_t np, Float_t ep) { fPhot = np; fErrPhot = ep; }
|
|---|
| 46 |
|
|---|
| 47 | void SetPixelSaturated() { fIsSaturated = kTRUE; }
|
|---|
| 48 | Bool_t IsPixelSaturated() const { return fIsSaturated; }
|
|---|
| 49 |
|
|---|
| 50 | void AddNumPhotons(Float_t f) { fPhot += f; }
|
|---|
| 51 |
|
|---|
| 52 | void Scale(Float_t f) { fPhot/=f; }
|
|---|
| 53 |
|
|---|
| 54 | void Print(Option_t *opt = NULL) const;
|
|---|
| 55 |
|
|---|
| 56 | ClassDef(MCerPhotPix, 3) // class containing information about the Cerenkov Photons in a pixel
|
|---|
| 57 | };
|
|---|
| 58 |
|
|---|
| 59 | #endif
|
|---|
| 60 |
|
|---|
| 61 |
|
|---|
| 62 |
|
|---|