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

Last change on this file since 4017 was 3751, checked in by gaug, 21 years ago
*** empty log message ***
File size: 2.3 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
20 Bool_t fIsSaturated; // the pixel's low gain is saturated
21 Bool_t fIsHGSaturated; // the pixel's high gain is saturated
22
23 // FIXME: arrival time t, and it's error sigma t
24
25public:
26 MCerPhotPix(Int_t pix=-1, Float_t phot=0, Float_t errphot=0);
27
28 Int_t GetPixId() const { return fPixId; }
29 Float_t GetNumPhotons() const { return fPhot; }
30 Float_t GetErrorPhot() const { return fErrPhot; }
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
38 void SetRing(UShort_t r) { fRing = r; }
39 Short_t GetRing() const { return fRing;}
40
41 void SetPixelCore() { fIsCore = kTRUE; }
42 Bool_t IsPixelCore() const { return fIsCore; }
43
44 void SetNumPhotons(Float_t f) { fPhot = f; }
45 void SetErrorPhot(Float_t f) { fErrPhot = f; }
46 void Set(Float_t np, Float_t ep) { fPhot = np; fErrPhot = ep; }
47
48 void SetPixelSaturated() { fIsSaturated = kTRUE; }
49 Bool_t IsPixelSaturated() const { return fIsSaturated; }
50
51 void SetPixelHGSaturated() { fIsHGSaturated = kTRUE; }
52 Bool_t IsPixelHGSaturated() const { return fIsHGSaturated; }
53
54 void AddNumPhotons(Float_t f) { fPhot += f; }
55
56 void Scale(Float_t f) { fPhot/=f; }
57
58 void Print(Option_t *opt = NULL) const;
59
60 ClassDef(MCerPhotPix, 4) // class containing information about the Cerenkov Photons in a pixel
61};
62
63#endif
64
65
66
Note: See TracBrowser for help on using the repository browser.