7 for i
in range(len(sctElements1)):
8 sct_x1 = sctElements1[i][4]
9 sct_y1 = sctElements1[i][5]
10 sct_z1 = sctElements1[i][6]
12 sct_x2 = sctElements2[i][4]
13 sct_y2 = sctElements2[i][5]
14 sct_z2 = sctElements2[i][6]
16 if sctElements1[i][0] == 0:
23 etaMod =
int(sctElements1[i][3])
29 sctTransCan[etaMod].
cd()
30 line.SetLineColor(kBlue+1)
31 line.DrawArrow(sct_x1,sct_y1,sct_x1+TRASL_FACTOR*(sct_x2-sct_x1),sct_y1+TRASL_FACTOR*(sct_y2-sct_y1),0.01,
"")
35 line.SetLineColor(kBlue+1)
36 line.DrawArrow(sct_x1,sct_y1,sct_x1+TRASL_FACTOR*(sct_x2-sct_x1),sct_y1+TRASL_FACTOR*(sct_y2-sct_y1),0.01,
"")
40 color = 51 +
int(sctElements1[i][2])
42 color = 51 - (color- 100)
44 sctPoly = TPolyLine3D(2)
45 sctPoly.SetLineWidth(1)
46 sctPoly.SetLineColor(color)
52 sct_x1+TRASL_FACTOR*(sct_x2-sct_x1),
53 sct_y1+TRASL_FACTOR*(sct_y2-sct_y1),
54 sct_z1+TRASL_FACTOR*(sct_z2-sct_z1))
55 sctLines[
int(sctElements1[i][1])].
append(sctPoly)
57 sctMark = TPolyMarker3D(1)
58 sctMark.SetMarkerSize(4)
59 sctMark.SetMarkerColor(color)
60 sctMark.SetMarkerStyle(7)
65 sctPoints[
int(sctElements1[i][1])].
append(sctMark)
68 if sctElements1[i][0] == 2:
75 if sctElements1[i][0] == -2:
87 for i
in range(len(sct3DLayers)):
91 for j
in range(len(sctLines[i])):
94 sctPoints[i][j].Draw()
97 sctPoints[i][j].Draw()