3 IDTransCan = TCanvas(
"ID Translation Visualization ",
"ID differences ",800,800)
5 h1 = gPad.DrawFrame(-1*IDDim,-1*IDDim,IDDim,IDDim)
6 h1.SetTitle(
"translation x"+
str(TRASL_FACTOR))
7 h1.GetXaxis().SetTitle(
"x [mm]")
8 h1.GetYaxis().SetTitle(
"y [mm]")
10 line.DrawArrow(500-TRASL_FACTOR/2./10,-1000,500+TRASL_FACTOR/2/10.,-1000,0.01,
"|-|")
12 text.DrawText(500,-1100,
"0.1 mm")
17 iblTransCan.append(TCanvas(
"IBL Translation Visualization "+
str(i-10),
"IBL Eta module "+
str(i-10),800,800) )
19 h1 = gPad.DrawFrame(-1*iblDim,-1*iblDim,iblDim,iblDim)
20 h1.SetTitle(
"Translations x"+
str(TRASL_FACTOR)+
" Eta Module "+
str(i-10))
21 h1.GetXaxis().SetTitle(
"x [mm]")
22 h1.GetYaxis().SetTitle(
"y [mm]")
26 line.DrawArrow(150-TRASL_FACTOR/2./10,-200,150+TRASL_FACTOR/2/10.,-200,0.01,
"|-|")
28 text.DrawText(150,-180,
"0.1 mm")
33 pixelTransCan.append(TCanvas(
"Pixel Translation Visualization "+
str(i-6),
"Pixel Eta module "+
str(i-6),800,800) )
35 h1 = gPad.DrawFrame(-1*pixDim,-1*pixDim,pixDim,pixDim)
36 h1.SetTitle(
"Translations x"+
str(TRASL_FACTOR)+
" Eta Module "+
str(i-6))
37 h1.GetXaxis().SetTitle(
"x [mm]")
38 h1.GetYaxis().SetTitle(
"y [mm]")
42 line.DrawArrow(150-TRASL_FACTOR/2./10,-200,150+TRASL_FACTOR/2/10.,-200,0.01,
"|-|")
44 text.DrawText(150,-180,
"0.1 mm")
49 sctTransCan.append(TCanvas(
"SCT Translation Visualization "+
str(i-6),
"Sct Eta module "+
str(i-6),800,800) )
51 h1 = gPad.DrawFrame(-1*sctDim,-1*sctDim,sctDim,sctDim)
52 h1.SetTitle(
"translation x"+
str(TRASL_FACTOR)+
" Eta Module "+
str(i-6))
53 h1.GetXaxis().SetTitle(
"x [mm]")
54 h1.GetYaxis().SetTitle(
"y [mm]")
58 line.DrawArrow(-TRASL_FACTOR/2./10,0,TRASL_FACTOR/2/10.,0,0.01,
"|-|")
60 text.DrawText(0,-100,
"0.1 mm")
71 trtTransCan.append(TCanvas(
"TRT Translation Visualization Moludes "+
str(i),
"TRT differences Modules "+
str(i),800,800) )
73 h1 = gPad.DrawFrame(-1*trtDim,-1*trtDim,trtDim,trtDim)
74 h1.SetTitle(
"translation x"+
str(TRASL_FACTOR))
75 h1.GetXaxis().SetTitle(
"x [mm]")
76 h1.GetYaxis().SetTitle(
"y [mm]")
78 line.DrawArrow(-TRASL_FACTOR/2./10,0,TRASL_FACTOR/2/10.,0,0.01,
"|-|")
80 text.DrawText(0,-100,
"0.1 mm")
88 for thisMod
in range(len(drawTRTModules)):
89 thisLay = drawTRTModules[thisMod][0]
90 thisPhi = drawTRTModules[thisMod][1]
100 tempTransCanList.append(TCanvas(
"TRT Translation Visualization Lay: "+
str(thisLay)+
" Phi: "+
str(thisPhi)+
" Side "+
str(side)
101 ,
"TRT differences Straws in Lay: "+
str(thisLay)+
" Phi: "+
str(thisPhi)+
" Side "+
str(side)
104 h1 = gPad.DrawFrame(-1*trtDim,-1*trtDim,trtDim,trtDim)
105 h1.SetTitle(
"translation x"+
str(TRASL_FACTOR))
106 h1.GetXaxis().SetTitle(
"x [mm]")
107 h1.GetYaxis().SetTitle(
"y [mm]")
109 line.DrawArrow(-TRASL_FACTOR/2./10,0,TRASL_FACTOR/2/10.,0,0.01,
"|-|")
111 text.DrawText(0,-100,
"0.1 mm")
114 trtModTransCan[(thisLay,thisPhi)] = tempTransCanList
141 trtEndcapAStrawPlanes = []
144 trtEndcapAStrawPlanes.append(TCanvas(
"TRT Visualization Straw Plane "+
str(i)+
" Endcap A",
"TRT Visualization Straw Plane "+
str(i)+
" Endcap A",800,800) )
146 h1 = gPad.DrawFrame(-1*trtDim,-1*trtDim,trtDim,trtDim)
147 h1.SetTitle(
"translation x"+
str(TRASL_FACTOR))
148 h1.GetXaxis().SetTitle(
"x [mm]")
149 h1.GetYaxis().SetTitle(
"y [mm]")
151 line.DrawArrow(-TRASL_FACTOR/2./10,0,TRASL_FACTOR/2/10.,0,0.01,
"|-|")
153 text.DrawText(0,-100,
"0.1 mm")
156 trtEndcapCStrawPlanes = []
158 trtEndcapCStrawPlanes.append(TCanvas(
"TRT Visualization Straw Plane "+
str(i)+
" Endcap C",
"TRT Visualization Straw Plane "+
str(i)+
" Endcap C",800,800) )
160 h1 = gPad.DrawFrame(-1*trtDim,-1*trtDim,trtDim,trtDim)
161 h1.SetTitle(
"translation x"+
str(TRASL_FACTOR))
162 h1.GetXaxis().SetTitle(
"x [mm]")
163 h1.GetYaxis().SetTitle(
"y [mm]")
165 line.DrawArrow(-TRASL_FACTOR/2./10,0,TRASL_FACTOR/2/10.,0,0.01,
"|-|")
167 text.DrawText(0,-100,
"0.1 mm")