source: trunk/MagicSoft/Mars/manalysis/MCerPhotEvt.h@ 629

Last change on this file since 629 was 603, checked in by harald, 24 years ago
implemented the Image Cleaning a la CT1 to the class MCerPhotEvt changed the readCT1.C file to show the effects of the image cleaning a la CT1
File size: 2.4 KB
Line 
1#ifndef MNPHOTEVENT_H
2#define MNPHOTEVENT_H
3
4#ifndef MPARCONTAINER_H
5#include "MParContainer.h"
6#endif
7
8#include <iostream>
9#include <TROOT.h>
10class TClonesArray ;
11class TObjArray ;
12class MCamNeighbor ;
13
14class 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// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
80
81class MCerPhotEvt : public MParContainer
82{
83 private:
84
85 Int_t fType ; //
86 Int_t fNbPixels ; //
87 TClonesArray *fPixels ; //
88
89
90 MCamNeighbor *fNN ; //! the class with the information about neighbors
91
92 public:
93
94 MCerPhotEvt(const char *name=NULL, const char *title=NULL) ;
95
96 void Draw(Option_t* option = "" ) ;
97
98 Int_t GetNbPixels() ;
99
100 void AddPixel(Int_t id, Float_t nph, Float_t err );
101
102 void Clear() ;
103
104 void Print() ;
105
106 void CleanLevel1() ;
107 void CleanLevel2() ;
108 void CleanLevel3() ;
109
110 Bool_t PixelExist( Int_t id ) ;
111 Bool_t PixelIsUsed( Int_t id ) ;
112 Bool_t PixelIsCore( Int_t id ) ;
113
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
122 ClassDef(MCerPhotEvt, 1) // class for Nphotons Events
123};
124
125#endif
126
127
Note: See TracBrowser for help on using the repository browser.