1 BarrelTrans = TCanvas(
"TRT Barrel Translations",
"TRT Barrel Translations ",800,800)
3 h1 = gPad.DrawFrame(-1*trtDim,-1*trtDim,trtDim,trtDim)
4 h1.SetTitle(
"translation x"+
str(TRASL_FACTOR))
5 h1.GetXaxis().SetTitle(
"x [mm]")
6 h1.GetYaxis().SetTitle(
"y [mm]")
8 line.DrawArrow(-TRASL_FACTOR/2./10,0,TRASL_FACTOR/2/10.,0,0.01,
"|-|")
10 text.DrawText(0,-100,
"0.1 mm")
14 x1 = (x1_Aside[mod] + x1_Cside[mod]) / 2
15 y1 = (y1_Aside[mod] + y1_Cside[mod]) / 2
17 x2 = (x2_Aside[mod] + x2_Cside[mod]) / 2
18 y2 = (y2_Aside[mod] + y2_Cside[mod]) / 2
23 line.SetLineColor(kGreen+1)
24 line.DrawArrow(x1,y1,x1+TRASL_FACTOR*(dx),y1+TRASL_FACTOR*(dy),0.01,
"")
32 BarrelRotxy = TCanvas(
"TRT Barrel Ratations r-phi",
"TRT Barrel Rotations r-phi ",800,800)
35 h1 = gPad.DrawFrame(-1*trtDim,-1*trtDim,trtDim,trtDim)
36 h1.SetTitle(
"rotation x"+
str(ROTXY_FACTOR))
37 h1.GetXaxis().SetTitle(
"x [mm]")
38 h1.GetYaxis().SetTitle(
"y [mm]")
40 line.DrawArrow(-ROTXY_FACTOR/2./1000,0,ROTXY_FACTOR/2/1000.,0,0.01,
"|-|")
42 text.DrawText(0,-100,
"pi/4 mrad")
46 x1 = (x1_Aside[mod] + x1_Cside[mod]) / 2
47 y1 = (y1_Aside[mod] + y1_Cside[mod]) / 2
49 x2 = (x2_Aside[mod] + x2_Cside[mod]) / 2
50 y2 = (y2_Aside[mod] + y2_Cside[mod]) / 2
54 dxA = (x2_Aside[mod] - x2)/z1_Aside[mod]/2
55 dyA = (y2_Aside[mod] - y2)/z1_Aside[mod]/2
57 dxC = (x2_Cside[mod] - x2)/z1_Aside[mod]/2
58 dyC = (y2_Cside[mod] - y2)/z1_Aside[mod]/2
61 line.SetLineColor(kGreen-2)
63 line.DrawArrow(x1,y1,x1+ROTXY_FACTOR*(dxA),y1+ROTXY_FACTOR*(dyA),0.01,
"-")
65 line.SetLineColor(kGreen+2)
67 line.DrawArrow(x1,y1,x1+ROTXY_FACTOR*(dxC),y1+ROTXY_FACTOR*(dyC),0.01,
"-")