226 {
227 MsgStream log(
msgSvc(),name());
228 log << MSG::INFO << "TestMapping finalize()" << endreq;
229
230 gs_L1_S1 =
new TGraph(
nstrip_L1_x, stripid_L1_x, s_L1_S1);
231 gphi_L1_S1 =
new TGraph(
nstrip_L1_x, stripid_L1_x, phi_L1_S1);
232 gv_L1_S1 =
new TGraph(
nstrip_L1_v, stripid_L1_v, v_L1_S1);
233
234 gs_L2_S1 =
new TGraph(
nstrip_L2_x, stripid_L2_x, s_L2_S1);
235 gphi_L2_S1 =
new TGraph(
nstrip_L2_x, stripid_L2_x, phi_L2_S1);
236 gv_L2_S1 =
new TGraph(
nstrip_L2_v, stripid_L2_v, v_L2_S1);
237 gs_L2_S2 =
new TGraph(
nstrip_L2_x, stripid_L2_x, s_L2_S2);
238 gphi_L2_S2 =
new TGraph(
nstrip_L2_x, stripid_L2_x, phi_L2_S2);
239 gv_L2_S2 =
new TGraph(
nstrip_L2_v, stripid_L2_v, v_L2_S2);
240
241 gs_L3_S1 =
new TGraph(
nstrip_L3_x, stripid_L3_x, s_L3_S1);
242 gphi_L3_S1 =
new TGraph(
nstrip_L3_x, stripid_L3_x, phi_L3_S1);
243 gv_L3_S1 =
new TGraph(
nstrip_L3_v, stripid_L3_v, v_L3_S1);
244 gs_L3_S2 =
new TGraph(
nstrip_L3_x, stripid_L3_x, s_L3_S2);
245 gphi_L3_S2 =
new TGraph(
nstrip_L3_x, stripid_L3_x, phi_L3_S2);
246 gv_L3_S2 =
new TGraph(
nstrip_L3_v, stripid_L3_v, v_L3_S2);
247
248 gs_L1_S1->SetName("gs_L1_S1");
249 gphi_L1_S1->SetName("gphi_L1_S1");
250 gv_L1_S1->SetName("gv_L1_S1");
251
252 gs_L2_S1->SetName("gs_L2_S1");
253 gphi_L2_S1->SetName("gphi_L2_S1");
254 gv_L2_S1->SetName("gv_L2_S1");
255 gs_L2_S2->SetName("gs_L2_S2");
256 gphi_L2_S2->SetName("gphi_L2_S2");
257 gv_L2_S2->SetName("gv_L2_S2");
258
259 gs_L3_S1->SetName("gs_L3_S1");
260 gphi_L3_S1->SetName("gphi_L3_S1");
261 gv_L3_S1->SetName("gv_L3_S1");
262 gs_L3_S2->SetName("gs_L3_S2");
263 gphi_L3_S2->SetName("gphi_L3_S2");
264 gv_L3_S2->SetName("gv_L3_S2");
265
266 gs_L1_S1->Write();
267 gphi_L1_S1->Write();
268 gv_L1_S1->Write();
269
270 gs_L2_S1->Write();
271 gphi_L2_S1->Write();
272 gv_L2_S1->Write();
273 gs_L2_S2->Write();
274 gphi_L2_S2->Write();
275 gv_L2_S2->Write();
276
277 gs_L3_S1->Write();
278 gphi_L3_S1->Write();
279 gv_L3_S1->Write();
280 gs_L3_S2->Write();
281 gphi_L3_S2->Write();
282 gv_L3_S2->Write();
283
284
285 gx_L1_GRAAL =
new TGraph(
nstrip_L1_x, stripid_L1_x_GRAAL, x_L1_GRAAL);
286 gz_L1_GRAAL =
new TGraph(
nstrip_L1_x, stripid_L1_x_GRAAL, z_L1_GRAAL);
287 gphi_L1_GRAAL =
new TGraph(
nstrip_L1_x, stripid_L1_x_GRAAL, phi_L1_GRAAL);
288 gv_L1_GRAAL =
new TGraph(
nstrip_L1_v, stripid_L1_v_GRAAL, v_L1_GRAAL);
289
290 gx_L2_GRAAL =
new TGraph(2*
nstrip_L2_x, stripid_L2_x_GRAAL, x_L2_GRAAL);
291 gz_L2_GRAAL =
new TGraph(2*
nstrip_L2_x, stripid_L2_x_GRAAL, z_L2_GRAAL);
292 gphi_L2_GRAAL =
new TGraph(2*
nstrip_L2_x, stripid_L2_x_GRAAL, phi_L2_GRAAL);
293 gv_L2_GRAAL =
new TGraph(2*
nstrip_L2_v, stripid_L2_v_GRAAL, v_L2_GRAAL);
294
295 gx_L3_GRAAL =
new TGraph(2*
nstrip_L3_x, stripid_L3_x_GRAAL, x_L3_GRAAL);
296 gz_L3_GRAAL =
new TGraph(2*
nstrip_L3_x, stripid_L3_x_GRAAL, z_L3_GRAAL);
297 gphi_L3_GRAAL =
new TGraph(2*
nstrip_L3_x, stripid_L3_x_GRAAL, phi_L3_GRAAL);
298 gv_L3_GRAAL =
new TGraph(2*
nstrip_L3_v, stripid_L3_v_GRAAL, v_L3_GRAAL);
299
300 gx_L1_GRAAL->SetName("gx_L1_GRAAL");
301 gz_L1_GRAAL->SetName("gz_L1_GRAAL");
302 gphi_L1_GRAAL->SetName("gphi_L1_GRAAL");
303 gv_L1_GRAAL->SetName("gv_L1_GRAAL");
304
305 gx_L2_GRAAL->SetName("gx_L2_GRAAL");
306 gz_L2_GRAAL->SetName("gz_L2_GRAAL");
307 gphi_L2_GRAAL->SetName("gphi_L2_GRAAL");
308 gv_L2_GRAAL->SetName("gv_L2_GRAAL");
309
310 gx_L3_GRAAL->SetName("gx_L3_GRAAL");
311 gz_L3_GRAAL->SetName("gz_L3_GRAAL");
312 gphi_L3_GRAAL->SetName("gphi_L3_GRAAL");
313 gv_L3_GRAAL->SetName("gv_L3_GRAAL");
314
315 gx_L1_GRAAL->Write();
316 gz_L1_GRAAL->Write();
317 gphi_L1_GRAAL->Write();
318 gv_L1_GRAAL->Write();
319
320 gx_L2_GRAAL->Write();
321 gz_L2_GRAAL->Write();
322 gphi_L2_GRAAL->Write();
323 gv_L2_GRAAL->Write();
324
325 gx_L3_GRAAL->Write();
326 gz_L3_GRAAL->Write();
327 gphi_L3_GRAAL->Write();
328 gv_L3_GRAAL->Write();
329
330
331 gphi_L1_GRAAL_corr =
new TGraph(
nstrip_L1_x, stripid_L1_x_GRAAL, phi_L1_GRAAL_corr);
332 gphi_L2_GRAAL_corr =
new TGraph(2*
nstrip_L2_x, stripid_L2_x_GRAAL, phi_L2_GRAAL_corr);
333 gphi_L3_GRAAL_corr =
new TGraph(2*
nstrip_L3_x, stripid_L3_x_GRAAL, phi_L3_GRAAL_corr);
334
335 gphi_L1_GRAAL_corr->SetName("gphi_L1_GRAAL_corr");
336 gphi_L2_GRAAL_corr->SetName("gphi_L2_GRAAL_corr");
337 gphi_L3_GRAAL_corr->SetName("gphi_L3_GRAAL_corr");
338
339 gphi_L1_GRAAL_corr->Write();
340 gphi_L2_GRAAL_corr->Write();
341 gphi_L3_GRAAL_corr->Write();
342
343
344
345 output->Write();
346 output->Close();
347
348 return StatusCode::SUCCESS;
349}