8 for i
in range(len(trtElements1)):
16 if len(trtElements1[i]) == 8:
21 trt_wheel = trtElements1[i][1]
22 trt_strawlayer = trtElements1[i][3]
24 trt_x1 = trtElements1[i][xIndex]
25 trt_y1 = trtElements1[i][yIndex]
26 trt_z1 = trtElements1[i][zIndex]
28 trt_x2 = trtElements2[i][xIndex]
29 trt_y2 = trtElements2[i][yIndex]
30 trt_z2 = trtElements2[i][zIndex]
32 if abs(trtElements1[i][0]) == 1:
39 if trtElements1[i][3] == 15:
40 if trtElements1[i][0] == -1:
44 line.SetLineColor(kGreen+1)
45 line.DrawArrow(trt_x1,trt_y1,trt_x1+TRASL_FACTOR*(trt_x2-trt_x1),trt_y1+TRASL_FACTOR*(trt_y2-trt_y1),0.01,
"")
49 line.SetLineColor(kGreen-2)
51 line.SetLineColor(kGreen+2)
52 line.DrawArrow(trt_x1,trt_y1,trt_x1+TRASL_FACTOR*(trt_x2-trt_x1),trt_y1+TRASL_FACTOR*(trt_y2-trt_y1),0.01,
"")
55 trt_lay = trtElements1[i][1]
56 trt_phi = trtElements1[i][2]
59 if trtElements1[i][0] == -1:
61 x1_Cside[(trt_lay,trt_phi)] = trt_x1
62 y1_Cside[(trt_lay,trt_phi)] = trt_y1
64 x2_Cside[(trt_lay,trt_phi)] = trt_x2
65 y2_Cside[(trt_lay,trt_phi)] = trt_y2
70 x1_Aside[(trt_lay,trt_phi)] = trt_x1
71 y1_Aside[(trt_lay,trt_phi)] = trt_y1
72 z1_Aside[(trt_lay,trt_phi)] = trt_z1
74 x2_Aside[(trt_lay,trt_phi)] = trt_x2
75 y2_Aside[(trt_lay,trt_phi)] = trt_y2
78 if len(drawTRTModules) > 0:
79 trt_bec = trtElements1[i][0]
83 trt_lay = trtElements1[i][1]
84 trt_phi = trtElements1[i][2]
87 if (trt_lay, trt_phi)
in drawTRTModules:
90 thisTRTHist = trtModuleHists[(trt_lay),(trt_phi)]
97 theseCans = trtModTransCan[(trt_lay),(trt_phi)]
104 line.SetLineColor(kGreen+1)
105 line.DrawArrow(trt_x1,trt_y1,trt_x1+TRASL_FACTOR*(trt_x2-trt_x1),trt_y1+TRASL_FACTOR*(trt_y2-trt_y1),0.01,
"")
109 if trtElements1[i][0] == 2:
111 ,trt_x2,trt_y2,trt_z2
121 if trtElements1[i][0] == -2:
123 ,trt_x2,trt_y2,trt_z2