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