CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Averages_3Invpb.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 ######################################################################################
3 ## Program to average CMS W and Z cross sections for muons and electrons.
4 ## Run it as: "python Averages_3Invpb.py"
5 ##
6 ## Notes:
7 ##
8 ## a) For 3 inverse pb statistics, all likelihood profiles are already
9 ## Gaussian to a good approximation. Therefore naive combination procedures
10 ## work.
11 ## b) OPTION allows to average electron and muon measurements in two ways:
12 ##
13 ## OPTION = "StatisticalAverage" does the average according to statistical
14 ## uncertainties. Pros: This average is more rigurous from a statistical point
15 ## of view, since some likelihood ansatz is necessary to interpret systematics.
16 ## Cons: This procedure leads to larger "overall" uncertainties at the level of the
17 ## final combination since, for similar statistical uncertainties, measurements
18 ## with larger systematics weight the same as measurements with lower systematics.
19 ##
20 ## OPTION = ""StatisticalPlusSystematicAverage" does the average according
21 ## to the overall uncertainties. It assumes that systematic ucnertainties
22 ## can be treated in a naive Gaussian way and so added quadratically to
23 ## statistical uncertainties in the usual way. Correlations are taken into
24 ## account. A covariancia matrix "V" is built, and the solution X corresponds
25 ## to the minimization of the expression " sum_{ij}(X-x_i V_{ij}^{-1} (X-x_j)",
26 ## where x_i are the electron and muon measurements. Pros: this leads to minimal
27 ## uncertainties for the overall uncertainty (if stat. and syst. are added in
28 ## quadrature, as people usually do). Cons: most of the systematic soruces are
29 ## not statistical in origin, so giving them a 68% CL Gaussian meaning is
30 ## an ad-hoc assumption.
31 ##
32 ######################################################################################
33 
34 from __future__ import division
35 from math import *
36 
37 OPTION = "StatisticalPlusSystematicAverage"
38 #OPTION= "StatisticalAverage"
39 
40 print ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
41 print ">>>>> METHOD TO AVERAGE MUONS AND ELECTRONS is: '%s'" % (OPTION)
42 print ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n"
43 
44 ######################################################################################
45 ### INPUTS FOLLOW (they are not the final version)
46 ######################################################################################
47 
48 # Relative luminosity error
49 relSysLumi = 11e-2
50 
51 # Electron inputs
52 Wenu = 10.1447
53 absStatWenu = 0.1123
54 absCorrWenu = Wenu*sqrt(0.008**2+0.0116**2) # theory uncertainty
55 absUncWenu = 0.5031
56 print "\nWenu cross section = %.4f +- %.4f (stat.) +- %.4f (syst.) +- %.4f (theo.) +- %.4f (lumi.) [nb]" % (Wenu, absStatWenu, absUncWenu, absCorrWenu, Wenu*relSysLumi)
57 print " Systematics >>>>>>>"
58 print "\tUncorrelated with muons: %.2f %%" % (100./Wenu*absUncWenu)
59 print "\tTheory: %.2f %%" % (100./Wenu*absCorrWenu)
60 print "\tTOTAL (LUMI excluded): %.2f %%\n" % (100./Wenu*sqrt(absUncWenu**2+absCorrWenu**2))
61 
62 Wplusenu = 5.9349
63 absStatWplusenu = 0.0793
64 absCorrWplusenu = Wplusenu*sqrt(0.009**2+0.0133**2) # theory uncertainty
65 absUncWplusenu = 0.3446
66 print "\nWplusenu cross section = %.4f +- %.4f (stat.) +- %.4f (syst.) +- %.4f (theo.) +- %.4f (lumi.) [nb]" % (Wplusenu, absStatWplusenu, absUncWplusenu, absCorrWplusenu, Wplusenu*relSysLumi)
67 print " Systematics >>>>>>>"
68 print "\tUncorrelated with muons: %.2f %%" % (100./Wplusenu*absUncWplusenu)
69 print "\tTheory: %.2f %%" % (100./Wplusenu*absCorrWplusenu)
70 print "\tTOTAL (LUMI excluded): %.2f %%\n" % (100./Wplusenu*sqrt(absUncWplusenu**2+absCorrWplusenu**2))
71 
72 Wminusenu = 4.1401
73 absStatWminusenu = 0.0690
74 absCorrWminusenu = Wminusenu*sqrt(0.015**2+0.0090**2) # theory uncertainty
75 absUncWminusenu = 0.2432
76 print "\nWminusenu cross section = %.4f +- %.4f (stat.) +- %.4f (syst.) +- %.4f (theo.) +- %.4f (lumi.) [nb]" % (Wminusenu, absStatWminusenu, absUncWminusenu, absCorrWminusenu, Wminusenu*relSysLumi)
77 print " Systematics >>>>>>>"
78 print "\tUncorrelated with muons: %.2f %%" % (100./Wminusenu*absUncWminusenu)
79 print "\tTheory: %.2f %%" % (100./Wminusenu*absCorrWminusenu)
80 print "\tTOTAL (LUMI excluded): %.2f %%\n" % (100./Wminusenu*sqrt(absUncWminusenu**2+absCorrWminusenu**2))
81 
82 Zee = 0.9595
83 absStatZee = 0.0370
84 absCorrZee = Zee*sqrt(0.011**2+0.0134**2) # theory uncertainty
85 absUncZee = 0.0565
86 print "\nZee cross section = %.4f +- %.4f (stat.) +- %.4f (syst.) +- %.4f (theo.) +- %.4f (lumi.) [nb]" % (Zee, absStatZee, absUncZee, absCorrZee, Zee*relSysLumi)
87 print " Systematics >>>>>>>"
88 print "\tUncorrelated with muons: %.2f %%" % (100./Zee*absUncZee)
89 print "\tTheory: %.2f %%" % (100./Zee*absCorrZee)
90 print "\tTOTAL (LUMI excluded): %.2f %%\n" % (100./Zee*sqrt(absUncZee**2+absCorrZee**2))
91 
92 Ratioenu = Wplusenu/Wminusenu
93 absStatRatioenu = 0.02883
94 absCorrRatioenu = Ratioenu*sqrt(0.017**2+0.0127**2) # theory uncertainty
95 absUncRatioenu = 0.076
96 print "\nRatioenu cross section = %.4f +- %.4f (stat.) +- %.4f (syst.) +- %.4f (theo.)" % (Ratioenu, absStatRatioenu, absUncRatioenu, absCorrRatioenu)
97 print " Systematics >>>>>>>"
98 print "\tUncorrelated with muons: %.2f %%" % (100./Ratioenu*absUncRatioenu)
99 print "\tTheory: %.2f %%" % (100./Ratioenu*absCorrRatioenu)
100 print "\tTOTAL: %.2f %%\n" % (100./Ratioenu*sqrt(absUncRatioenu**2+absCorrRatioenu**2))
101 
102 WZe = Wenu/Zee
103 absStatWZe = 0.425
104 absCorrWZe = WZe*sqrt(0.009**2+0.0103**2) # theory uncertainty
105 absUncWZe = 0.524
106 print "\nWZe cross section = %.4f +- %.4f (stat.) +- %.4f (syst.) +- %.4f (theo.)" % (WZe, absStatWZe, absUncWZe, absCorrWZe)
107 print " Systematics >>>>>>>"
108 print "\tUncorrelated with muons: %.2f %%" % (100./WZe*absUncWZe)
109 print "\tTheory: %.2f %%" % (100./WZe*absCorrWZe)
110 print "\tTOTAL: %.2f %%\n" % (100./WZe*sqrt(absUncWZe**2+absCorrWZe**2))
111 
112 # Muon inputs
113 Wmunu = 9.922
114 absStatWmunu = 0.090
115 absCorrWmunu = Wmunu*sqrt(0.011**2+0.0136**2) # theory uncertainty
116 relUncFit = 1.3e-2
117 relUncPreTrig = 0.5e-2
118 relUncSysEff = 0.5e-2
119 relUncEff = sqrt(relUncFit**2+relUncPreTrig**2+relUncSysEff**2)
120 relUncMomRes = 0.3e-2
121 relUncRecoil = 0.4e-2
122 relUncMCStat = 1.4e-3/sqrt(2)
123 relUncBkg = sqrt(2.0e-2**2+0.2e-2**2)
124 absUncWmunu=Wmunu*sqrt(relUncEff**2+relUncMomRes**2+relUncRecoil**2+relUncMCStat**2+relUncBkg**2)
125 print "\nWmunu cross section = %.4f +- %.4f (stat.) +- %.4f (syst.) +- %.4f (theo.) +- %.4f (lumi.) [nb]" % (Wmunu, absStatWmunu, absUncWmunu, absCorrWmunu, Wmunu*relSysLumi)
126 print " Systematics >>>>>>>"
127 print "\tEfficiency(Zfit,Pretrig,Z->W): %.2f %%" % (100*relUncEff)
128 print "\tMomentum scale/resolution: %.2f %%" % (100*relUncMomRes)
129 print "\tBackground subtraction: %.2f %%" % (100*relUncBkg)
130 print "\tSignal Recoil modeling: %.2f %%" % (100*relUncRecoil)
131 print "\tMC statistics (acceptance): %.2f %%" % (100*relUncMCStat)
132 print "\tTheory: %.2f %%" % (100./Wmunu*absCorrWmunu)
133 print "\tTOTAL (LUMI excluded): %.2f %%\n" % (100./Wmunu*sqrt(absUncWmunu**2+absCorrWmunu**2))
134 
135 Wplusmunu = 5.844
136 absStatWplusmunu = 0.069
137 absCorrWplusmunu = Wplusmunu*sqrt(0.013**2+0.0142**2) # theory uncertainty
138 relUncFit = 1.3e-2
139 relUncPreTrig = 0.5e-2
140 relUncSysEff = 0.5e-2
141 relUncEff = sqrt(relUncFit**2+relUncPreTrig**2+relUncSysEff**2)
142 relUncMomRes = 0.3e-2
143 relUncRecoil = 0.4e-2
144 relUncMCStat = 1.4e-3
145 relUncBkg = sqrt(1.7e-2**2+0.2e-2**2)
146 absUncWplusmunu=Wplusmunu*sqrt(relUncEff**2+relUncMomRes**2+relUncRecoil**2+relUncMCStat**2+relUncBkg**2)
147 print "\nWplusmunu cross section = %.4f +- %.4f (stat.) +- %.4f (syst.) +- %.4f (theo.) +- %.4f (lumi.) [nb]" % (Wplusmunu, absStatWplusmunu, absUncWplusmunu, absCorrWplusmunu, Wplusmunu*relSysLumi)
148 print " Systematics >>>>>>>"
149 print "\tEfficiency(Zfit,Pretrig,Z->W): %.2f %%" % (100*relUncEff)
150 print "\tMomentum scale/resolution: %.2f %%" % (100*relUncMomRes)
151 print "\tBackground subtraction: %.2f %%" % (100*relUncBkg)
152 print "\tSignal Recoil modeling: %.2f %%" % (100*relUncRecoil)
153 print "\tMC statistics (acceptance): %.2f %%" % (100*relUncMCStat)
154 print "\tTheory: %.2f %%" % (100./Wplusmunu*absCorrWplusmunu)
155 print "\tTOTAL (LUMI excluded): %.2f %%\n" % (100./Wplusmunu*sqrt(absUncWplusmunu**2+absCorrWplusmunu**2))
156 
157 Wminusmunu = 4.078
158 absStatWminusmunu = 0.057
159 absCorrWminusmunu = Wminusmunu*sqrt(0.019**2+0.0126**2) # theory uncertainty
160 relUncFit = 1.3e-2
161 relUncPreTrig = 0.5e-2
162 relUncSysEff = 0.5e-2
163 relUncEff = sqrt(relUncFit**2+relUncPreTrig**2+relUncSysEff**2)
164 relUncMomRes = 0.3e-2
165 relUncRecoil = 0.4e-2
166 relUncMCStat = 1.4e-3
167 relUncBkg = sqrt(2.3e-2**2+0.2e-2**2)
168 absUncWminusmunu=Wminusmunu*sqrt(relUncEff**2+relUncMomRes**2+relUncRecoil**2+relUncMCStat**2+relUncBkg**2)
169 print "\nWminusmunu cross section = %.4f +- %.4f (stat.) +- %.4f (syst.) +- %.4f (theo.) +- %.4f (lumi.) [nb]" % (Wminusmunu, absStatWminusmunu, absUncWminusmunu, absCorrWminusmunu, Wminusmunu*relSysLumi)
170 print " Systematics >>>>>>>"
171 print "\tEfficiency(Zfit,Pretrig,Z->W): %.2f %%" % (100*relUncEff)
172 print "\tMomentum scale/resolution: %.2f %%" % (100*relUncMomRes)
173 print "\tBackground subtraction: %.2f %%" % (100*relUncBkg)
174 print "\tSignal Recoil modeling: %.2f %%" % (100*relUncRecoil)
175 print "\tMC statistics (acceptance): %.2f %%" % (100*relUncMCStat)
176 print "\tTheory: %.2f %%" % (100./Wminusmunu*absCorrWminusmunu)
177 print "\tTOTAL (LUMI excluded): %.2f %%\n" % (100./Wminusmunu*sqrt(absUncWminusmunu**2+absCorrWminusmunu**2))
178 
179 Zmumu = 0.924 # 0.893*1.025*1.01
180 absStatZmumu = 0.031 # 0.030*1.025*1.01
181 absCorrZmumu = Zmumu*sqrt(0.012**2+0.0158**2) # theory uncertainty
182 relUncEff = 0.5e-2 # pre-triggering
183 relUncFit= 1.0e-2
184 relUncMomRes = 0.2e-2
185 relUncMCStat = 0.4e-2
186 relUncBkg = sqrt(relUncFit**2+0.2e-2**2)
187 absUncZmumu=Zmumu*sqrt(relUncEff**2+relUncMomRes**2+relUncBkg**2+relUncMCStat**2)
188 print "\nZmumu cross section = %.4f +- %.4f (stat.) +- %.4f (syst.) +- %.4f (theo.) +- %.4f (lumi.) [nb]" % (Zmumu, absStatZmumu, absUncZmumu, absCorrZmumu, Zmumu*relSysLumi)
189 print " Systematics >>>>>>>"
190 print "\tEfficiency(Pretriggering): %.2f %%" % (100*relUncEff)
191 print "\tMomentum scale/resolution: %.2f %%" % (100*relUncMomRes)
192 print "\tBackground subtraction/fit: %.2f %%" % (100*relUncBkg)
193 print "\tMC statistics (acceptance): %.2f %%" % (100*relUncMCStat)
194 print "\tTheory: %.2f %%" % (100./Zmumu*absCorrZmumu)
195 print "\tTOTAL (LUMI excluded): %.2f %%\n" % (100./Zmumu*sqrt(absUncZmumu**2+absCorrZmumu**2))
196 
197 Ratiomunu = Wplusmunu/Wminusmunu
198 absStatRatiomunu = 0.026
199 absCorrRatiomunu = Ratiomunu*sqrt(0.021**2+0.0119**2) # theory uncertainty
200 relUncEff = 2.8e-2
201 relUncMomRes = 0.3e-2
202 relUncMCStat = sqrt(2)*1.4e-3
203 relUncBkg = 0.7e-2
204 absUncRatiomunu = Ratiomunu*sqrt(relUncEff**2+relUncMomRes**2+relUncMCStat**2+relUncBkg**2)
205 print "\nRatiomunu cross section = %.4f +- %.4f (stat.) +- %.4f (syst.) +- %.4f (theo.)" % (Ratiomunu, absStatRatiomunu, absUncRatiomunu, absCorrRatiomunu)
206 print " Systematics >>>>>>>"
207 print "\tEfficiency(W+ versus W- tests): %.2f %%" % (100*relUncEff)
208 print "\tMomentum scale/resolution: %.2f %%" % (100*relUncMomRes)
209 print "\tBackground subtraction: %.2f %%" % (100*relUncBkg)
210 print "\tMC statistics (acceptance): %.2f %%" % (100*relUncMCStat)
211 print "\tTheory: %.2f %%" % (100./Ratiomunu*absCorrRatiomunu)
212 print "\tTOTAL: %.2f %%\n" % (100./Ratiomunu*sqrt(absUncRatiomunu**2+absCorrRatiomunu**2))
213 
214 WZmu = Wmunu/Zmumu
215 absStatWZmu = 0.3675
216 absCorrWZmu = WZmu*sqrt(0.011**2+0.0135**2) # theory uncertainty
217 relUncEffW = 1.3e-2
218 relUncMomResW = 0.3e-2
219 relUncMomResZ = 0.2e-2
220 relSysSubtract = sqrt(relUncEffW**2+relUncMomResW**2+relUncMomResZ**2)
221 relSysAdd = abs(relUncMomResW-relUncMomResZ)
222 absUncWZmu = WZmu*sqrt((absUncWmunu/Wmunu)**2 + (absUncZmumu/Zmumu)**2 - relSysSubtract**2 + relSysAdd**2)
223 print "\nWZmu cross section = %.4f +- %.4f (stat.) +- %.4f (syst.) +- %.4f (theo.)" % (WZmu, absStatWZmu, absUncWZmu, absCorrWZmu)
224 print " STATISTICAL UNCERTAINTY INCLUDES EFFICIENCY (via Zmumu fit)"
225 print " Systematics >>>>>>>"
226 print "\tUncorrelated with electrons: %.2f %%" % (100./WZmu*absUncWZmu)
227 print "\tTheory: %.2f %%" % (100./WZmu*absCorrWZmu)
228 print "\tTOTAL: %.2f %%\n" % (100./WZmu*sqrt(absUncWZmu**2+absCorrWZmu**2))
229 
230 ######################################################################################
231 ### Utility functions
232 ######################################################################################
233 
234 ###
235 def vbtfXSectionCheck(title, xsection, exsection, sysUnc, sysCor, relSysLumi):
236  absSysLumi = xsection*relSysLumi
237  print "VBTF inputs: %s = %.4f +- %.4f (stat.) +- %.4f (exp.) +- %.4f (the.) +- %.4f (lumi) [nb]" % (title, xsection, exsection, sysUnc, sysCor, absSysLumi)
238 
239 ###
240 def vbtfXSectionAverage(title, xsection1, xsection2, exsection1, exsection2, sysUnc1, sysUnc2, sysCor1, sysCor2, relSysLumi):
241  if OPTION== "StatisticalAverage":
242  V11 = exsection1**2
243  V22 = exsection2**2
244  V12 = 0
245  else:
246  V11 = exsection1**2+sysUnc1**2+sysCor1**2
247  V22 = exsection2**2+sysUnc2**2+sysCor2**2
248  V12 = sysCor1*sysCor2
249 
250  a1 = (V22-V12)/(V11+V22-2*V12)
251  a2 = (V11-V12)/(V11+V22-2*V12)
252  average = a1*xsection1 + a2*xsection2
253  errstat = sqrt(a1**2*exsection1**2+a2**2*exsection2**2)
254  errunco = sqrt(a1**2*sysUnc1**2 + a2**2*sysUnc2**2)
255  errtheo = sqrt(a1**2*sysCor1**2 + a2**2*sysCor2**2 + 2*a1*a2*sysCor1*sysCor2)
256  errsyst = sqrt(errunco**2+errtheo**2)
257 
258  print "VBTF average: %s = %.4f +- %.4f (stat.) [nb]" % (title, average, errstat)
259 
260  absSysLumi = average*relSysLumi
261  print "\tVBTF systematics (1): +- %.4f (exp) +- %.4f (the) +- %.4f (lumi) [nb]" % (errunco, errtheo, absSysLumi)
262  print "\tVBTF systematics (2): +- %.4f (exp+the) +- %.4f (lumi) [nb]" % (errsyst, absSysLumi)
263 
264 ###
265 def vbtfRatioCheck(title, ratio, absStat, sysUnc, sysCor):
266  print "VBTF inputs: %s = %.4f +- %.4f (stat.) +- %.4f (exp.) +- %.4f (the.)" % (title, ratio, absStat, sysUnc, sysCor)
267 
268 ###
269 def vbtfRatioAverage(title, ratio1, ratio2, eratio1, eratio2, sysUnc1, sysUnc2, sysCor1, sysCor2):
270  if OPTION== "StatisticalAverage":
271  V11 = eratio1**2
272  V22 = eratio2**2
273  V12 = 0
274  else:
275  V11 = eratio1**2+(sysUnc1**2+sysCor1**2)
276  V22 = eratio2**2+(sysUnc2**2+sysCor2**2)
277  V12 = sysCor1*sysCor2
278 
279  a1 = (V22-V12)/(V11+V22-2*V12)
280  a2 = (V11-V12)/(V11+V22-2*V12)
281  average = a1*ratio1 + a2*ratio2
282  errstat = sqrt(a1**2*eratio1**2+a2**2*eratio2**2)
283  errunco = sqrt(a1**2*sysUnc1**2 + a2**2*sysUnc2**2)
284  errtheo = sqrt(a1**2*sysCor1**2 + a2**2*sysCor2**2 + 2*a1*a2*sysCor1*sysCor2)
285  errsyst = sqrt(errunco**2+errtheo**2)
286 
287  print "VBTF average: %s = %.4f +- %.4f (stat.)" % (title, average, errstat)
288 
289  print "\tVBTF systematics (1): +- %.4f (exp) +- %.4f (the)" % (errunco, errtheo)
290  print "\tVBTF systematics (2): +- %.4f (exp+the)" % (errsyst)
291 
292 ######################################################################################
293 ### MAIN CALLS ...
294 ######################################################################################
295 
296 #############################################################
297 ########## Wlnu total cross section
298 #############################################################
299 print "\n>>>>>>>>>>>>>>>"
300 vbtfXSectionCheck("W -> munu cross section",Wmunu,absStatWmunu,absUncWmunu,absCorrWmunu,relSysLumi)
301 vbtfXSectionCheck("W -> enu cross section",Wenu,absStatWenu,absUncWenu,absCorrWenu,relSysLumi)
302 vbtfXSectionAverage("W -> lnu cross section",Wmunu,Wenu,absStatWmunu,absStatWenu,absUncWmunu,absUncWenu,absCorrWmunu,absCorrWenu,relSysLumi)
303 
304 #############################################################
305 ########## Wplus -> lnu cross section
306 #############################################################
307 print "\n>>>>>>>>>>>>>>>"
308 vbtfXSectionCheck("W+ -> munu cross section",Wplusmunu,absStatWplusmunu,absUncWplusmunu,absCorrWplusmunu,relSysLumi)
309 vbtfXSectionCheck("W+ -> enu cross section",Wplusenu,absStatWplusenu,absUncWplusenu,absCorrWplusenu,relSysLumi)
310 vbtfXSectionAverage("W+ -> lnu cross section",Wplusmunu,Wplusenu,absStatWplusmunu,absStatWplusenu,absUncWplusmunu,absUncWplusenu,absCorrWplusmunu,absCorrWplusenu,relSysLumi)
311 
312 #############################################################
313 ########## Wminus -> lnu cross section
314 #############################################################
315 print "\n>>>>>>>>>>>>>>>"
316 vbtfXSectionCheck("W- -> munu cross section",Wminusmunu,absStatWminusmunu,absUncWminusmunu,absCorrWminusmunu,relSysLumi)
317 vbtfXSectionCheck("W- -> enu cross section",Wminusenu,absStatWminusenu,absUncWminusenu,absCorrWminusenu,relSysLumi)
318 vbtfXSectionAverage("W- -> lnu cross section",Wminusmunu,Wminusenu,absStatWminusmunu,absStatWminusenu,absUncWminusmunu,absUncWminusenu,absCorrWminusmunu,absCorrWminusenu,relSysLumi)
319 
320 #############################################################
321 ########## W+/W- ratio
322 #############################################################
323 #
324 print "\n>>>>>>>>>>>>>>>"
325 vbtfRatioCheck("W+ / W- cross section ratio, muon channel",Ratiomunu,absStatRatiomunu,absUncRatiomunu,absCorrRatiomunu)
326 vbtfRatioCheck("W+ / W- cross section ratio, electron channel",Ratioenu,absStatRatioenu,absUncRatioenu,absCorrRatioenu)
327 vbtfRatioAverage("W+ / W- cross section ratio",Ratiomunu,Ratioenu,absStatRatiomunu,absStatRatioenu,absUncRatiomunu,absUncRatioenu,absCorrRatiomunu,absCorrRatioenu)
328 
329 #############################################################
330 ########## Z > ll cross section (in 60 < Mll < 120 GeV)
331 #############################################################
332 #
333 print "\n>>>>>>>>>>>>>>>"
334 vbtfXSectionCheck("Z -> mumu cross section",Zmumu,absStatZmumu,absUncZmumu,absCorrZmumu,relSysLumi)
335 vbtfXSectionCheck("Z -> ee cross section",Zee,absStatZee,absUncZee,absCorrZee,relSysLumi)
336 vbtfXSectionAverage("Z -> ll cross section",Zmumu,Zee,absStatZmumu,absStatZee,absUncZmumu,absUncZee,absCorrZmumu,absCorrZee,relSysLumi)
337 
338 #############################################################
339 ########## W/Z ratio
340 #############################################################
341 #
342 print "\n>>>>>>>>>>>>>>>"
343 vbtfRatioCheck("W/Z ratio muons",WZmu,absStatWZmu,absUncWZmu,absCorrWZmu)
344 vbtfRatioCheck("W/Z ratio electrons",WZe,absStatWZe,absUncWZe,absCorrWZe)
345 vbtfRatioAverage("W/Z ratio",WZmu,WZe,absStatWZmu,absStatWZe,absUncWZmu,absUncWZe,absCorrWZmu,absCorrWZe)
T sqrt(T t)
Definition: SSEVec.h:48
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
def vbtfXSectionCheck
Utility functions.