Changeset 653 for trunk/MagicSoft/Mars/manalysis/MCerPhotEvt.h
- Timestamp:
- 03/01/01 15:42:32 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MCerPhotEvt.h
r603 r653 1 #ifndef M NPHOTEVENT_H2 #define M NPHOTEVENT_H1 #ifndef MCERPHOTEVT_H 2 #define MCERPHOTEVT_H 3 3 4 #ifndef MAGIC_h 5 #include "MAGIC.h" 6 #endif 7 #ifndef ROOT_TClonesArray 8 #include "TClonesArray.h" 9 #endif 4 10 #ifndef MPARCONTAINER_H 5 11 #include "MParContainer.h" 6 12 #endif 13 #ifndef MCAMNEIGHBOR_H 14 #include "MCamNeighbor.h" 15 #endif 7 16 8 #include <iostream> 9 #include <TROOT.h> 10 class TClonesArray ; 11 class TObjArray ; 12 class MCamNeighbor ; 13 14 class MCerPhotPix : public TObject 15 { 16 private: 17 18 Int_t fPixId ; // the pixel Id 19 Bool_t fIsUsed ; // the pixel is used for calculations --> kTRUE 20 Bool_t fIsCore ; // the pixel is a Core pixel --> kTRUE 21 Float_t fPhot ; // The number of Cerenkov photons 22 Float_t fErrPhot ; // the error of fPhot 23 24 public: 25 26 MCerPhotPix(Int_t pix = -9999, Float_t phot=0. , Float_t errphot=0.) ; 27 28 void Print() ; 29 30 Int_t GetPixId() 31 { 32 return fPixId ; 33 } 34 35 Float_t GetPhotons() 36 { 37 return fPhot ; 38 } 39 40 Float_t GetErrorPhot() 41 { 42 return fErrPhot ; 43 } 44 45 void SetPixelContent(Int_t pix , Float_t phot , Float_t errphot ) ; 46 47 Bool_t IsPixelUsed() 48 { 49 return fIsUsed ; 50 } 51 52 void SetPixelUnused() 53 { 54 fIsUsed = kFALSE ; 55 } 56 57 void SetPixelUsed() 58 { 59 fIsUsed = kTRUE ; 60 } 61 62 void SetCorePixel() 63 { 64 fIsCore = kTRUE ; 65 } 66 67 Bool_t IsCorePixel() 68 { 69 return fIsCore ; 70 } 71 72 73 ClassDef(MCerPhotPix, 1) // Cerenkov Photons class for the pixel 74 } ; 75 76 77 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 78 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 79 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 17 class MCerPhotPix; 80 18 81 19 class MCerPhotEvt : public MParContainer 82 20 { 83 private: 21 private: 84 22 85 Int_t fType ; //86 Int_t fNbPixels ; //87 TClonesArray *fPixels ; //23 Int_t fType; 24 Int_t fNbPixels; 25 TClonesArray *fPixels; 88 26 27 MCamNeighbor fNN; //! the class with the information about neighbors 89 28 90 MCamNeighbor *fNN ; //! the class with the information about neighbors 91 92 public: 93 94 MCerPhotEvt(const char *name=NULL, const char *title=NULL) ; 29 public: 30 MCerPhotEvt(const char *name=NULL, const char *title=NULL) ; 95 31 96 32 void Draw(Option_t* option = "" ) ; … … 100 36 void AddPixel(Int_t id, Float_t nph, Float_t err ); 101 37 102 void Clear( ) ;38 void Clear(Option_t *opt=NULL) ; 103 39 104 void Print( ) ;40 void Print(Option_t *opt=NULL) ; 105 41 106 42 void CleanLevel1() ; … … 108 44 void CleanLevel3() ; 109 45 110 Bool_t PixelExist( Int_t id ) ;111 Bool_t PixelIsUsed( Int_t id ) ;112 Bool_t PixelIsCore( Int_t id ) ;46 Bool_t IsPixelExisting( Int_t id ) ; 47 Bool_t IsPixelUsed ( Int_t id ) ; 48 Bool_t IsPixelCore ( Int_t id ) ; 113 49 114 Int_t GetPixelId(Int_t i ) ; 115 Bool_t IsPixelUsed(Int_t i ) ; 116 Float_t GetPhotons(Int_t i ) ; 117 Float_t GetErrorPhot(Int_t i ) ; 118 119 Float_t GetMinimumPhoton() ; 120 Float_t GetMaximumPhoton() ; 121 50 Float_t GetMinNumPhotons(); 51 Float_t GetMaxNumPhotons(); 52 53 MCerPhotPix &operator[](int i) { return *(MCerPhotPix*)(fPixels->At(i)); } 54 122 55 ClassDef(MCerPhotEvt, 1) // class for Nphotons Events 123 56 }; … … 125 58 #endif 126 59 127
Note:
See TracChangeset
for help on using the changeset viewer.