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

Last change on this file since 1011 was 991, checked in by tbretz, 23 years ago
*** empty log message ***
File size: 1.3 KB
Line 
1#ifndef MCERPHOTPIX_H
2#define MCERPHOTPIX_H
3
4#ifndef MAGIC_H
5#include <MAGIC.h>
6#endif
7
8class MCerPhotPix : public TObject
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 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
22public:
23
24 MCerPhotPix(Int_t pix = -1, Float_t phot=0., Float_t errphot=0.);
25
26 void Print(Option_t *opt = NULL) const;
27
28 Int_t GetPixId() const { return fPixId; }
29 Float_t GetNumPhotons() const { return fPhot; }
30 Float_t GetErrorPhot() const { return fErrPhot; }
31
32 void SetPixelContent(Int_t pix, Float_t phot, Float_t errphot);
33
34 Bool_t IsPixelUsed() const { return fIsUsed; }
35 void SetPixelUnused() { fIsUsed = kFALSE; }
36 void SetPixelUsed() { fIsUsed = kTRUE; }
37
38 void SetCorePixel() { fIsCore = kTRUE; }
39 Bool_t IsCorePixel() const { return fIsCore; }
40
41 void SetNumPhotons(Float_t f) { fPhot = f; }
42 void SetErrorPhot(Float_t f) { fErrPhot = f; }
43
44 ClassDef(MCerPhotPix, 1) // class containing information about the Cerenkov Photons in a pixel
45};
46
47#endif
48
49
Note: See TracBrowser for help on using the repository browser.