ATLAS Offline Software
make3DCanvas.py
Go to the documentation of this file.
1 # Code that generates the 3D canvases for the ID layers
2 # Everything is stored in lists because pyROOT doesn't play well
3 # with the 3D objects...
4 # @author: Will DiClemente <wdic@sas.upenn.edu>
5 
6 def make_axes():
7  rules = TAxis3D()
8  rules.SetAxisColor(1)
9  rules.SetLabelColor(1)
10  rules.SetTitleOffset(1.5)
11  rules.SetTitleOffset(1.8,"Z")
12  rules.SetXTitle("x [mm]")
13  rules.SetYTitle("y [mm]")
14  rules.SetZTitle("z [mm]")
15  return rules
16 
17 def make_title(text):
18  title = TText(0,.9,text+" x"+str(TRASL_FACTOR))
19  title.SetTextAlign(22)
20  title.SetTextFont(42)
21  return title
22 
23 
24 ibl3DCan = TCanvas("IBL 3D","IBL differences 3D",1000,1000)
25 iblLines = [[],[],[],[],[],[],[],[],[],[],[],[],[],[]] # 14 staves
26 iblPoints = [[],[],[],[],[],[],[],[],[],[],[],[],[],[]]
27 ibl3DStaves = []
28 iblAxes = []
29 iblTitles = []
30 for i in range(0,14):
31  ibl3DStaves.append(TCanvas("IBL 3D Stave "+str(i+1),"IBL differences 3D Stave "+str(i+1),1000,1000))
32  iblAxes.append(make_axes())
33  iblTitles.append(make_title("IBL Visualization Stave "+str(i+1)))
34 
35 pix3DCan = TCanvas("PIX 3D","PIX differences",1000,1000)
36 pixLines = [[],[],[]] # 3 layers
37 pixPoints = [[],[],[]]
38 pix3DLayers = []
39 pixAxes = []
40 pixTitles = []
41 for i in range(0,3):
42  pix3DLayers.append(TCanvas("PIX 3D Layer "+str(i+1),"PIX differences 3D L"+str(i+1),1000,1000))
43  pixAxes.append(make_axes())
44  pixTitles.append(make_title("PIX Visualization Layer "+str(i+1)))
45 
46 sct3DCan = TCanvas("SCT 3D","SCT differences 3D",1000,1000)
47 sctLines = [[],[],[],[]] # 4 layers
48 sctPoints = [[],[],[],[]]
49 sct3DLayers = []
50 sctAxes = []
51 sctTitles = []
52 for i in range(0,4):
53  sct3DLayers.append(TCanvas("SCT 3D Layer "+str(i+1),"SCT differences 3D L"+str(i+1),1000,1000))
54  sctAxes.append(make_axes())
55  sctTitles.append(make_title("SCT Visualization Layer "+str(i+1)))
make3DCanvas.make_axes
def make_axes()
Definition: make3DCanvas.py:6
plotBeamSpotVxVal.range
range
Definition: plotBeamSpotVxVal.py:195
make3DCanvas.make_title
def make_title(text)
Definition: make3DCanvas.py:17
str
Definition: BTagTrackIpAccessor.cxx:11