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

Last change on this file since 3749 was 3748, checked in by gaug, 22 years ago
*** empty log message ***
File size: 2.4 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 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 Float_t fTime; // Calibrated Arrival Time
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 Float_t GetTime() const { return fTime; }
33
34 Bool_t IsPixelUsed() const { return fRing>0; }
35 Bool_t IsPixelUnmapped() const { return fRing==-1; }
36 void SetPixelUnused() { fRing=0; }
37 void SetPixelUsed() { fRing=1; }
38 void SetPixelUnmapped() { fRing=-1;}
39
40 void SetRing(UShort_t r) { fRing = r; }
41 Short_t GetRing() const { return fRing;}
42
43 void SetPixelCore() { fIsCore = kTRUE; }
44 Bool_t IsPixelCore() const { return fIsCore; }
45
46 void SetNumPhotons(Float_t f) { fPhot = f; }
47 void SetErrorPhot(Float_t f) { fErrPhot = f; }
48 void SetTime (Float_t f) { fTime = 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
63 ClassDef(MCerPhotPix, 4) // class containing information about the Cerenkov Photons in a pixel
64};
65
66#endif
67
68
69
Note: See TracBrowser for help on using the repository browser.