83 nomfhcfile =
"/dune/data/users/ljf26/fluxfiles/g4lbne/v3r2p4/QGSP_BERT/Nominal/200kA/flux/histos_g4lbne_v3r2p4_QGSP_BERT_Nominal_200kA_LBNEFD_fastmc.root" 85 nomrhcfile =
"/dune/data/users/ljf26/fluxfiles/g4lbne/v3r2p4/QGSP_BERT/Nominal/-200kA/flux/histos_g4lbne_v3r2p4_QGSP_BERT_Nominal_-200kA_LBNEFD_fastmc.root" 89 quantity =
"cp_75thpercentile" 91 quantity =
"mh_minimum" 94 new_bins = [0.0,0.5,1.0,2.0,3.0,4.0,5.0,6.0,7.0,8.0,9.0,10.0,15.0,20.0,120.0]
96 null_return = [[-1,-1,-1,-1,-1,-1,-1],[-1,-1,-1,-1,-1,-1,-1],[-1,-1,-1,-1,-1,-1,-1]]
99 nomfhctfile = ROOT.TFile(nomfhcfile)
100 nomrhctfile = ROOT.TFile(nomrhcfile)
101 varfhctfile = ROOT.TFile(varfhcfile)
102 varrhctfile = ROOT.TFile(varrhcfile)
104 fhcnumu_nh_weightfile = ROOT.TFile(
"sensitivity_plots/fhcnumu_nh_"+quantity+
"_fixedScale.root");
105 fhcnumu_ih_weightfile = ROOT.TFile(
"sensitivity_plots/fhcnumu_ih_"+quantity+
"_fixedScale.root");
106 rhcnumu_nh_weightfile = ROOT.TFile(
"sensitivity_plots/rhcnumu_nh_"+quantity+
"_fixedScale.root");
107 rhcnumu_ih_weightfile = ROOT.TFile(
"sensitivity_plots/rhcnumu_ih_"+quantity+
"_fixedScale.root");
108 fhcnumubar_nh_weightfile = ROOT.TFile(
"sensitivity_plots/fhcnumubar_nh_"+quantity+
"_fixedScale.root");
109 fhcnumubar_ih_weightfile = ROOT.TFile(
"sensitivity_plots/fhcnumubar_ih_"+quantity+
"_fixedScale.root");
110 rhcnumubar_nh_weightfile = ROOT.TFile(
"sensitivity_plots/rhcnumubar_nh_"+quantity+
"_fixedScale.root");
111 rhcnumubar_ih_weightfile = ROOT.TFile(
"sensitivity_plots/rhcnumubar_ih_"+quantity+
"_fixedScale.root");
112 fhcnuenuebar_nh_weightfile = ROOT.TFile(
"sensitivity_plots/fhcnuenuebar_nh_"+quantity+
"_fixedScale.root");
113 fhcnuenuebar_ih_weightfile = ROOT.TFile(
"sensitivity_plots/fhcnuenuebar_ih_"+quantity+
"_fixedScale.root");
114 rhcnuenuebar_nh_weightfile = ROOT.TFile(
"sensitivity_plots/rhcnuenuebar_nh_"+quantity+
"_fixedScale.root");
115 rhcnuenuebar_ih_weightfile = ROOT.TFile(
"sensitivity_plots/rhcnuenuebar_ih_"+quantity+
"_fixedScale.root");
117 files_to_check = [nomfhctfile,nomrhctfile,varfhctfile,varrhctfile]
118 for a_file
in files_to_check:
119 if(a_file.IsZombie()):
120 print "Optimizationutils::ComputeMeanPercentCPSensitivity: Could not open",a_file.GetName()
124 nom_fhcnumu = nomfhctfile.Get(
"numu_flux").Rebin(len(new_bins)-1,
"h_nomfhcnumu_flux",array.array(
'd',new_bins))
125 nom_fhcnumubar = nomfhctfile.Get(
"numubar_flux").Rebin(len(new_bins)-1,
"h_nomfhcnumubar_flux",array.array(
'd',new_bins))
126 nom_fhcnue = nomfhctfile.Get(
"nue_flux").Rebin(len(new_bins)-1,
"h_nomfhcnue_flux",array.array(
'd',new_bins))
127 nom_fhcnuebar = nomfhctfile.Get(
"nuebar_flux").Rebin(len(new_bins)-1,
"h_nomfhcnuebar_flux",array.array(
'd',new_bins))
129 nom_rhcnumu = nomrhctfile.Get(
"numu_flux").Rebin(len(new_bins)-1,
"h_nomrhcnumu_flux",array.array(
'd',new_bins))
130 nom_rhcnumubar = nomrhctfile.Get(
"numubar_flux").Rebin(len(new_bins)-1,
"h_nomrhcnumubar_flux",array.array(
'd',new_bins))
131 nom_rhcnue = nomrhctfile.Get(
"nue_flux").Rebin(len(new_bins)-1,
"h_nomrhcnue_flux",array.array(
'd',new_bins))
132 nom_rhcnuebar = nomrhctfile.Get(
"nuebar_flux").Rebin(len(new_bins)-1,
"h_nomrhcnuebar_flux",array.array(
'd',new_bins))
134 var_fhcnumu = varfhctfile.Get(
"numu_flux").Rebin(len(new_bins)-1,
"h_fhcnumu_flux",array.array(
'd',new_bins))
135 var_fhcnumubar = varfhctfile.Get(
"numubar_flux").Rebin(len(new_bins)-1,
"h_fhcnumubar_flux",array.array(
'd',new_bins))
136 var_fhcnue = varfhctfile.Get(
"nue_flux").Rebin(len(new_bins)-1,
"h_fhcnue_flux",array.array(
'd',new_bins))
137 var_fhcnuebar = varfhctfile.Get(
"nuebar_flux").Rebin(len(new_bins)-1,
"h_fhcnuebar_flux",array.array(
'd',new_bins))
139 var_rhcnumu = varrhctfile.Get(
"numu_flux").Rebin(len(new_bins)-1,
"h_rhcnumu_flux",array.array(
'd',new_bins))
140 var_rhcnumubar = varrhctfile.Get(
"numubar_flux").Rebin(len(new_bins)-1,
"h_rhcnumubar_flux",array.array(
'd',new_bins))
141 var_rhcnue = varrhctfile.Get(
"nue_flux").Rebin(len(new_bins)-1,
"h_rhcnue_flux",array.array(
'd',new_bins))
142 var_rhcnuebar = varrhctfile.Get(
"nuebar_flux").Rebin(len(new_bins)-1,
"h_rhcnuebar_flux",array.array(
'd',new_bins))
144 nom_histos = [nom_fhcnumu, nom_fhcnumubar, nom_fhcnue, nom_fhcnuebar, nom_rhcnumu, nom_rhcnumubar, nom_rhcnue, nom_rhcnuebar]
145 var_histos = [var_fhcnumu, var_fhcnumubar, var_fhcnue, var_fhcnuebar, var_rhcnumu, var_rhcnumubar, var_rhcnue, var_rhcnuebar]
149 for histo
in nom_histos+var_histos:
150 for i
in range(0,histo.GetNbinsX()):
151 if(histo.GetBinContent(i+1) != histo.GetBinContent(i+1)
or 152 histo.GetBinContent(i+1)<-10000
or histo.GetBinContent(i+1)>1):
153 print "WARNING: the",i+1,
"th bin in",histo.GetName(),
"is",histo.GetBinContent(i+1),
"... Resetting it to zero" 154 histo.SetBinContent(i+1,0)
155 histo.SetBinError(i+1,0)
159 for histo
in nom_histos+var_histos:
167 antinu_scale = antinufrac/0.5*rhc_scale_factor;
168 nu_scale = (1.0-antinufrac)/0.5*fhc_scale_factor;
170 var_fhcnumu.Scale(nu_scale);
171 var_fhcnumubar.Scale(nu_scale);
172 var_fhcnue.Scale(nu_scale);
173 var_fhcnuebar.Scale(nu_scale);
175 var_rhcnumu.Scale(antinu_scale);
176 var_rhcnumubar.Scale(antinu_scale);
177 var_rhcnue.Scale(antinu_scale);
178 var_rhcnuebar.Scale(antinu_scale);
181 fhcnumu = var_fhcnumu.Clone()
182 fhcnumu.Add(nom_fhcnumu,-1)
183 fhcnumu.Divide(nom_fhcnumu)
186 fhcnumu_ih = fhcnumu.Clone()
187 fhcnumu_nh = fhcnumu.Clone()
189 fhcnumubar = var_fhcnumubar.Clone()
190 fhcnumubar.Add(nom_fhcnumubar,-1)
191 fhcnumubar.Divide(nom_fhcnumubar)
192 fhcnumubar.Scale(100)
193 fhcnumubar_ih = fhcnumubar.Clone()
194 fhcnumubar_nh = fhcnumubar.Clone()
196 fhcnuenuebar = var_fhcnue.Clone()
197 fhcnuenuebar.Add(nom_fhcnue,-1)
198 fhcnuenuebar.Divide(nom_fhcnue)
199 fhcnuenuebar.Scale(100)
200 fhcnuenuebar_ih = fhcnuenuebar.Clone()
201 fhcnuenuebar_nh = fhcnuenuebar.Clone()
203 rhcnumu = var_rhcnumu.Clone()
204 rhcnumu.Add(nom_rhcnumu,-1)
205 rhcnumu.Divide(nom_rhcnumu)
207 rhcnumu_ih = rhcnumu.Clone()
208 rhcnumu_nh = rhcnumu.Clone()
210 rhcnumubar = var_rhcnumubar.Clone()
211 rhcnumubar.Add(nom_rhcnumubar,-1)
212 rhcnumubar.Divide(nom_rhcnumubar)
213 rhcnumubar.Scale(100)
214 rhcnumubar_ih = rhcnumubar.Clone()
215 rhcnumubar_nh = rhcnumubar.Clone()
217 rhcnuenuebar = var_rhcnuebar.Clone()
218 rhcnuenuebar.Add(nom_rhcnuebar,-1)
219 rhcnuenuebar.Divide(nom_rhcnuebar)
220 rhcnuenuebar.Scale(100)
221 rhcnuenuebar_ih = rhcnuenuebar.Clone()
222 rhcnuenuebar_nh = rhcnuenuebar.Clone()
226 tot_fhcnumubar_ih = 0;
227 tot_fhcnumubar_nh = 0;
228 tot_fhcnuenuebar_ih = 0;
229 tot_fhcnuenuebar_nh = 0;
232 tot_rhcnumubar_ih = 0;
233 tot_rhcnumubar_nh = 0;
234 tot_rhcnuenuebar_ih = 0;
235 tot_rhcnuenuebar_nh = 0;
239 err_fhcnumubar_ih = 0;
240 err_fhcnumubar_nh = 0;
241 err_fhcnuenuebar_ih = 0;
242 err_fhcnuenuebar_nh = 0;
245 err_rhcnumubar_ih = 0;
246 err_rhcnumubar_nh = 0;
247 err_rhcnuenuebar_ih = 0;
248 err_rhcnuenuebar_nh = 0;
250 for i
in range(fhcnumu.GetNbinsX()):
252 fhcnumu_ih.SetBinContent(i+1,fhcnumu_ih_weightfile.Get(
"Graph;"+
str(i+1)).Eval(fhcnumu.GetBinContent(i+1)+100));
253 if(fhcnumu.GetBinContent(i+1) != 0):
254 fhcnumu_ih.SetBinError(i+1,fhcnumu.GetBinError(i+1)/fhcnumu.GetBinContent(i+1)*fhcnumu_ih.GetBinContent(i+1));
255 rhcnumu_ih.SetBinContent(i+1,rhcnumu_ih_weightfile.Get(
"Graph;"+
str(i+1)).Eval(rhcnumu.GetBinContent(i+1)+100));
256 if(rhcnumu.GetBinContent(i+1) != 0):
257 rhcnumu_ih.SetBinError(i+1,rhcnumu.GetBinError(i+1)/rhcnumu.GetBinContent(i+1)*rhcnumu_ih.GetBinContent(i+1));
259 fhcnumubar_ih.SetBinContent(i+1,fhcnumubar_ih_weightfile.Get(
"Graph;"+
str(i+1)).Eval(fhcnumubar.GetBinContent(i+1)+100));
260 if(fhcnumubar.GetBinContent(i+1)!=0):
261 fhcnumubar_ih.SetBinError(i+1,fhcnumubar.GetBinError(i+1)/fhcnumubar.GetBinContent(i+1)*fhcnumubar_ih.GetBinContent(i+1));
262 rhcnumubar_ih.SetBinContent(i+1,rhcnumubar_ih_weightfile.Get(
"Graph;"+
str(i+1)).Eval(rhcnumubar.GetBinContent(i+1)+100));
263 if(rhcnumubar.GetBinContent(i+1)!=0):
264 rhcnumubar_ih.SetBinError(i+1,rhcnumubar.GetBinError(i+1)/rhcnumubar.GetBinContent(i+1)*rhcnumubar_ih.GetBinContent(i+1));
266 fhcnuenuebar_ih.SetBinContent(i+1,fhcnuenuebar_ih_weightfile.Get(
"Graph;"+
str(i+1)).Eval(fhcnuenuebar.GetBinContent(i+1)+100));
267 if(fhcnuenuebar.GetBinContent(i+1)!=0):
268 fhcnuenuebar_ih.SetBinError(i+1,fhcnuenuebar.GetBinError(i+1)/fhcnuenuebar.GetBinContent(i+1)*fhcnuenuebar_ih.GetBinContent(i+1));
269 rhcnuenuebar_ih.SetBinContent(i+1,rhcnuenuebar_ih_weightfile.Get(
"Graph;"+
str(i+1)).Eval(rhcnuenuebar.GetBinContent(i+1)+100));
270 if(rhcnuenuebar.GetBinContent(i+1)!=0):
271 rhcnuenuebar_ih.SetBinError(i+1,rhcnuenuebar.GetBinError(i+1)/rhcnuenuebar.GetBinContent(i+1)*rhcnuenuebar_ih.GetBinContent(i+1));
273 fhcnumu_nh.SetBinContent(i+1,fhcnumu_nh_weightfile.Get(
"Graph;"+
str(i+1)).Eval(fhcnumu.GetBinContent(i+1)+100));
274 if(fhcnumu.GetBinContent(i+1)!=0):
275 fhcnumu_nh.SetBinError(i+1,fhcnumu.GetBinError(i+1)/fhcnumu.GetBinContent(i+1)*fhcnumu_nh.GetBinContent(i+1));
276 rhcnumu_nh.SetBinContent(i+1,rhcnumu_nh_weightfile.Get(
"Graph;"+
str(i+1)).Eval(rhcnumu.GetBinContent(i+1)+100));
277 if(rhcnumu.GetBinContent(i+1)!=0):
278 rhcnumu_nh.SetBinError(i+1,rhcnumu.GetBinError(i+1)/rhcnumu.GetBinContent(i+1)*rhcnumu_nh.GetBinContent(i+1));
280 fhcnumubar_nh.SetBinContent(i+1,fhcnumubar_nh_weightfile.Get(
"Graph;"+
str(i+1)).Eval(fhcnumubar.GetBinContent(i+1)+100));
281 if(fhcnumubar.GetBinContent(i+1)!=0):
282 fhcnumubar_nh.SetBinError(i+1,fhcnumubar.GetBinError(i+1)/fhcnumubar.GetBinContent(i+1)*fhcnumubar_nh.GetBinContent(i+1));
283 rhcnumubar_nh.SetBinContent(i+1,rhcnumubar_nh_weightfile.Get(
"Graph;"+
str(i+1)).Eval(rhcnumubar.GetBinContent(i+1)+100));
284 if(rhcnumubar.GetBinContent(i+1)!=0):
285 rhcnumubar_nh.SetBinError(i+1,rhcnumubar.GetBinError(i+1)/rhcnumubar.GetBinContent(i+1)*rhcnumubar_nh.GetBinContent(i+1));
287 fhcnuenuebar_nh.SetBinContent(i+1,fhcnuenuebar_nh_weightfile.Get(
"Graph;"+
str(i+1)).Eval(fhcnuenuebar.GetBinContent(i+1)+100));
288 if(fhcnuenuebar.GetBinContent(i+1)!=0):
289 fhcnuenuebar_nh.SetBinError(i+1,fhcnuenuebar.GetBinError(i+1)/fhcnuenuebar.GetBinContent(i+1)*fhcnuenuebar_nh.GetBinContent(i+1));
290 rhcnuenuebar_nh.SetBinContent(i+1,rhcnuenuebar_nh_weightfile.Get(
"Graph;"+
str(i+1)).Eval(rhcnuenuebar.GetBinContent(i+1)+100));
291 if(rhcnuenuebar.GetBinContent(i+1)!=0):
292 rhcnuenuebar_nh.SetBinError(i+1,rhcnuenuebar.GetBinError(i+1)/rhcnuenuebar.GetBinContent(i+1)*rhcnuenuebar_nh.GetBinContent(i+1));
294 tot_fhcnumu_ih += fhcnumu_ih.GetBinContent(i+1)
295 tot_fhcnumu_nh += fhcnumu_nh.GetBinContent(i+1)
296 tot_fhcnumubar_ih += fhcnumubar_ih.GetBinContent(i+1)
297 tot_fhcnumubar_nh += fhcnumubar_nh.GetBinContent(i+1)
298 tot_fhcnuenuebar_ih += fhcnuenuebar_ih.GetBinContent(i+1)
299 tot_fhcnuenuebar_nh += fhcnuenuebar_nh.GetBinContent(i+1)
301 tot_rhcnumu_ih += rhcnumu_ih.GetBinContent(i+1)
302 tot_rhcnumu_nh += rhcnumu_nh.GetBinContent(i+1)
303 tot_rhcnumubar_ih += rhcnumubar_ih.GetBinContent(i+1)
304 tot_rhcnumubar_nh += rhcnumubar_nh.GetBinContent(i+1)
305 tot_rhcnuenuebar_ih += rhcnuenuebar_ih.GetBinContent(i+1)
306 tot_rhcnuenuebar_nh += rhcnuenuebar_nh.GetBinContent(i+1)
308 err_fhcnumu_ih +=math.pow(fhcnumu_ih.GetBinError(i+1),2)
309 err_fhcnumu_nh +=math.pow(fhcnumu_nh.GetBinError(i+1),2)
310 err_fhcnumubar_ih +=math.pow(fhcnumubar_ih.GetBinError(i+1),2)
311 err_fhcnumubar_nh +=math.pow(fhcnumubar_nh.GetBinError(i+1),2)
312 err_fhcnuenuebar_ih +=math.pow(fhcnuenuebar_ih.GetBinError(i+1),2)
313 err_fhcnuenuebar_nh +=math.pow(fhcnuenuebar_nh.GetBinError(i+1),2)
315 err_rhcnumu_ih +=math.pow(rhcnumu_ih.GetBinError(i+1),2)
316 err_rhcnumu_nh +=math.pow(rhcnumu_nh.GetBinError(i+1),2)
317 err_rhcnumubar_ih +=math.pow(rhcnumubar_ih.GetBinError(i+1),2)
318 err_rhcnumubar_nh +=math.pow(rhcnumubar_nh.GetBinError(i+1),2)
319 err_rhcnuenuebar_ih +=math.pow(rhcnuenuebar_ih.GetBinError(i+1),2)
320 err_rhcnuenuebar_nh +=math.pow(rhcnuenuebar_nh.GetBinError(i+1),2)
322 err_fhcnumu_ih = math.sqrt(err_fhcnumu_ih)
323 err_fhcnumu_nh = math.sqrt(err_fhcnumu_nh)
324 err_fhcnumubar_ih = math.sqrt(err_fhcnumubar_ih)
325 err_fhcnumubar_nh = math.sqrt(err_fhcnumubar_nh)
326 err_fhcnuenuebar_ih = math.sqrt(err_fhcnuenuebar_ih)
327 err_fhcnuenuebar_nh = math.sqrt(err_fhcnuenuebar_nh)
329 err_rhcnumu_ih = math.sqrt(err_rhcnumu_ih)
330 err_rhcnumu_nh = math.sqrt(err_rhcnumu_nh)
331 err_rhcnumubar_ih = math.sqrt(err_rhcnumubar_ih)
332 err_rhcnumubar_nh = math.sqrt(err_rhcnumubar_nh)
333 err_rhcnuenuebar_ih = math.sqrt(err_rhcnuenuebar_ih)
334 err_rhcnuenuebar_nh = math.sqrt(err_rhcnuenuebar_nh)
338 if(quantity==
"cp_75thpercentile"):
340 if(quantity==
"mh_minimum"):
342 FMC_SENSIT =
"/dune/data/users/lblpwg_tools/FastMC_Data/outputs/ljf26/Sensitivity_Plots" 343 nh_cp_file = ROOT.TFile(FMC_SENSIT+
"/ProtonP120GeV_nh_"+quantity+
"_histos.root")
344 ih_cp_file = ROOT.TFile(FMC_SENSIT+
"/ProtonP120GeV_ih_"+quantity+
"_histos.root")
350 fitness_types = [
"standard",
"fhcnumu",
"fhcnumubar",
"fhcnuenuebar",
"rhcnumu",
"rhcnumubar",
"rhcnuenuebar",
"standard_nh",
"standard_ih"]
351 nh_fitness = [0,0,0,0,0,0,0]
352 ih_fitness = [0,0,0,0,0,0,0]
353 nh_fiterror = [0,0,0,0,0,0,0]
354 ih_fiterror = [0,0,0,0,0,0,0]
356 nh_fitness[0] = nh_sensitivity+ tot_fhcnumu_nh + tot_fhcnumubar_nh + tot_rhcnumu_nh + tot_rhcnumubar_nh + tot_fhcnuenuebar_nh + tot_rhcnuenuebar_nh;
357 ih_fitness[0] = ih_sensitivity+ tot_fhcnumu_ih + tot_fhcnumubar_ih + tot_rhcnumu_ih + tot_rhcnumubar_ih + tot_fhcnuenuebar_ih + tot_rhcnuenuebar_ih;
358 nh_fiterror[0] = ROOT.TMath.Sqrt(ROOT.TMath.Power(err_fhcnumu_nh,2)+ROOT.TMath.Power(err_fhcnumubar_nh,2)+ROOT.TMath.Power(err_rhcnumu_nh,2)+ROOT.TMath.Power(err_rhcnumubar_nh,2)+ROOT.TMath.Power(err_fhcnuenuebar_nh,2)+ROOT.TMath.Power(err_rhcnuenuebar_nh,2))
359 ih_fiterror[0] = ROOT.TMath.Sqrt(ROOT.TMath.Power(err_fhcnumu_ih,2)+ROOT.TMath.Power(err_fhcnumubar_ih,2)+ROOT.TMath.Power(err_rhcnumu_ih,2)+ROOT.TMath.Power(err_rhcnumubar_ih,2)+ROOT.TMath.Power(err_fhcnuenuebar_ih,2)+ROOT.TMath.Power(err_rhcnuenuebar_ih,2))
361 nh_fitness[1] = tot_fhcnumu_nh
362 ih_fitness[1] = tot_fhcnumu_ih
363 nh_fiterror[1] = err_fhcnumu_nh
364 ih_fiterror[1] = err_fhcnumu_ih
366 nh_fitness[2] = tot_fhcnumubar_nh
367 ih_fitness[2] = tot_fhcnumubar_ih
368 nh_fiterror[2] = err_fhcnumubar_nh
369 ih_fiterror[2] = err_fhcnumubar_ih
371 nh_fitness[3] = tot_fhcnuenuebar_nh
372 ih_fitness[3] = tot_fhcnuenuebar_ih
373 nh_fiterror[3] = err_fhcnuenuebar_nh
374 ih_fiterror[3] = err_fhcnuenuebar_ih
376 nh_fitness[4] = tot_rhcnumu_nh
377 ih_fitness[4] = tot_rhcnumu_ih
378 nh_fiterror[4] = err_rhcnumu_nh
379 ih_fiterror[4] = err_rhcnumu_ih
381 nh_fitness[5] = tot_rhcnumubar_nh
382 ih_fitness[5] = tot_rhcnumubar_ih
383 nh_fiterror[5] = err_rhcnumubar_nh
384 ih_fiterror[5] = err_rhcnumubar_ih
386 nh_fitness[6] = tot_rhcnuenuebar_nh
387 ih_fitness[6] = tot_rhcnuenuebar_ih
388 nh_fiterror[6] = err_rhcnuenuebar_nh
389 ih_fiterror[6] = err_rhcnuenuebar_ih
393 for i
in range(len(nh_fitness)):
394 fitness.append((nh_fitness[i]+ih_fitness[i])/2.0)
395 fiterror.append(ROOT.TMath.Sqrt(nh_fiterror[i]*nh_fiterror[i]+ih_fiterror[i]*ih_fiterror[i])/2.0)
397 fitness.append(nh_fitness[0])
398 fitness.append(ih_fitness[0])
399 fiterror.append(nh_fiterror[0])
400 fiterror.append(ih_fiterror[0])
402 fhcnumu_nh_weightfile.Close()
403 fhcnumubar_nh_weightfile.Close()
404 fhcnuenuebar_nh_weightfile.Close()
405 rhcnumu_nh_weightfile.Close()
406 rhcnumubar_nh_weightfile.Close()
407 rhcnuenuebar_nh_weightfile.Close()
408 rhcnumu_nh_weightfile.Close()
409 rhcnumubar_nh_weightfile.Close()
410 rhcnuenuebar_nh_weightfile.Close()
411 rhcnumu_nh_weightfile.Close()
412 rhcnumubar_nh_weightfile.Close()
413 rhcnuenuebar_nh_weightfile.Close()
420 return [fitness_types,fitness,fiterror]
def ComputeMean75PercentSensitivityAndError(varfhcfile, varrhcfile, fhcvarenergy=120.0, rhcvarenergy=120.0, antinufrac=0.5, quantity="cp")
def GetPowerPOTScaleFactor(energy)
def GetPercentile(histo, X)