Last change
on this file since 646 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:
1.4 KB
|
Line | |
---|
1 | #ifndef MCAMGEOM_H
|
---|
2 | #define MCAMGEOM_H
|
---|
3 |
|
---|
4 | #include <iostream>
|
---|
5 |
|
---|
6 | #include "MAGIC.h"
|
---|
7 |
|
---|
8 | class TObjArray ;
|
---|
9 |
|
---|
10 | class MPixGeom : public TObject
|
---|
11 | {
|
---|
12 | private:
|
---|
13 | Float_t fX ; // the x coordinate
|
---|
14 | Float_t fY ; // the y coordinate
|
---|
15 | Float_t fR ; // the y coordinate
|
---|
16 |
|
---|
17 | public:
|
---|
18 |
|
---|
19 | MPixGeom(Float_t x=0. , Float_t y=0., Float_t r=0.) ;
|
---|
20 |
|
---|
21 | void Print() ;
|
---|
22 |
|
---|
23 | void SetX ( Float_t x )
|
---|
24 | {
|
---|
25 | fX = x ;
|
---|
26 | }
|
---|
27 |
|
---|
28 | void SetY ( Float_t y )
|
---|
29 | {
|
---|
30 | fY = y ;
|
---|
31 | }
|
---|
32 |
|
---|
33 | void SetR ( Float_t r )
|
---|
34 | {
|
---|
35 | fR = r ;
|
---|
36 | }
|
---|
37 |
|
---|
38 | Float_t GetX()
|
---|
39 | {
|
---|
40 | return fX ;
|
---|
41 | }
|
---|
42 |
|
---|
43 | Float_t GetY()
|
---|
44 | {
|
---|
45 | return fY ;
|
---|
46 | }
|
---|
47 |
|
---|
48 | Float_t GetR()
|
---|
49 | {
|
---|
50 | return fR ;
|
---|
51 | }
|
---|
52 |
|
---|
53 |
|
---|
54 | ClassDef(MPixGeom, 1) // Geometric class for the pixel
|
---|
55 | } ;
|
---|
56 |
|
---|
57 |
|
---|
58 | // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
---|
59 | // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
---|
60 | // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
---|
61 |
|
---|
62 | class MCamGeom
|
---|
63 | {
|
---|
64 | private:
|
---|
65 | Int_t fNbPixels ; //
|
---|
66 | TObjArray *fPixels ; //!
|
---|
67 |
|
---|
68 | void CreateMagic() ;
|
---|
69 | void CreateCT1() ;
|
---|
70 |
|
---|
71 | public:
|
---|
72 |
|
---|
73 | MCamGeom( Int_t type=0 ) ;
|
---|
74 |
|
---|
75 | void Draw(Option_t *option = "" ) ;
|
---|
76 |
|
---|
77 | Int_t GetNbPixels() ;
|
---|
78 | Float_t GetX(Int_t iPix ) ;
|
---|
79 | Float_t GetY(Int_t iPix ) ;
|
---|
80 | Float_t GetR(Int_t iPix ) ;
|
---|
81 |
|
---|
82 | void Print() ;
|
---|
83 |
|
---|
84 | ClassDef(MCamGeom, 1) // Base (abstract) class for a task
|
---|
85 | };
|
---|
86 |
|
---|
87 | #endif
|
---|
88 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.