source: trunk/MagicSoft/Mars/manalysis/MCerPhotPix.h@ 5690

Last change on this file since 5690 was 5690, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 2.5 KB
Line 
1#ifndef MARS_MCerPhotPix_H
2#define MARS_MCerPhotPix_H
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7
8class MCerPhotPix : public MParContainer
9{
10private:
11
12 Int_t fPixId; // the pixel Id
13
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
21 Bool_t fIsSaturated; // the pixel's low gain is saturated
22 Bool_t fIsHGSaturated; // the pixel's high gain is saturated
23
24 // FIXME: arrival time t, and it's error sigma t
25
26public:
27 MCerPhotPix(Int_t pix=-1, Float_t phot=0, Float_t errphot=0);
28
29 Int_t GetPixId() const { return fPixId; }
30 Float_t GetNumPhotons() const { return fPhot; }
31 Float_t GetErrorPhot() const { return fErrPhot; }
32
33 Bool_t IsPixelUsed() const { return fRing>0; }
34 Bool_t IsPixelUnmapped() const { return fRing==-1; }
35 void SetPixelUnused() { fRing=0; }
36 void SetPixelUsed() { fRing=1; }
37 void SetPixelUnmapped() { fRing=-1;}
38 void SetIdxIsland(Short_t num) { fIdxIsland=num; }
39 Short_t GetIdxIsland() const { return fIdxIsland; }
40
41 void SetRing(UShort_t r) { fRing = r; }
42 Short_t GetRing() const { return fRing;}
43
44 void SetPixelCore(Bool_t b=kTRUE){ fIsCore = b; }
45 Bool_t IsPixelCore() const { return fIsCore; }
46
47 void SetNumPhotons(Float_t f) { fPhot = f; }
48 void SetErrorPhot(Float_t f) { fErrPhot = f; }
49 void Set(Float_t np, Float_t ep) { fPhot = np; fErrPhot = ep; }
50
51 void SetPixelSaturated() { fIsSaturated = kTRUE; }
52 Bool_t IsPixelSaturated() const { return fIsSaturated; }
53
54 void SetPixelHGSaturated() { fIsHGSaturated = kTRUE; }
55 Bool_t IsPixelHGSaturated() const { return fIsHGSaturated; }
56
57 void AddNumPhotons(Float_t f) { fPhot += f; }
58
59 void Scale(Float_t f) { fPhot/=f; }
60
61 void Print(Option_t *opt = NULL) const;
62 Int_t Compare(const TObject *obj) const;
63 Bool_t IsSortable() const { return kTRUE; }
64
65 ClassDef(MCerPhotPix, 5) // class containing information about the Cerenkov Photons in a pixel
66};
67
68#endif
69
70
71
Note: See TracBrowser for help on using the repository browser.