ATLAS Offline Software
makeHists.py
Go to the documentation of this file.
1 # ================================
2 # Creates the Histograms
3 # Author John Alison <johnda@hep.upenn.edu>
4 
6  def __init__(self,name,title,color):
7 
8  # Detector Geometries
9  # ======================
10  self.geo1 = makeSubSysGeometryHist(name+"1","Inner Detector Positions for Geometry 1 "+title,color)
11  self.geo2 = makeSubSysGeometryHist(name+"2","Inner Detector Positions for Geometry 2 "+title,color)
12 
13  # Differences in X
14  # ==================
15 
16  # Differences in X Vs R
17  self.DxVsR = makeSubSysDiffHist(name+"XvsR"
18  ,"Differences in X Position (IBL/Pix/SCT/TRT) vs R "+title
19  ,"Radius [mm]",[0,0,0],[1200,1200,1200]
20  ,"Difference in X Position [mm]",deltaX,color)
21 
22  # Differences in X Vs Z
23  self.DxVsZ = makeSubSysDiffHist(name+"XvsZ"
24  ,"Differences in X Position (IBL/Pix/SCT/TRT) vs Z "+title
25  ,"Z [mm]",[-2900,-800,400],[-400,800,2900]
26  ,"Difference in X Position [mm]",deltaX,color
27  ,nBins=2400)
28  # Differences in X
29  self.Dx = make1D_SubSysDiffHist(name+"X"
30  ,"Differences in X Position (IBL/Pix/SCT/TRT) "+title
31  ,"Difference in X Position",[-1*deltaX,-1*deltaX,-1*deltaX],[deltaX,deltaX,deltaX]
32  ,"Entries",color)
33 
34 
35  # Differences in Y
36  # ==================
37 
38  # Differences in Y Vs R
39  self.DyVsR = makeSubSysDiffHist(name+"YvsR"
40  ,"Differences in Y Position (IBL/Pix/SCT/TRT) vs R "+title
41  ,"Radius [mm]",[0,0,0],[1200,1200,1200]
42  ,"Difference in Y Position",deltaY,color)
43 
44  # Differences in Y Vs Z
45  self.DyVsZ = makeSubSysDiffHist(name+"YvsZ"
46  ,"Differences in Y Position (IBL/Pix/SCT/TRT) vs Z "+title
47  ,"Z [mm]",[-2900,-800,400],[-400,800,2900]
48  ,"Difference in Y Position",deltaY,color
49  ,nBins=2400)
50  # Differences in Y
51  self.Dy = make1D_SubSysDiffHist(name+"Y"
52  ,"Differences in Y Position (IBL/Pix/SCT/TRT) "+title
53  ,"Difference in Y Position",[-5,-5,-5],[5,5,5]
54  ,"Entries",color)
55 
56 
57  # Differences in Z
58  # ==================
59 
60  # Differences in Z vs R
61  self.DzVsR = makeSubSysDiffHist(name+"ZvsR"
62  ,"Differences in Z Position (IBL/Pix/SCT/TRT) vs R "+title
63  ,"Radius [mm]",[0,0,0],[1200,1200,1200]
64  ,"Difference in Z Position",deltaZ,color)
65 
66  # Differences in Z
67  self.Dz = make1D_SubSysDiffHist(name+"Z"
68  ,"Differences in Z Position (IBL/Pix/SCT/TRT) "+title
69  ,"Difference in Z Position",[-5,-5,-5],[5,5,5]
70  ,"Entries",color)
71 
72  # Differences in Phi
73  # ==================
74 
75  # Differences in Phi Vs Z
76  self.DphiVsZ= makeSubSysDiffHist(name+"PhivsZ"
77  ,"Differences in Phi Position (IBL/Pix/SCT/TRT) vs Z"+title
78  ,"Z [mm]",[-2900,-800,400],[-400,800,2900]
79  ,"Difference in Phi Position",deltaPhi,color
80  ,nBins=2400)
81 
82  # Differences in Phi vs R
83  self.DphiVsR = makeSubSysDiffHist(name+"PhivsR"
84  ,"Differences in phi Position (IBL/Pix/SCT/TRT) vs R "+title
85  ,"Radius [mm]",[0,0,0],[1200,1200,1200]
86  ,"Difference in XY Position",deltaPhiTrans,color)
87 
88  # Differences in XY
89  # ==================
90 
91  # Differences in XY vs R
92  self.DxyVsR = makeSubSysDiffHist(name+"XYvsR"
93  ,"Differences in X-Y Position (IBL/Pix/SCT/TRT) vs R"+title
94  ,"Radius [mm]",[0,0,0],[1200,1200,1200]
95  ,"Difference in XY Position",deltaXY,color)
96 
97  # Differences in XY vs Z
98  self.DxyVsZ = makeSubSysDiffHist(name+"XYvsZ"
99  ,"Differences in XY Position (IBL/Pix/SCT/TRT) vs Z "+title
100  ,"Z [mm]",[-2900,0,400],[-400,800,2900]
101  ,"Difference in XY Position",deltaXY,color)
102  # Differences in R
103  # ==================
104 
105  # Differences in R vs R
106  self.DrVsR = makeSubSysDiffHist(name+"RvsR"
107  ,"Differences in R Position (IBL/Pix/SCT/TRT) vs R "+title
108  ,"Radius [mm]",[0,0,0],[1200,1200,1200]
109  ,"Difference in R Position",deltaR,color)
110 
111 
112  self.DrVsPhi = makeSubSysDiffHist(name+"RvsPhi"
113  ,"Differences in R Position (IBL/Pix/SCT/TRT) vs phi"+title
114  ,"Phi [rad]",[-3.14,-3.14,-3.14],[3.14,3.14,3.14]
115  ,"Difference in R Position",deltaR,color)
116 
117 
118 pixelHists = geometryHists("Pix","Pixel",kRed)
119 sctHists = geometryHists("SCT","SCT",kBlue)
120 trtHists = geometryHists("TRT","TRT",kGreen)
121 iblHists = geometryHists("IBL","IBL",kMagenta)
122 
123 trtModuleHists = {}
124 
125 for thisMod in range(len(drawTRTModules)):
126  thisLay = drawTRTModules[thisMod][0]
127  thisPhi = drawTRTModules[thisMod][1]
128  # Add the pair to our total list
129  trtModuleHists[(thisLay,thisPhi)] = geometryHists("TRT_L_"+str(thisLay)+"_P_"+str(thisPhi)
130  ,"TRT Layer: "+str(thisLay)+" Phi: "+str(thisPhi)
131  ,kGreen)
makeHists.geometryHists.geo2
geo2
Definition: makeHists.py:11
makeHists.geometryHists
Definition: makeHists.py:5
makeHists.geometryHists.DrVsR
DrVsR
Definition: makeHists.py:106
makeHists.geometryHists.Dy
Dy
Definition: makeHists.py:51
makeHists.geometryHists.DphiVsZ
DphiVsZ
Definition: makeHists.py:76
comparisonUtils.makeSubSysGeometryHist
def makeSubSysGeometryHist(name, title, color)
Definition: comparisonUtils.py:126
makeHists.geometryHists.DzVsR
DzVsR
Definition: makeHists.py:61
makeHists.geometryHists.Dz
Dz
Definition: makeHists.py:67
makeHists.geometryHists.Dx
Dx
Definition: makeHists.py:29
comparisonUtils.makeSubSysDiffHist
def makeSubSysDiffHist(name, title, xName, xMins, xMaxes, yName, yRange, color, nBins=120)
Definition: comparisonUtils.py:146
makeHists.geometryHists.DrVsPhi
DrVsPhi
Differences in R vs Phi.
Definition: makeHists.py:112
comparisonUtils.make1D_SubSysDiffHist
def make1D_SubSysDiffHist(name, title, xName, xMins, xMaxes, yName, color)
Definition: comparisonUtils.py:166
makeHists.geometryHists.DxVsZ
DxVsZ
Definition: makeHists.py:23
plotBeamSpotVxVal.range
range
Definition: plotBeamSpotVxVal.py:195
makeHists.geometryHists.DyVsR
DyVsR
Definition: makeHists.py:39
makeHists.geometryHists.__init__
def __init__(self, name, title, color)
Definition: makeHists.py:6
makeHists.geometryHists.DphiVsR
DphiVsR
Definition: makeHists.py:83
makeHists.geometryHists.DxVsR
DxVsR
Definition: makeHists.py:17
makeHists.geometryHists.DxyVsZ
DxyVsZ
Definition: makeHists.py:98
makeHists.geometryHists.geo1
geo1
Definition: makeHists.py:10
makeHists.geometryHists.DxyVsR
DxyVsR
Definition: makeHists.py:92
str
Definition: BTagTrackIpAccessor.cxx:11
makeHists.geometryHists.DyVsZ
DyVsZ
Definition: makeHists.py:45