source: trunk/MagicSoft/Mars/manalysis/MNphotEvent.h@ 597

Last change on this file since 597 was 597, checked in by harald, 24 years ago
Adding the first version of an Image Cleaning. Therefore a first version of Class MCamNeigbor was implemented. The Image cleaning is done in class MNphotEvent.
File size: 2.2 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 MNphotPix : 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 Float_t fPhot ; // The number of Cerenkov photons
21 Float_t fErrPhot ; // the error of fPhot
22
23 public:
24
25 MNphotPix(Int_t pix = -9999, Float_t phot=0. , Float_t errphot=0.) ;
26
27 void Print() ;
28
29 Int_t GetPixId()
30 {
31 return fPixId ;
32 }
33
34 Float_t GetPhotons()
35 {
36 return fPhot ;
37 }
38
39 Float_t GetErrorPhot()
40 {
41 return fErrPhot ;
42 }
43
44 void SetPixelContent(Int_t pix , Float_t phot , Float_t errphot ) ;
45
46 Bool_t IsPixelUsed()
47 {
48 return fIsUsed ;
49 }
50
51 void SetPixelUnused()
52 {
53 fIsUsed = kFALSE ;
54 }
55
56 void SetPixelUsed()
57 {
58 fIsUsed = kTRUE ;
59 }
60
61
62
63 ClassDef(MNphotPix, 1) // Cerenkov Photons class for the pixel
64} ;
65
66
67// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
68// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
69// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
70
71class MNphotEvent : public MParContainer
72{
73 private:
74
75 Int_t fType ; //
76 Int_t fNbPixels ; //
77 TClonesArray *fPixels ; //
78
79
80 MCamNeighbor *fNN ; //! the class with the information about neighbors
81
82 public:
83
84 MNphotEvent(const char *name=NULL, const char *title=NULL) ;
85
86 void Draw(Option_t* option = "" ) ;
87
88 Int_t GetNbPixels() ;
89
90 void AddPixel(Int_t id, Float_t nph, Float_t err );
91
92 void Clear() ;
93
94 void Print() ;
95
96 void CleanLevel1() ;
97 void CleanLevel2() ;
98
99 Bool_t PixelExist( Int_t id ) ;
100 Bool_t PixelIsUsed( Int_t id ) ;
101
102 Int_t GetPixelId(Int_t i ) ;
103 Bool_t IsPixelUsed(Int_t i ) ;
104 Float_t GetPhotons(Int_t i ) ;
105 Float_t GetErrorPhot(Int_t i ) ;
106
107 Float_t GetMinimumPhoton() ;
108 Float_t GetMaximumPhoton() ;
109
110 ClassDef(MNphotEvent, 1) // class for Nphotons Events
111};
112
113#endif
114
115
Note: See TracBrowser for help on using the repository browser.