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

Last change on this file since 1951 was 1951, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 1.7 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 fIsUsed; // the pixel is used for calculations --> kTRUE
15 Bool_t fIsCore; // the pixel is a Core pixel --> kTRUE
16
17 UShort_t fRing; // NT: number of analyzed rings around the core pixels
18 Float_t fPhot; // The number of Cerenkov photons
19 Float_t fErrPhot; // the error of fPhot
20
21 // FIXME: arrival time t, and it's error sigma t
22
23public:
24
25 MCerPhotPix(Int_t pix=-1, Float_t phot=0, Float_t errphot=0);
26
27 Int_t GetPixId() const { return fPixId; }
28 Float_t GetNumPhotons() const { return fPhot; }
29 Float_t GetErrorPhot() const { return fErrPhot; }
30
31 void SetPixelContent(Int_t pix, Float_t phot, Float_t errphot);
32
33 Bool_t IsPixelUsed() const { return fIsUsed; }
34 void SetPixelUnused() { fIsUsed = kFALSE; fRing=0; }
35 void SetPixelUsed() { fIsUsed = kTRUE; fRing=1; }
36
37 void SetRing(Short_t r) { fRing = r; fIsUsed = (r>0); }
38
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 AddNumPhotons(Float_t f) { fPhot += f; }
49
50 void Print(Option_t *opt = NULL) const;
51
52 ClassDef(MCerPhotPix, 1) // class containing information about the Cerenkov Photons in a pixel
53};
54
55#endif
56
57
Note: See TracBrowser for help on using the repository browser.