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 | UShort_t fRing; // NT: number of analyzed rings around the core pixels (fRing>0 means: used)
|
---|
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 | // FIXME: arrival time t, and it's error sigma t
|
---|
21 |
|
---|
22 | public:
|
---|
23 | MCerPhotPix(Int_t pix=-1, Float_t phot=0, Float_t errphot=0);
|
---|
24 |
|
---|
25 | Int_t GetPixId() const { return fPixId; }
|
---|
26 | Float_t GetNumPhotons() const { return fPhot; }
|
---|
27 | Float_t GetErrorPhot() const { return fErrPhot; }
|
---|
28 |
|
---|
29 | Bool_t IsPixelUsed() const { return fRing>0; }
|
---|
30 | void SetPixelUnused() { fRing=0; }
|
---|
31 | void SetPixelUsed() { fRing=1; }
|
---|
32 |
|
---|
33 | void SetRing(UShort_t r) { fRing = r; }
|
---|
34 | Short_t GetRing() const { return fRing;}
|
---|
35 |
|
---|
36 | void SetPixelCore() { fIsCore = kTRUE; }
|
---|
37 | Bool_t IsPixelCore() const { return fIsCore; }
|
---|
38 |
|
---|
39 | void SetNumPhotons(Float_t f) { fPhot = f; }
|
---|
40 | void SetErrorPhot(Float_t f) { fErrPhot = f; }
|
---|
41 | void Set(Float_t np, Float_t ep) { fPhot = np; fErrPhot = ep; }
|
---|
42 |
|
---|
43 | void AddNumPhotons(Float_t f) { fPhot += f; }
|
---|
44 |
|
---|
45 | void Scale(Float_t f) { fPhot/=f; }
|
---|
46 |
|
---|
47 | void Print(Option_t *opt = NULL) const;
|
---|
48 |
|
---|
49 | ClassDef(MCerPhotPix, 1) // class containing information about the Cerenkov Photons in a pixel
|
---|
50 | };
|
---|
51 |
|
---|
52 | #endif
|
---|
53 |
|
---|
54 |
|
---|