source: trunk/MagicSoft/Mars/mgui/MGeomCamMagic.cc@ 700

Last change on this file since 700 was 695, checked in by tbretz, 24 years ago
*** empty log message ***
  • Property svn:executable set to *
File size: 17.4 KB
Line 
1#include "MGeomCamMagic.h"
2
3#include "TCanvas.h"
4
5#include "MLog.h"
6
7ClassImp(MGeomCamMagic)
8
9MGeomCamMagic::MGeomCamMagic(const char *name) : MGeomCam(577, name, "Geometry information of Magic Camera")
10{
11 CreateCam();
12}
13
14void MGeomCamMagic::Draw(Option_t *)
15{
16 TCanvas *can = new TCanvas("can", "Camera Geometry", 4 ) ;
17
18 can->Range(-600, -600, 600, 600 ) ;
19
20 MGeomCam::Draw();
21}
22
23void MGeomCamMagic::CreateCam()
24{
25 //
26 // fill the geometry class with the coordinates of the MAGIC camera
27 //
28 *fLog << " Creating Magic geometry " << endl ;
29
30 //
31 // here define the hardwire things of the magic telescope
32 //
33 const Float_t xtemp[577] = {
34 +000.000, 30.000, 15.000, -15.000, -30.000, -15.000, 15.000, 60.000,
35 +045.000, 30.000, 0.000, -30.000, -45.000, -60.000, -45.000, -30.000,
36 +000.000, 30.000, 45.000, 90.000, 75.000, 60.000, 45.000, 15.000,
37 -015.000, -45.000, -60.000, -75.000, -90.000, -75.000, -60.000, -45.000,
38 -015.000, 15.000, 45.000, 60.000, 75.000, 120.000, 105.000, 90.000,
39 +075.000, 60.000, 30.000, 0.000, -30.000, -60.000, -75.000, -90.000,
40 -105.000, -120.000, -105.000, -90.000, -75.000, -60.000, -30.000, 0.000,
41 +030.000, 60.000, 75.000, 90.000, 105.000, 150.000, 135.000, 120.000,
42 +105.000, 90.000, 75.000, 45.000, 15.000, -15.000, -45.000, -75.000,
43 -090.000, -105.000, -120.000, -135.000, -150.000, -135.000, -120.000, -105.000,
44 -090.000, -75.000, -45.000, -15.000, 15.000, 45.000, 75.000, 90.000,
45 +105.000, 120.000, 135.000, 180.000, 165.000, 150.000, 135.000, 120.000,
46 +105.000, 90.000, 60.000, 30.000, 0.000, -30.000, -60.000, -90.000,
47 -105.000, -120.000, -135.000, -150.000, -165.000, -180.000, -165.000, -150.000,
48 -135.000, -120.000, -105.000, -90.000, -60.000, -30.000, 0.000, 30.000,
49 +060.000, 90.000, 105.000, 120.000, 135.000, 150.000, 165.000, 210.000,
50 +195.000, 180.000, 165.000, 150.000, 135.000, 120.000, 105.000, 75.000,
51 +045.000, 15.000, -15.000, -45.000, -75.000, -105.000, -120.000, -135.000,
52 -150.000, -165.000, -180.000, -195.000, -210.000, -195.000, -180.000, -165.000,
53 -150.000, -135.000, -120.000, -105.000, -75.000, -45.000, -15.000, 15.000,
54 +045.000, 75.000, 105.000, 120.000, 135.000, 150.000, 165.000, 180.000,
55 +195.000, 240.000, 225.000, 210.000, 195.000, 180.000, 165.000, 150.000,
56 +135.000, 120.000, 90.000, 60.000, 30.000, 0.000, -30.000, -60.000,
57 -090.000, -120.000, -135.000, -150.000, -165.000, -180.000, -195.000, -210.000,
58 -225.000, -240.000, -225.000, -210.000, -195.000, -180.000, -165.000, -150.000,
59 -135.000, -120.000, -90.000, -60.000, -30.000, 0.000, 30.000, 60.000,
60 +090.000, 120.000, 135.000, 150.000, 165.000, 180.000, 195.000, 210.000,
61 +225.000, 270.000, 255.000, 240.000, 225.000, 210.000, 195.000, 180.000,
62 +165.000, 150.000, 135.000, 105.000, 75.000, 45.000, 15.000, -15.000,
63 -045.000, -75.000, -105.000, -135.000, -150.000, -165.000, -180.000, -195.000,
64 -210.000, -225.000, -240.000, -255.000, -270.000, -255.000, -240.000, -225.000,
65 -210.000, -195.000, -180.000, -165.000, -150.000, -135.000, -105.000, -75.000,
66 -045.000, -15.000, 15.000, 45.000, 75.000, 105.000, 135.000, 150.000,
67 +165.000, 180.000, 195.000, 210.000, 225.000, 240.000, 255.000, 300.000,
68 +285.000, 270.000, 255.000, 240.000, 225.000, 210.000, 195.000, 180.000,
69 +165.000, 150.000, 120.000, 90.000, 60.000, 30.000, 0.000, -30.000,
70 -060.000, -90.000, -120.000, -150.000, -165.000, -180.000, -195.000, -210.000,
71 -225.000, -240.000, -255.000, -270.000, -285.000, -300.000, -285.000, -270.000,
72 -255.000, -240.000, -225.000, -210.000, -195.000, -180.000, -165.000, -150.000,
73 -120.000, -90.000, -60.000, -30.000, 0.000, 30.000, 60.000, 90.000,
74 +120.000, 150.000, 165.000, 180.000, 195.000, 210.000, 225.000, 240.000,
75 +255.000, 270.000, 285.000, 330.000, 315.000, 300.000, 285.000, 270.000,
76 +255.000, 240.000, 225.000, 210.000, 195.000, 180.000, 165.000, 135.000,
77 +105.000, 75.000, 45.000, 15.000, -15.000, -45.000, -75.000, -105.000,
78 -135.000, -165.000, -180.000, -195.000, -210.000, -225.000, -240.000, -255.000,
79 -270.000, -285.000, -300.000, -315.000, -330.000, -315.000, -300.000, -285.000,
80 -270.000, -255.000, -240.000, -225.000, -210.000, -195.000, -180.000, -165.000,
81 -135.000, -105.000, -75.000, -45.000, -15.000, 15.000, 45.000, 75.000,
82 +105.000, 135.000, 165.000, 180.000, 195.000, 210.000, 225.000, 240.000,
83 +255.000, 270.000, 285.000, 300.000, 315.000, 360.000, 330.000, 300.000,
84 +270.000, 240.000, 210.000, 150.000, 90.000, 30.000, -30.000, -90.000,
85 -150.000, -210.000, -240.000, -270.000, -300.000, -330.000, -360.000, -360.000,
86 -330.000, -300.000, -270.000, -240.000, -210.000, -150.000, -90.000, -30.000,
87 +030.000, 90.000, 150.000, 210.000, 240.000, 270.000, 300.000, 330.000,
88 +360.000, 420.000, 390.000, 360.000, 330.000, 300.000, 270.000, 240.000,
89 +180.000, 120.000, 60.000, 0.000, -60.000, -120.000, -180.000, -240.000,
90 -270.000, -300.000, -330.000, -360.000, -390.000, -420.000, -420.000, -390.000,
91 -360.000, -330.000, -300.000, -270.000, -240.000, -180.000, -120.000, -60.000,
92 +000.000, 60.000, 120.000, 180.000, 240.000, 270.000, 300.000, 330.000,
93 +360.000, 390.000, 420.000, 480.000, 450.000, 420.000, 390.000, 360.000,
94 +330.000, 300.000, 270.000, 210.000, 150.000, 90.000, 30.000, -30.000,
95 -090.000, -150.000, -210.000, -270.000, -300.000, -330.000, -360.000, -390.000,
96 -420.000, -450.000, -480.000, -480.000, -450.000, -420.000, -390.000, -360.000,
97 -330.000, -300.000, -270.000, -210.000, -150.000, -90.000, -30.000, 30.000,
98 +090.000, 150.000, 210.000, 270.000, 300.000, 330.000, 360.000, 390.000,
99 +420.000, 450.000, 480.000, 540.000, 510.000, 480.000, 450.000, 420.000,
100 +390.000, 360.000, 330.000, 300.000, 240.000, 180.000, 120.000, 60.000,
101 +000.000, -60.000, -120.000, -180.000, -240.000, -300.000, -330.000, -360.000,
102 -390.000, -420.000, -450.000, -480.000, -510.000, -540.000, -540.000, -510.000,
103 -480.000, -450.000, -420.000, -390.000, -360.000, -330.000, -300.000, -240.000,
104 -180.000, -120.000, -60.000, 0.000, 60.000, 120.000, 180.000, 240.000,
105 +300.000, 330.000, 360.000, 390.000, 420.000, 450.000, 480.000, 510.000,
106 +540.000
107 };
108
109 const Float_t ytemp[577] = {
110 +000.000, 0.000, 25.981, 25.981, 0.000, -25.981, -25.981, 0.000,
111 +025.981, 51.961, 51.961, 51.961, 25.981, 0.000, -25.981, -51.961,
112 -051.961, -51.961, -25.981, 0.000, 25.981, 51.961, 77.942, 77.942,
113 +077.942, 77.942, 51.961, 25.981, 0.000, -25.981, -51.961, -77.942,
114 -077.942, -77.942, -77.942, -51.961, -25.981, 0.000, 25.981, 51.961,
115 +077.942, 103.923, 103.923, 103.923, 103.923, 103.923, 77.942, 51.961,
116 +025.981, 0.000, -25.981, -51.961, -77.942, -103.923, -103.923, -103.923,
117 -103.923, -103.923, -77.942, -51.961, -25.981, 0.000, 25.981, 51.961,
118 +077.942, 103.923, 129.904, 129.904, 129.904, 129.904, 129.904, 129.904,
119 +103.923, 77.942, 51.961, 25.981, 0.000, -25.981, -51.961, -77.942,
120 -103.923, -129.904, -129.904, -129.904, -129.904, -129.904, -129.904, -103.923,
121 -077.942, -51.961, -25.981, 0.000, 25.981, 51.961, 77.942, 103.923,
122 +129.904, 155.885, 155.885, 155.885, 155.885, 155.885, 155.885, 155.885,
123 +129.904, 103.923, 77.942, 51.961, 25.981, 0.000, -25.981, -51.961,
124 -077.942, -103.923, -129.904, -155.885, -155.885, -155.885, -155.885, -155.885,
125 -155.885, -155.885, -129.904, -103.923, -77.942, -51.961, -25.981, 0.000,
126 +025.981, 51.961, 77.942, 103.923, 129.904, 155.885, 181.865, 181.865,
127 +181.865, 181.865, 181.865, 181.865, 181.865, 181.865, 155.885, 129.904,
128 +103.923, 77.942, 51.961, 25.981, 0.000, -25.981, -51.961, -77.942,
129 -103.923, -129.904, -155.885, -181.865, -181.865, -181.865, -181.865, -181.865,
130 -181.865, -181.865, -181.865, -155.885, -129.904, -103.923, -77.942, -51.961,
131 -025.981, 0.000, 25.981, 51.961, 77.942, 103.923, 129.904, 155.885,
132 +181.865, 207.846, 207.846, 207.846, 207.846, 207.846, 207.846, 207.846,
133 +207.846, 207.846, 181.865, 155.885, 129.904, 103.923, 77.942, 51.961,
134 +025.981, 0.000, -25.981, -51.961, -77.942, -103.923, -129.904, -155.885,
135 -181.865, -207.846, -207.846, -207.846, -207.846, -207.846, -207.846, -207.846,
136 -207.846, -207.846, -181.865, -155.885, -129.904, -103.923, -77.942, -51.961,
137 -025.981, 0.000, 25.981, 51.961, 77.942, 103.923, 129.904, 155.885,
138 +181.865, 207.846, 233.827, 233.827, 233.827, 233.827, 233.827, 233.827,
139 +233.827, 233.827, 233.827, 233.827, 207.846, 181.865, 155.885, 129.904,
140 +103.923, 77.942, 51.961, 25.981, 0.000, -25.981, -51.961, -77.942,
141 -103.923, -129.904, -155.885, -181.865, -207.846, -233.827, -233.827, -233.827,
142 -233.827, -233.827, -233.827, -233.827, -233.827, -233.827, -233.827, -207.846,
143 -181.865, -155.885, -129.904, -103.923, -77.942, -51.961, -25.981, 0.000,
144 +025.981, 51.961, 77.942, 103.923, 129.904, 155.885, 181.865, 207.846,
145 +233.827, 259.808, 259.808, 259.808, 259.808, 259.808, 259.808, 259.808,
146 +259.808, 259.808, 259.808, 259.808, 233.827, 207.846, 181.865, 155.885,
147 +129.904, 103.923, 77.942, 51.961, 25.981, 0.000, -25.981, -51.961,
148 -077.942, -103.923, -129.904, -155.885, -181.865, -207.846, -233.827, -259.808,
149 -259.808, -259.808, -259.808, -259.808, -259.808, -259.808, -259.808, -259.808,
150 -259.808, -259.808, -233.827, -207.846, -181.865, -155.885, -129.904, -103.923,
151 -077.942, -51.961, -25.981, 0.000, 25.981, 51.961, 77.942, 103.923,
152 +129.904, 155.885, 181.865, 207.846, 233.827, 259.808, 285.788, 285.788,
153 +285.788, 285.788, 285.788, 285.788, 285.788, 285.788, 285.788, 285.788,
154 +285.788, 285.788, 259.808, 233.827, 207.846, 181.865, 155.885, 129.904,
155 +103.923, 77.942, 51.961, 25.981, 0.000, -25.981, -51.961, -77.942,
156 -103.923, -129.904, -155.885, -181.865, -207.846, -233.827, -259.808, -285.788,
157 -285.788, -285.788, -285.788, -285.788, -285.788, -285.788, -285.788, -285.788,
158 -285.788, -285.788, -285.788, -259.808, -233.827, -207.846, -181.865, -155.885,
159 -129.904, -103.923, -77.942, -51.961, -25.981, 34.641, 86.603, 138.564,
160 +190.526, 242.487, 294.449, 329.090, 329.090, 329.090, 329.090, 329.090,
161 +329.090, 294.449, 242.487, 190.526, 138.564, 86.603, 34.641, -34.641,
162 -086.603, -138.564, -190.526, -242.487, -294.449, -329.090, -329.090, -329.090,
163 -329.090, -329.090, -329.090, -294.449, -242.487, -190.526, -138.564, -86.603,
164 -034.641, 34.641, 86.603, 138.564, 190.526, 242.487, 294.449, 346.410,
165 +381.051, 381.051, 381.051, 381.051, 381.051, 381.051, 381.051, 346.410,
166 +294.449, 242.487, 190.526, 138.564, 86.603, 34.641, -34.641, -86.603,
167 -138.564, -190.526, -242.487, -294.449, -346.410, -381.051, -381.051, -381.051,
168 -381.051, -381.051, -381.051, -381.051, -346.410, -294.449, -242.487, -190.526,
169 -138.564, -86.603, -34.641, 34.641, 86.603, 138.564, 190.526, 242.487,
170 +294.449, 346.410, 398.372, 433.013, 433.013, 433.013, 433.013, 433.013,
171 +433.013, 433.013, 433.013, 398.372, 346.410, 294.449, 242.487, 190.526,
172 +138.564, 86.603, 34.641, -34.641, -86.603, -138.564, -190.526, -242.487,
173 -294.449, -346.410, -398.372, -433.013, -433.013, -433.013, -433.013, -433.013,
174 -433.013, -433.013, -433.013, -398.372, -346.410, -294.449, -242.487, -190.526,
175 -138.564, -86.603, -34.641, 34.641, 86.603, 138.564, 190.526, 242.487,
176 +294.449, 346.410, 398.372, 450.333, 484.974, 484.974, 484.974, 484.974,
177 +484.974, 484.974, 484.974, 484.974, 484.974, 450.333, 398.372, 346.410,
178 +294.449, 242.487, 190.526, 138.564, 86.603, 34.641, -34.641, -86.603,
179 -138.564, -190.526, -242.487, -294.449, -346.410, -398.372, -450.333, -484.974,
180 -484.974, -484.974, -484.974, -484.974, -484.974, -484.974, -484.974, -484.974,
181 -450.333, -398.372, -346.410, -294.449, -242.487, -190.526, -138.564, -86.603,
182 -034.641
183 };
184
185 const Float_t rtemp[577] = {
186 30.00,30.00,30.00,30.00,30.00,30.00,30.00,30.00,
187 30.00,30.00,30.00,30.00,30.00,30.00,30.00,30.00,
188 30.00,30.00,30.00,30.00,30.00,30.00,30.00,30.00,
189 30.00,30.00,30.00,30.00,30.00,30.00,30.00,30.00,
190 30.00,30.00,30.00,30.00,30.00,30.00,30.00,30.00,
191 30.00,30.00,30.00,30.00,30.00,30.00,30.00,30.00,
192 30.00,30.00,30.00,30.00,30.00,30.00,30.00,30.00,
193 30.00,30.00,30.00,30.00,30.00,30.00,30.00,30.00,
194 30.00,30.00,30.00,30.00,30.00,30.00,30.00,30.00,
195 30.00,30.00,30.00,30.00,30.00,30.00,30.00,30.00,
196 30.00,30.00,30.00,30.00,30.00,30.00,30.00,30.00,
197 30.00,30.00,30.00,30.00,30.00,30.00,30.00,30.00,
198 30.00,30.00,30.00,30.00,30.00,30.00,30.00,30.00,
199 30.00,30.00,30.00,30.00,30.00,30.00,30.00,30.00,
200 30.00,30.00,30.00,30.00,30.00,30.00,30.00,30.00,
201 30.00,30.00,30.00,30.00,30.00,30.00,30.00,30.00,
202 30.00,30.00,30.00,30.00,30.00,30.00,30.00,30.00,
203 30.00,30.00,30.00,30.00,30.00,30.00,30.00,30.00,
204 30.00,30.00,30.00,30.00,30.00,30.00,30.00,30.00,
205 30.00,30.00,30.00,30.00,30.00,30.00,30.00,30.00,
206 30.00,30.00,30.00,30.00,30.00,30.00,30.00,30.00,
207 30.00,30.00,30.00,30.00,30.00,30.00,30.00,30.00,
208 30.00,30.00,30.00,30.00,30.00,30.00,30.00,30.00,
209 30.00,30.00,30.00,30.00,30.00,30.00,30.00,30.00,
210 30.00,30.00,30.00,30.00,30.00,30.00,30.00,30.00,
211 30.00,30.00,30.00,30.00,30.00,30.00,30.00,30.00,
212 30.00,30.00,30.00,30.00,30.00,30.00,30.00,30.00,
213 30.00,30.00,30.00,30.00,30.00,30.00,30.00,30.00,
214 30.00,30.00,30.00,30.00,30.00,30.00,30.00,30.00,
215 30.00,30.00,30.00,30.00,30.00,30.00,30.00,30.00,
216 30.00,30.00,30.00,30.00,30.00,30.00,30.00,30.00,
217 30.00,30.00,30.00,30.00,30.00,30.00,30.00,30.00,
218 30.00,30.00,30.00,30.00,30.00,30.00,30.00,30.00,
219 30.00,30.00,30.00,30.00,30.00,30.00,30.00,30.00,
220 30.00,30.00,30.00,30.00,30.00,30.00,30.00,30.00,
221 30.00,30.00,30.00,30.00,30.00,30.00,30.00,30.00,
222 30.00,30.00,30.00,30.00,30.00,30.00,30.00,30.00,
223 30.00,30.00,30.00,30.00,30.00,30.00,30.00,30.00,
224 30.00,30.00,30.00,30.00,30.00,30.00,30.00,30.00,
225 30.00,30.00,30.00,30.00,30.00,30.00,30.00,30.00,
226 30.00,30.00,30.00,30.00,30.00,30.00,30.00,30.00,
227 30.00,30.00,30.00,30.00,30.00,30.00,30.00,30.00,
228 30.00,30.00,30.00,30.00,30.00,30.00,30.00,30.00,
229 30.00,30.00,30.00,30.00,30.00,30.00,30.00,30.00,
230 30.00,30.00,30.00,30.00,30.00,30.00,30.00,30.00,
231 30.00,30.00,30.00,30.00,30.00,30.00,30.00,30.00,
232 30.00,30.00,30.00,30.00,30.00,30.00,30.00,30.00,
233 30.00,30.00,30.00,30.00,30.00,30.00,30.00,30.00,
234 30.00,30.00,30.00,30.00,30.00,30.00,30.00,30.00,
235 30.00,30.00,30.00,30.00,30.00,60.00,60.00,60.00,
236 60.00,60.00,60.00,60.00,60.00,60.00,60.00,60.00,
237 60.00,60.00,60.00,60.00,60.00,60.00,60.00,60.00,
238 60.00,60.00,60.00,60.00,60.00,60.00,60.00,60.00,
239 60.00,60.00,60.00,60.00,60.00,60.00,60.00,60.00,
240 60.00,60.00,60.00,60.00,60.00,60.00,60.00,60.00,
241 60.00,60.00,60.00,60.00,60.00,60.00,60.00,60.00,
242 60.00,60.00,60.00,60.00,60.00,60.00,60.00,60.00,
243 60.00,60.00,60.00,60.00,60.00,60.00,60.00,60.00,
244 60.00,60.00,60.00,60.00,60.00,60.00,60.00,60.00,
245 60.00,60.00,60.00,60.00,60.00,60.00,60.00,60.00,
246 60.00,60.00,60.00,60.00,60.00,60.00,60.00,60.00,
247 60.00,60.00,60.00,60.00,60.00,60.00,60.00,60.00,
248 60.00,60.00,60.00,60.00,60.00,60.00,60.00,60.00,
249 60.00,60.00,60.00,60.00,60.00,60.00,60.00,60.00,
250 60.00,60.00,60.00,60.00,60.00,60.00,60.00,60.00,
251 60.00,60.00,60.00,60.00,60.00,60.00,60.00,60.00,
252 60.00,60.00,60.00,60.00,60.00,60.00,60.00,60.00,
253 60.00,60.00,60.00,60.00,60.00,60.00,60.00,60.00,
254 60.00,60.00,60.00,60.00,60.00,60.00,60.00,60.00,
255 60.00,60.00,60.00,60.00,60.00,60.00,60.00,60.00,
256 60.00,60.00,60.00,60.00,60.00,60.00,60.00,60.00,
257 60.00,60.00,60.00,60.00,60.00,60.00,60.00,60.00,
258 60.00 } ;
259
260 //
261 // fill the pixels list with this data
262 //
263
264 for (UInt_t i = 0; i<GetNumPixels(); i++)
265 {
266 (*this)[i].Set(xtemp[i], ytemp[i], rtemp[i]) ;
267 //fPixels->Add( new MGeomPix() ;
268 }
269}
270
Note: See TracBrowser for help on using the repository browser.