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

Last change on this file since 691 was 666, checked in by tbretz, 24 years ago
*** empty log message ***
File size: 1.2 KB
Line 
1#ifndef MCERPHOTPIX_H
2#define MCERPHOTPIX_H
3
4#ifndef ROOT_TROOT
5#include <TROOT.h>
6#endif
7
8class MCerPhotPix : public TObject
9{
10 private:
11
12 Int_t fPixId ; // the pixel Id
13 Bool_t fIsUsed ; // the pixel is used for calculations --> kTRUE
14 Bool_t fIsCore ; // the pixel is a Core pixel --> kTRUE
15 Float_t fPhot ; // The number of Cerenkov photons
16 Float_t fErrPhot ; // the error of fPhot
17
18 public:
19
20 MCerPhotPix(Int_t pix = -1, Float_t phot=0. , Float_t errphot=0.) ;
21
22 void Print(Option_t *opt = NULL) ;
23
24 Int_t GetPixId() const { return fPixId ; }
25 Float_t GetNumPhotons() const { return fPhot ; }
26 Float_t GetErrorPhot() const { return fErrPhot ; }
27
28 void SetPixelContent(Int_t pix, Float_t phot, Float_t errphot);
29
30 Bool_t IsPixelUsed() const { return fIsUsed ; }
31 void SetPixelUnused() { fIsUsed = kFALSE ; }
32 void SetPixelUsed() { fIsUsed = kTRUE ; }
33
34 void SetCorePixel() { fIsCore = kTRUE ; }
35 Bool_t IsCorePixel() const { return fIsCore ; }
36
37 void SetNumPhotons(Float_t f) { fPhot = f; }
38 void SetErrorPhot(Float_t f) { fErrPhot = f; }
39
40 ClassDef(MCerPhotPix, 1) // Cerenkov Photons class for the pixel
41} ;
42
43#endif
44
45
Note: See TracBrowser for help on using the repository browser.