55 std::vector< Double_t > fastmc_bins;
57 for(
int i = 0;
i<8/0.125;
i++)
58 fastmc_bins.push_back(
i*.125);
60 for(
int i = 0;
i<(20-8)/0.5;
i++)
61 fastmc_bins.push_back(8.0+
i*.5);
63 for(
int i = 0;
i<(120-20)/2.0;
i++)
64 fastmc_bins.push_back(20.0+
i*2.0);
70 TH1D *fhNuMuFlux =
new TH1D(
"numu_flux_forplots",
71 "numu_flux_forplots", nbins,xmin,xmax);
72 TH1D *fhNuMuBarFlux =
new TH1D(
"numubar_flux_forplots",
73 "numubar_flux_forplots", nbins/2,xmin,xmax);
74 TH1D *fhNuEFlux =
new TH1D(
"nue_flux_forplots",
75 "nue_flux_forplots", nbins/2,xmin,xmax);
76 TH1D *fhNuEBarFlux =
new TH1D(
"nuebar_flux_forplots",
77 "nuebar_flux_forplots", nbins/2,xmin,xmax);
79 TH1D *fhNuTauFlux =
new TH1D(
"nutau_flux_forplots",
80 "nutau_flux_forplots", nbins/2,xmin,xmax);
81 TH1D *fhNuTauBarFlux =
new TH1D(
"nutaubar_flux_forplots",
82 "nutaubar_flux_forplots", nbins/2,xmin,xmax);
84 TH1D *fhNuMuCCEventRate =
new TH1D(
"numu_cceventrate_forplots",
85 "numu_cceventrate_forplots", nbins,xmin,xmax);
86 TH1D *fhNuMuBarCCEventRate =
new TH1D(
"numubar_cceventrate_forplots",
87 "numubar_cceventrate_forplots", nbins/2,xmin,xmax);
88 TH1D *fhNuECCEventRate =
new TH1D(
"nue_cceventrate_forplots",
89 "nue_cceventrate_forplots", nbins/2,xmin,xmax);
90 TH1D *fhNuEBarCCEventRate =
new TH1D(
"nuebar_cceventrate_forplots",
91 "nuebar_cceventrate_forplots", nbins/2,xmin,xmax);
93 TH1D *fhNuTauCCEventRate =
new TH1D(
"nutau_cceventrate_forplots",
94 "nutau_cceventrate_forplots", nbins/2,xmin,xmax);
95 TH1D *fhNuTauBarCCEventRate =
new TH1D(
"nutaubar_cceventrate_forplots",
96 "nutaubar_cceventrate_forplots", nbins/2,xmin,xmax);
98 TH1D *fhNuMuNCEventRate =
new TH1D(
"numu_nceventrate_forplots",
99 "numu_nceventrate_forplots", nbins,xmin,xmax);
100 TH1D *fhNuMuBarNCEventRate =
new TH1D(
"numubar_nceventrate_forplots",
101 "numubar_nceventrate_forplots", nbins/2,xmin,xmax);
102 TH1D *fhNuENCEventRate =
new TH1D(
"nue_nceventrate_forplots",
103 "nue_nceventrate_forplots", nbins/2,xmin,xmax);
104 TH1D *fhNuEBarNCEventRate =
new TH1D(
"nuebar_nceventrate_forplots",
105 "nuebar_nceventrate_forplots", nbins/2,xmin,xmax);
107 TH1D *fhNuTauNCEventRate =
new TH1D(
"nutau_nceventrate_forplots",
108 "nutau_nceventrate_forplots", nbins/2,xmin,xmax);
109 TH1D *fhNuTauBarNCEventRate =
new TH1D(
"nutaubar_nceventrate_forplots",
110 "nutaubar_nceventrate_forplots", nbins/2,xmin,xmax);
113 TH1D *fhNuMuFlux_FastMC =
new TH1D(
"numu_flux",
114 "numu_flux",fastmc_bins.size()-1,&fastmc_bins[0]);
115 TH1D *fhNuMuBarFlux_FastMC =
new TH1D(
"numubar_flux",
116 "numubar_flux", fastmc_bins.size()-1,&fastmc_bins[0]);
117 TH1D *fhNuEFlux_FastMC =
new TH1D(
"nue_flux",
118 "nue_flux", fastmc_bins.size()-1,&fastmc_bins[0]);
119 TH1D *fhNuEBarFlux_FastMC =
new TH1D(
"nuebar_flux",
120 "nuebar_flux", fastmc_bins.size()-1,&fastmc_bins[0]);
121 TH1D *fhNuTauFlux_FastMC =
new TH1D(
"nutau_flux",
122 "nutau_flux", fastmc_bins.size()-1,&fastmc_bins[0]);
123 TH1D *fhNuTauBarFlux_FastMC =
new TH1D(
"nutaubar_flux",
124 "nutaubar_flux", fastmc_bins.size()-1,&fastmc_bins[0]);
126 TH1D *fhNuMuCCEventRate_FastMC =
new TH1D(
"numu_cceventrate",
127 "numu_cceventrate",fastmc_bins.size()-1,&fastmc_bins[0]);
128 TH1D *fhNuMuBarCCEventRate_FastMC =
new TH1D(
"numubar_cceventrate",
129 "numubar_cceventrate", fastmc_bins.size()-1,&fastmc_bins[0]);
130 TH1D *fhNuECCEventRate_FastMC =
new TH1D(
"nue_cceventrate",
131 "nue_cceventrate", fastmc_bins.size()-1,&fastmc_bins[0]);
132 TH1D *fhNuEBarCCEventRate_FastMC =
new TH1D(
"nuebar_cceventrate",
133 "nuebar_cceventrate", fastmc_bins.size()-1,&fastmc_bins[0]);
134 TH1D *fhNuTauCCEventRate_FastMC =
new TH1D(
"nutau_cceventrate",
135 "nutau_cceventrate", fastmc_bins.size()-1,&fastmc_bins[0]);
136 TH1D *fhNuTauBarCCEventRate_FastMC =
new TH1D(
"nutaubar_cceventrate",
137 "nutaubar_cceventrate", fastmc_bins.size()-1,&fastmc_bins[0]);
139 TH1D *fhNuMuNCEventRate_FastMC =
new TH1D(
"numu_nceventrate",
140 "numu_nceventrate",fastmc_bins.size()-1,&fastmc_bins[0]);
141 TH1D *fhNuMuBarNCEventRate_FastMC =
new TH1D(
"numubar_nceventrate",
142 "numubar_nceventrate", fastmc_bins.size()-1,&fastmc_bins[0]);
143 TH1D *fhNuENCEventRate_FastMC =
new TH1D(
"nue_nceventrate",
144 "nue_nceventrate", fastmc_bins.size()-1,&fastmc_bins[0]);
145 TH1D *fhNuEBarNCEventRate_FastMC =
new TH1D(
"nuebar_nceventrate",
146 "nuebar_nceventrate", fastmc_bins.size()-1,&fastmc_bins[0]);
147 TH1D *fhNuTauNCEventRate_FastMC =
new TH1D(
"nutau_nceventrate",
148 "nutau_nceventrate", fastmc_bins.size()-1,&fastmc_bins[0]);
149 TH1D *fhNuTauBarNCEventRate_FastMC =
new TH1D(
"nutaubar_nceventrate",
150 "nutaubar_nceventrate", fastmc_bins.size()-1,&fastmc_bins[0]);
152 double globes_low = 0;
153 double globes_high = 125.25;
154 double globes_binwidth = 0.25;
155 int globes_nbins = ( globes_high - globes_low ) / globes_binwidth;
157 TH1D *fhNuMuFlux_Globes =
new TH1D(
"numu_flux_globes",
158 "numu_flux_globes", globes_nbins,globes_low,globes_high);
159 TH1D *fhNuMuBarFlux_Globes =
new TH1D(
"numubar_flux_globes",
160 "numubar_flux_globes", globes_nbins, globes_low, globes_high);
161 TH1D *fhNuEFlux_Globes =
new TH1D(
"nue_flux_globes",
162 "nue_flux_globes", globes_nbins, globes_low, globes_high);
163 TH1D *fhNuEBarFlux_Globes =
new TH1D(
"nuebar_flux_globes",
164 "nuebar_flux_globes", globes_nbins, globes_low, globes_high);
166 TH1D *fhNuTauFlux_Globes =
new TH1D(
"nutau_flux_globes",
167 "nutau_flux_globes", globes_nbins, globes_low, globes_high);
168 TH1D *fhNuTauBarFlux_Globes =
new TH1D(
"nutaubar_flux_globes",
169 "nutau_flux_globes", globes_nbins, globes_low, globes_high);
171 TH1D *fhNuMuFluxOsc =
new TH1D(
"numu_fluxosc_forplots",
172 "numu_fluxosc_forplots", nbins,xmin,xmax);
173 TH1D *fhNuMuBarFluxOsc =
new TH1D(
"numubar_fluxosc_forplots",
174 "numubar_fluxosc_forplots", nbins/2,xmin,xmax);
175 TH1D *fhNuEFluxOsc =
new TH1D(
"nue_fluxosc_forplots",
176 "nue_fluxosc_forplots", nbins/2,xmin,xmax);
177 TH1D *fhNuEBarFluxOsc =
new TH1D(
"nuebar_fluxosc_forplots",
178 "nuebar_fluxosc_forplots", nbins/2,xmin,xmax);
180 TH1D *fhNuTauFluxOsc =
new TH1D(
"nutau_fluxosc_forplots",
181 "nutau_fluxosc_forplots", nbins/2,xmin,xmax);
182 TH1D *fhNuTauBarFluxOsc =
new TH1D(
"nutaubar_fluxosc_forplots",
183 "nutaubar_fluxosc_forplots", nbins/2,xmin,xmax);
185 TH1D *fhNuMuCCEventRateOsc =
new TH1D(
"numu_cceventrateosc_forplots",
186 "numu_cceventrateosc_forplots", nbins,xmin,xmax);
187 TH1D *fhNuMuBarCCEventRateOsc =
new TH1D(
"numubar_cceventrateosc_forplots",
188 "numubar_cceventrateosc_forplots", nbins/2,xmin,xmax);
189 TH1D *fhNuECCEventRateOsc =
new TH1D(
"nue_cceventrateosc_forplots",
190 "nue_cceventrateosc_forplots", nbins/2,xmin,xmax);
191 TH1D *fhNuEBarCCEventRateOsc =
new TH1D(
"nuebar_cceventrateosc_forplots",
192 "nuebar_cceventrateosc_forplots", nbins/2,xmin,xmax);
194 TH1D *fhNuTauCCEventRateOsc =
new TH1D(
"nutau_cceventrateosc_forplots",
195 "nutau_cceventrateosc_forplots", nbins/2,xmin,xmax);
196 TH1D *fhNuTauBarCCEventRateOsc =
new TH1D(
"nutaubar_cceventrateosc_forplots",
197 "nutaubar_cceventrateosc_forplots", nbins/2,xmin,xmax);
199 TH1D *fhNuMuNCEventRateOsc =
new TH1D(
"numu_nceventrateosc_forplots",
200 "numu_nceventrateosc_forplots", nbins,xmin,xmax);
201 TH1D *fhNuMuBarNCEventRateOsc =
new TH1D(
"numubar_nceventrateosc_forplots",
202 "numubar_nceventrateosc_forplots", nbins/2,xmin,xmax);
203 TH1D *fhNuENCEventRateOsc =
new TH1D(
"nue_nceventrateosc_forplots",
204 "nue_nceventrateosc_forplots", nbins/2,xmin,xmax);
205 TH1D *fhNuEBarNCEventRateOsc =
new TH1D(
"nuebar_nceventrateosc_forplots",
206 "nuebar_nceventrateosc_forplots", nbins/2,xmin,xmax);
208 TH1D *fhNuTauNCEventRateOsc =
new TH1D(
"nutau_nceventrateosc_forplots",
209 "nutau_nceventrateosc_forplots", nbins/2,xmin,xmax);
210 TH1D *fhNuTauBarNCEventRateOsc =
new TH1D(
"nutaubar_nceventrateosc_forplots",
211 "nutaubar_nceventrateosc_forplots", nbins/2,xmin,xmax);
213 TH1D *fhNuMuFluxOsc_FastMC =
new TH1D(
"numu_fluxosc",
214 "numu_fluxosc",fastmc_bins.size()-1,&fastmc_bins[0]);
215 TH1D *fhNuMuBarFluxOsc_FastMC =
new TH1D(
"numubar_fluxosc",
216 "numubar_fluxosc", fastmc_bins.size()-1,&fastmc_bins[0]);
217 TH1D *fhNuEFluxOsc_FastMC =
new TH1D(
"nue_fluxosc",
218 "nue_fluxosc", fastmc_bins.size()-1,&fastmc_bins[0]);
219 TH1D *fhNuEBarFluxOsc_FastMC =
new TH1D(
"nuebar_fluxosc",
220 "nuebar_fluxosc", fastmc_bins.size()-1,&fastmc_bins[0]);
221 TH1D *fhNuTauFluxOsc_FastMC =
new TH1D(
"nutau_fluxosc",
222 "nutau_fluxosc", fastmc_bins.size()-1,&fastmc_bins[0]);
223 TH1D *fhNuTauBarFluxOsc_FastMC =
new TH1D(
"nutaubar_fluxosc",
224 "nutaubar_fluxosc", fastmc_bins.size()-1,&fastmc_bins[0]);
226 TH1D *fhNuMuCCEventRateOsc_FastMC =
new TH1D(
"numu_cceventrateosc",
227 "numu_cceventrateosc",fastmc_bins.size()-1,&fastmc_bins[0]);
228 TH1D *fhNuMuBarCCEventRateOsc_FastMC =
new TH1D(
"numubar_cceventrateosc",
229 "numubar_cceventrateosc", fastmc_bins.size()-1,&fastmc_bins[0]);
230 TH1D *fhNuECCEventRateOsc_FastMC =
new TH1D(
"nue_cceventrateosc",
231 "nue_cceventrateosc", fastmc_bins.size()-1,&fastmc_bins[0]);
232 TH1D *fhNuEBarCCEventRateOsc_FastMC =
new TH1D(
"nuebar_cceventrateosc",
233 "nuebar_cceventrateosc", fastmc_bins.size()-1,&fastmc_bins[0]);
234 TH1D *fhNuTauCCEventRateOsc_FastMC =
new TH1D(
"nutau_cceventrateosc",
235 "nutau_cceventrateosc", fastmc_bins.size()-1,&fastmc_bins[0]);
236 TH1D *fhNuTauBarCCEventRateOsc_FastMC =
new TH1D(
"nutaubar_cceventrateosc",
237 "nutaubar_cceventrateosc", fastmc_bins.size()-1,&fastmc_bins[0]);
239 TH1D *fhNuMuNCEventRateOsc_FastMC =
new TH1D(
"numu_nceventrateosc",
240 "numu_nceventrateosc",fastmc_bins.size()-1,&fastmc_bins[0]);
241 TH1D *fhNuMuBarNCEventRateOsc_FastMC =
new TH1D(
"numubar_nceventrateosc",
242 "numubar_nceventrateosc", fastmc_bins.size()-1,&fastmc_bins[0]);
243 TH1D *fhNuENCEventRateOsc_FastMC =
new TH1D(
"nue_nceventrateosc",
244 "nue_nceventrateosc", fastmc_bins.size()-1,&fastmc_bins[0]);
245 TH1D *fhNuEBarNCEventRateOsc_FastMC =
new TH1D(
"nuebar_nceventrateosc",
246 "nuebar_nceventrateosc", fastmc_bins.size()-1,&fastmc_bins[0]);
247 TH1D *fhNuTauNCEventRateOsc_FastMC =
new TH1D(
"nutau_nceventrateosc",
248 "nutau_nceventrateosc", fastmc_bins.size()-1,&fastmc_bins[0]);
249 TH1D *fhNuTauBarNCEventRateOsc_FastMC =
new TH1D(
"nutaubar_nceventrateosc",
250 "nutaubar_nceventrateosc", fastmc_bins.size()-1,&fastmc_bins[0]);
257 fhNuMuBarFlux->Sumw2();
259 fhNuEBarFlux->Sumw2();
260 fhNuTauFlux->Sumw2();
261 fhNuTauBarFlux->Sumw2();
263 fhNuMuFlux_FastMC->Sumw2();
264 fhNuMuBarFlux_FastMC->Sumw2();
265 fhNuEFlux_FastMC->Sumw2();
266 fhNuEBarFlux_FastMC->Sumw2();
267 fhNuTauFlux_FastMC->Sumw2();
268 fhNuTauBarFlux_FastMC->Sumw2();
270 fhNuMuFlux_Globes->Sumw2();
271 fhNuMuBarFlux_Globes->Sumw2();
272 fhNuEFlux_Globes->Sumw2();
273 fhNuEBarFlux_Globes->Sumw2();
274 fhNuTauFlux_Globes->Sumw2();
275 fhNuTauBarFlux_Globes->Sumw2();
277 fhNuMuFluxOsc->Sumw2();
278 fhNuMuBarFluxOsc->Sumw2();
279 fhNuEFluxOsc->Sumw2();
280 fhNuEBarFluxOsc->Sumw2();
281 fhNuTauFluxOsc->Sumw2();
282 fhNuTauBarFluxOsc->Sumw2();
284 fhNuMuFluxOsc_FastMC->Sumw2();
285 fhNuMuBarFluxOsc_FastMC->Sumw2();
286 fhNuEFluxOsc_FastMC->Sumw2();
287 fhNuEBarFluxOsc_FastMC->Sumw2();
288 fhNuTauFluxOsc_FastMC->Sumw2();
289 fhNuTauBarFluxOsc_FastMC->Sumw2();
291 fhNuMuCCEventRate->Sumw2();
292 fhNuMuBarCCEventRate->Sumw2();
293 fhNuECCEventRate->Sumw2();
294 fhNuEBarCCEventRate->Sumw2();
295 fhNuTauCCEventRate->Sumw2();
296 fhNuTauBarCCEventRate->Sumw2();
297 fhNuMuNCEventRate->Sumw2();
298 fhNuMuBarNCEventRate->Sumw2();
299 fhNuENCEventRate->Sumw2();
300 fhNuEBarNCEventRate->Sumw2();
301 fhNuTauNCEventRate->Sumw2();
302 fhNuTauBarNCEventRate->Sumw2();
304 fhNuMuCCEventRate_FastMC->Sumw2();
305 fhNuMuBarCCEventRate_FastMC->Sumw2();
306 fhNuECCEventRate_FastMC->Sumw2();
307 fhNuEBarCCEventRate_FastMC->Sumw2();
308 fhNuTauCCEventRate_FastMC->Sumw2();
309 fhNuTauBarCCEventRate_FastMC->Sumw2();
310 fhNuMuNCEventRate_FastMC->Sumw2();
311 fhNuMuBarNCEventRate_FastMC->Sumw2();
312 fhNuENCEventRate_FastMC->Sumw2();
313 fhNuEBarNCEventRate_FastMC->Sumw2();
314 fhNuTauNCEventRate_FastMC->Sumw2();
315 fhNuTauBarNCEventRate_FastMC->Sumw2();
317 fhNuMuCCEventRateOsc->Sumw2();
318 fhNuMuBarCCEventRateOsc->Sumw2();
319 fhNuECCEventRateOsc->Sumw2();
320 fhNuEBarCCEventRateOsc->Sumw2();
321 fhNuTauCCEventRateOsc->Sumw2();
322 fhNuTauBarCCEventRateOsc->Sumw2();
323 fhNuMuNCEventRateOsc->Sumw2();
324 fhNuMuBarNCEventRateOsc->Sumw2();
325 fhNuENCEventRateOsc->Sumw2();
326 fhNuEBarNCEventRateOsc->Sumw2();
327 fhNuTauNCEventRateOsc->Sumw2();
328 fhNuTauBarNCEventRateOsc->Sumw2();
330 fhNuMuCCEventRateOsc_FastMC->Sumw2();
331 fhNuMuBarCCEventRateOsc_FastMC->Sumw2();
332 fhNuECCEventRateOsc_FastMC->Sumw2();
333 fhNuEBarCCEventRateOsc_FastMC->Sumw2();
334 fhNuTauCCEventRateOsc_FastMC->Sumw2();
335 fhNuTauBarCCEventRateOsc_FastMC->Sumw2();
336 fhNuMuNCEventRateOsc_FastMC->Sumw2();
337 fhNuMuBarNCEventRateOsc_FastMC->Sumw2();
338 fhNuENCEventRateOsc_FastMC->Sumw2();
339 fhNuEBarNCEventRateOsc_FastMC->Sumw2();
340 fhNuTauNCEventRateOsc_FastMC->Sumw2();
341 fhNuTauBarNCEventRateOsc_FastMC->Sumw2();
348 std::string fluxtitle =
"Neutrinos / GeV / m^{2} / POT";
349 std::string oscfluxtitle =
"Oscillated Neutrinos / GeV / m^{2} / POT";
353 SetTitles(fhNuMuFlux,
"#nu_{#mu} Energy (GeV) ",
"Unosc #nu_{#mu}s / GeV / m^{2} / POT");
354 SetTitles(fhNuMuBarFlux,
"#bar{#nu}_{#mu} Energy (GeV)",
"Unosc #bar{#nu}_{#mu}s / GeV / m^{2} / POT");
355 SetTitles(fhNuEFlux,
"#nu_{e} Energy (GeV)",
"Unosc #nu_{e}s / GeV / m^{2} / POT");
356 SetTitles(fhNuEBarFlux,
"#bar{#nu}_{e} Energy (GeV)",
"Unosc #bar{#nu}_{e}s / GeV / m^{2} / POT");
357 SetTitles(fhNuTauFlux,
"#nu_{#tau} Energy (GeV)",
"Unosc #nu_{#tau}s / GeV / m^{2} / POT");
358 SetTitles(fhNuTauBarFlux,
"#bar{#nu}_{#tau} Energy (GeV)",
"Unosc #bar{#nu}_{#tau}s / GeV / m^{2} / POT");
360 SetTitles(fhNuMuFlux_FastMC,
"#nu_{#mu} Energy (GeV) ",
"Unosc #nu_{#mu}s / m^{2} / POT");
361 SetTitles(fhNuMuBarFlux_FastMC,
"#bar{#nu}_{#mu} Energy (GeV)",
"Unosc #bar{#nu}_{#mu}s / m^{2} / POT");
362 SetTitles(fhNuEFlux_FastMC,
"#nu_{e} Energy (GeV)",
"Unosc #nu_{e}s / m^{2} / POT");
363 SetTitles(fhNuEBarFlux_FastMC,
"#bar{#nu}_{e} Energy (GeV)",
"Unosc #bar{#nu}_{e}s / m^{2} / POT");
364 SetTitles(fhNuTauFlux_FastMC,
"#nu_{#tau} Energy (GeV)",
"Unosc #nu_{#tau}s / m^{2} / POT");
365 SetTitles(fhNuTauBarFlux_FastMC,
"#bar{#nu}_{#tau} Energy (GeV)",
"Unosc #bar{#nu}_{#tau}s / m^{2} / POT");
367 SetTitles(fhNuMuFlux_Globes,
"#nu_{#mu} Energy (GeV)",
"Unosc #nu_{#mu}s / GeV / m^{2} / POT");
368 SetTitles(fhNuMuBarFlux_Globes,
"#bar{#nu}_{#mu} Energy (GeV)",
"Unosc #bar{#nu}_{#mu}s / GeV / m^{2} / POT");
369 SetTitles(fhNuEFlux_Globes,
"#nu_{e} Energy (GeV)",
"Unosc #nu_{e}s / GeV / m^{2} / POT");
370 SetTitles(fhNuEBarFlux_Globes,
"#bar{#nu}_{e} Energy (GeV)",
"Unosc #bar{#nu}_{e}s / GeV / m^{2} / POT");
371 SetTitles(fhNuTauFlux_Globes,
"#nu_{#tau} Energy (GeV)",
"Unosc #nu_{#tau}s / GeV / m^{2} / POT");
372 SetTitles(fhNuTauBarFlux_Globes,
"#bar{#nu}_{#tau} Energy (GeV)",
"Unosc #bar{#nu}_{#tau}s / GeV / m^{2} / POT");
374 SetTitles(fhNuMuFluxOsc,
"Energy (GeV)",
"Oscillated #nu_{#mu}s / GeV / m^{2} / POT");
375 SetTitles(fhNuMuBarFluxOsc,
"Energy (GeV)",
"Oscillated #bar{#nu}_{#mu}s / GeV / m^{2} / POT");
376 SetTitles(fhNuEFluxOsc,
"Energy (GeV)",
"Oscillated #nu_{e}s / GeV / m^{2} / POT");
377 SetTitles(fhNuEBarFluxOsc,
"Energy (GeV)",
"Oscillated #bar{#nu}_{e}s / GeV / m^{2} / POT");
378 SetTitles(fhNuTauFluxOsc,
"Energy (GeV)",
"Oscillated #nu_{#tau}s / GeV / m^{2} / POT");
379 SetTitles(fhNuTauBarFluxOsc,
"Energy (GeV)",
"Oscillated #bar{#nu}_{#tau}s / GeV / m^{2} / POT");
381 SetTitles(fhNuMuFluxOsc_FastMC,
"Energy (GeV)",
"Oscillated #nu_{#mu}s / m^{2} / POT");
382 SetTitles(fhNuMuBarFluxOsc_FastMC,
"Energy (GeV)",
"Oscillated #bar{#nu}_{#mu}s / m^{2} / POT");
383 SetTitles(fhNuEFluxOsc_FastMC,
"Energy (GeV)",
"Oscillated #nu_{e}s / m^{2} / POT");
384 SetTitles(fhNuEBarFluxOsc_FastMC,
"Energy (GeV)",
"Oscillated #bar{#nu}_{e}s / m^{2} / POT");
385 SetTitles(fhNuTauFluxOsc_FastMC,
"Energy (GeV)",
"Oscillated #nu_{#tau}s / GeV / m^{2} / POT");
386 SetTitles(fhNuTauBarFluxOsc_FastMC,
"Energy (GeV)",
"Oscillated #bar{#nu}_{#tau}s / GeV / m^{2} / POT");
389 SetTitles(fhNuMuCCEventRate,
"Energy (GeV)",
"#nu_{#mu} CC Events / GeV / kTon / POT");
390 SetTitles(fhNuMuBarCCEventRate,
"Energy (GeV)",
"#bar{#nu}_{#mu} CC Events / kTon / POT");
391 SetTitles(fhNuECCEventRate,
"Energy (GeV)",
"#nu_{e} CC Events / GeV / kTon / POT");
392 SetTitles(fhNuEBarCCEventRate,
"Energy (GeV)",
"#bar{#nu}_{e} CC Events / kTon / POT");
393 SetTitles(fhNuTauCCEventRate,
"Energy (GeV)",
"#nu_{#tau} CC Events / kTon / POT");
394 SetTitles(fhNuTauBarCCEventRate,
"Energy (GeV)",
"#bar{#nu}_{#tau} CC Events / kTon / POT");
396 SetTitles(fhNuMuCCEventRate_FastMC,
"Energy (GeV)",
"#nu_{#mu} CC Events / kTon / POT");
397 SetTitles(fhNuMuBarCCEventRate_FastMC,
"Energy (GeV)",
"#bar{#nu}_{#mu} CC Events / kTon / POT");
398 SetTitles(fhNuECCEventRate_FastMC,
"Energy (GeV)",
"#nu_{e} CC Events / kTon / POT");
399 SetTitles(fhNuEBarCCEventRate_FastMC,
"Energy (GeV)",
"#bar{#nu}_{e} CC Events / kTon / POT");
400 SetTitles(fhNuTauCCEventRate_FastMC,
"Energy (GeV)",
"#nu_{#tau} CC Events / kTon / POT");
401 SetTitles(fhNuTauBarCCEventRate_FastMC,
"Energy (GeV)",
"#bar{#nu}_{#tau} CC Events / kTon / POT");
403 SetTitles(fhNuMuCCEventRateOsc,
"Energy (GeV)",
"Oscillated #nu_{#mu} CC Events / GeV / kTon / POT");
404 SetTitles(fhNuMuBarCCEventRateOsc,
"Energy (GeV)",
"Oscillated #bar{#nu}_{#mu} CC Events / GeV / kTon / POT");
405 SetTitles(fhNuECCEventRateOsc,
"Energy (GeV)",
"Oscillated #nu_{e} CC Events / GeV / kTon / POT");
406 SetTitles(fhNuEBarCCEventRateOsc,
"Energy (GeV)",
"Oscillated #bar{#nu}_{e} CC Events / GeV / kTon / POT");
407 SetTitles(fhNuTauCCEventRateOsc,
"Energy (GeV)",
"Oscillated #nu_{#tau} CC Events / GeV / kTon / POT");
408 SetTitles(fhNuTauBarCCEventRateOsc,
"Energy (GeV)",
"Oscillated #bar{#nu}_{#tau} CC Events / GeV / kTon / POT");
410 SetTitles(fhNuMuCCEventRateOsc_FastMC,
"Energy (GeV)",
"Oscillated #nu_{#mu} CC Events / kTon / POT");
411 SetTitles(fhNuMuBarCCEventRateOsc_FastMC,
"Energy (GeV)",
"Oscillated #bar{#nu}_{#mu} CC Events / kTon / POT");
412 SetTitles(fhNuECCEventRateOsc_FastMC,
"Energy (GeV)",
"Oscillated #nu_{e} CC Events / kTon / POT");
413 SetTitles(fhNuEBarCCEventRateOsc_FastMC,
"Energy (GeV)",
"Oscillated #bar{#nu}_{e} CC Events / kTon / POT");
414 SetTitles(fhNuTauCCEventRateOsc_FastMC,
"Energy (GeV)",
"Oscillated #nu_{#tau} CC Events / kTon / POT");
415 SetTitles(fhNuTauBarCCEventRateOsc_FastMC,
"Energy (GeV)",
"Oscillated #bar{#nu}_{#tau} CC Events / kTon / POT");
418 SetTitles(fhNuMuNCEventRate,
"Energy (GeV)",
"#nu_{#mu} NC Events / GeV / kTon / POT");
419 SetTitles(fhNuMuBarNCEventRate,
"Energy (GeV)",
"#bar{#nu}_{#mu} NC Events / GeV / kTon / POT");
420 SetTitles(fhNuENCEventRate,
"Energy (GeV)",
"#nu_{e} NC Events / GeV / kTon / POT");
421 SetTitles(fhNuEBarNCEventRate,
"Energy (GeV)",
"#bar{#nu}_{e} NC Events / GeV / kTon / POT");
422 SetTitles(fhNuTauNCEventRate,
"Energy (GeV)",
"#nu_{#tau} NC Events / GeV / kTon / POT");
423 SetTitles(fhNuTauBarNCEventRate,
"Energy (GeV)",
"#bar{#nu}_{#tau} NC Events / GeV / kTon / POT");
425 SetTitles(fhNuMuNCEventRate_FastMC,
"Energy (GeV)",
"#nu_{#mu} NC Events / kTon / POT");
426 SetTitles(fhNuMuBarNCEventRate_FastMC,
"#bar{#nu}_{#mu} Energy (GeV)",
"#bar{#nu}_{#mu} NC Events / kTon / POT");
427 SetTitles(fhNuENCEventRate_FastMC,
"#nu_{e} Energy (GeV)",
"#nu_{e} NC Events / kTon / POT");
428 SetTitles(fhNuEBarNCEventRate_FastMC,
"#bar{#nu}_{e} Energy (GeV)",
"#bar{#nu}_{e} NC Events / kTon / POT");
429 SetTitles(fhNuTauNCEventRate_FastMC,
"#nu_{#tau} Energy (GeV)",
"#nu_{#tau} NC Events / kTon / POT");
430 SetTitles(fhNuTauBarNCEventRate_FastMC,
"#bar{#nu}_{#tau} Energy (GeV)",
"#bar{#nu}_{#tau} NC Events / kTon / POT");
432 SetTitles(fhNuMuNCEventRateOsc,
"#nu_{#mu} Energy (GeV)",
"Oscillated #nu_{#mu} NC Events / GeV / kTon / POT");
433 SetTitles(fhNuMuBarNCEventRateOsc,
"#bar{#nu}_{#mu} Energy (GeV)",
"Oscillated #bar{#nu}_{#mu} NC Events / GeV / kTon / POT");
434 SetTitles(fhNuENCEventRateOsc,
"#nu_{e} Energy (GeV)",
"Oscillated #nu_{e} NC Events / GeV / kTon / POT");
435 SetTitles(fhNuEBarNCEventRateOsc,
"#bar{#nu}_{e} Energy (GeV)",
"Oscillated #bar{#nu}_{e} NC Events / GeV / kTon / POT");
436 SetTitles(fhNuTauNCEventRateOsc,
"#nu_{#tau} Energy (GeV)",
"Oscillated #nu_{#tau} NC Events / GeV / kTon / POT");
437 SetTitles(fhNuTauBarNCEventRateOsc,
"#bar{#nu}_{#tau} Energy (GeV)",
"Oscillated #bar{#nu}_{#tau} NC Events / GeV / kTon / POT");
439 SetTitles(fhNuMuNCEventRateOsc_FastMC,
"#nu_{#mu} Energy (GeV)",
"Oscillated #nu_{#mu} NC Events / kTon / POT");
440 SetTitles(fhNuMuBarNCEventRateOsc_FastMC,
"#bar{#nu}_{#mu} Energy (GeV)",
"Oscillated #bar{#nu}_{#mu} NC Events / kTon / POT");
441 SetTitles(fhNuENCEventRateOsc_FastMC,
"#nu_{e} Energy (GeV)",
"Oscillated #nu_{e} NC Events / kTon / POT");
442 SetTitles(fhNuEBarNCEventRateOsc_FastMC,
"#bar{#nu}_{e} Energy (GeV)",
"Oscillated #bar{#nu}_{e} NC Events / kTon / POT");
443 SetTitles(fhNuTauNCEventRateOsc_FastMC,
"#nu_{#tau} Energy (GeV)",
"Oscillated #nu_{#tau} NC Events / kTon / POT");
444 SetTitles(fhNuTauBarNCEventRateOsc_FastMC,
"#bar{#nu}_{#tau} Energy (GeV)",
"Oscillated #bar{#nu}_{#tau} NC Events / kTon / POT");
450 dk2nu =
new bsim::Dk2Nu;
455 Long64_t nentries =
fChain->GetEntries();
456 std::cout <<
"Total number of Entries = " << nentries <<
std::endl;
458 for (Long64_t jentry=0; jentry<nentries;jentry++)
468 if (ientry < 0)
break;
472 if(
iread % 10000 == 0)
484 double nuenergyatsomedet = -999.0;
485 double detectorwghtatsomedet = -999.0;
486 std::vector<double> detvec;
487 detvec.push_back(
detx);
488 detvec.push_back(
dety);
489 detvec.push_back(
detz);
499 double fluxwghtsomedet = (detectorwghtatsomedet*
Nimpwt/3.1415)*(refpot/
fTotalPOT);
503 double cceventratewghtsomedet = fluxwghtsomedet *
GetXSec((
double)
Ntype,nuenergyatsomedet,current_string);
505 current_string =
"NC";
506 double nceventratewghtsomedet = fluxwghtsomedet *
GetXSec(
Ntype,nuenergyatsomedet,current_string);
511 current_string =
"CC";
512 double cceventratewghtsomedet_osc = fluxwghtsomedet *
GetXSec((
double)Ntype_osc,nuenergyatsomedet,current_string);
513 current_string =
"NC";
514 double nceventratewghtsomedet_osc = fluxwghtsomedet *
GetXSec(Ntype_osc,nuenergyatsomedet,current_string);
524 fhNuMuFlux -> Fill(nuenergyatsomedet, fluxwghtsomedet);
525 fhNuMuCCEventRate -> Fill(nuenergyatsomedet, cceventratewghtsomedet);
526 fhNuMuNCEventRate -> Fill(nuenergyatsomedet, nceventratewghtsomedet);
528 fhNuMuFlux_FastMC -> Fill(nuenergyatsomedet, fluxwghtsomedet);
529 fhNuMuCCEventRate_FastMC -> Fill(nuenergyatsomedet, cceventratewghtsomedet);
530 fhNuMuNCEventRate_FastMC -> Fill(nuenergyatsomedet, nceventratewghtsomedet);
531 fhNuMuFlux_Globes-> Fill(nuenergyatsomedet, fluxwghtsomedet);
535 fhNuMuBarFlux -> Fill(nuenergyatsomedet, fluxwghtsomedet);
536 fhNuMuBarCCEventRate -> Fill(nuenergyatsomedet, cceventratewghtsomedet);
537 fhNuMuBarNCEventRate -> Fill(nuenergyatsomedet, nceventratewghtsomedet);
539 fhNuMuBarFlux_FastMC -> Fill(nuenergyatsomedet, fluxwghtsomedet);
540 fhNuMuBarCCEventRate_FastMC -> Fill(nuenergyatsomedet, cceventratewghtsomedet);
541 fhNuMuBarNCEventRate_FastMC -> Fill(nuenergyatsomedet, nceventratewghtsomedet);
542 fhNuMuBarFlux_Globes-> Fill(nuenergyatsomedet, fluxwghtsomedet);
546 fhNuEFlux -> Fill(nuenergyatsomedet, fluxwghtsomedet);
547 fhNuECCEventRate -> Fill(nuenergyatsomedet, cceventratewghtsomedet);
548 fhNuENCEventRate -> Fill(nuenergyatsomedet, nceventratewghtsomedet);
550 fhNuEFlux_FastMC -> Fill(nuenergyatsomedet, fluxwghtsomedet);
551 fhNuECCEventRate_FastMC -> Fill(nuenergyatsomedet, cceventratewghtsomedet);
552 fhNuENCEventRate_FastMC -> Fill(nuenergyatsomedet, nceventratewghtsomedet);
553 fhNuEFlux_Globes-> Fill(nuenergyatsomedet, fluxwghtsomedet);
557 fhNuEBarFlux -> Fill(nuenergyatsomedet, fluxwghtsomedet);
558 fhNuEBarCCEventRate -> Fill(nuenergyatsomedet, cceventratewghtsomedet);
559 fhNuEBarNCEventRate -> Fill(nuenergyatsomedet, nceventratewghtsomedet);
561 fhNuEBarFlux_FastMC -> Fill(nuenergyatsomedet, fluxwghtsomedet);
562 fhNuEBarCCEventRate_FastMC -> Fill(nuenergyatsomedet, cceventratewghtsomedet);
563 fhNuEBarNCEventRate_FastMC -> Fill(nuenergyatsomedet, nceventratewghtsomedet);
564 fhNuEBarFlux_Globes-> Fill(nuenergyatsomedet, fluxwghtsomedet);
569 fhNuTauFlux -> Fill(nuenergyatsomedet, fluxwghtsomedet);
570 fhNuTauCCEventRate -> Fill(nuenergyatsomedet, cceventratewghtsomedet);
571 fhNuTauNCEventRate -> Fill(nuenergyatsomedet, nceventratewghtsomedet);
573 fhNuTauFlux_FastMC -> Fill(nuenergyatsomedet, fluxwghtsomedet);
574 fhNuTauCCEventRate_FastMC -> Fill(nuenergyatsomedet, cceventratewghtsomedet);
575 fhNuTauNCEventRate_FastMC -> Fill(nuenergyatsomedet, nceventratewghtsomedet);
576 fhNuTauFlux_Globes-> Fill(nuenergyatsomedet, fluxwghtsomedet);
580 fhNuTauBarFlux -> Fill(nuenergyatsomedet, fluxwghtsomedet);
581 fhNuTauBarCCEventRate -> Fill(nuenergyatsomedet, cceventratewghtsomedet);
582 fhNuTauBarNCEventRate -> Fill(nuenergyatsomedet, nceventratewghtsomedet);
584 fhNuTauBarFlux_FastMC -> Fill(nuenergyatsomedet, fluxwghtsomedet);
585 fhNuTauBarCCEventRate_FastMC -> Fill(nuenergyatsomedet, cceventratewghtsomedet);
586 fhNuTauBarNCEventRate_FastMC -> Fill(nuenergyatsomedet, nceventratewghtsomedet);
587 fhNuTauBarFlux_Globes-> Fill(nuenergyatsomedet, fluxwghtsomedet);
590 if(Ntype_osc == 56 || Ntype_osc==14)
592 fhNuMuFluxOsc -> Fill(nuenergyatsomedet, fluxwghtsomedet);
593 fhNuMuCCEventRateOsc -> Fill(nuenergyatsomedet, cceventratewghtsomedet_osc);
594 fhNuMuNCEventRateOsc -> Fill(nuenergyatsomedet, nceventratewghtsomedet_osc);
595 fhNuMuFluxOsc_FastMC -> Fill(nuenergyatsomedet, fluxwghtsomedet);
596 fhNuMuCCEventRateOsc_FastMC -> Fill(nuenergyatsomedet, cceventratewghtsomedet_osc);
597 fhNuMuNCEventRateOsc_FastMC -> Fill(nuenergyatsomedet, nceventratewghtsomedet_osc);
599 if(Ntype_osc == 55 || Ntype_osc==-14)
601 fhNuMuBarFluxOsc -> Fill(nuenergyatsomedet, fluxwghtsomedet);
602 fhNuMuBarCCEventRateOsc -> Fill(nuenergyatsomedet, cceventratewghtsomedet_osc);
603 fhNuMuBarNCEventRateOsc -> Fill(nuenergyatsomedet, nceventratewghtsomedet_osc);
604 fhNuMuBarFluxOsc_FastMC -> Fill(nuenergyatsomedet, fluxwghtsomedet);
605 fhNuMuBarCCEventRateOsc_FastMC -> Fill(nuenergyatsomedet, cceventratewghtsomedet_osc);
606 fhNuMuBarNCEventRateOsc_FastMC -> Fill(nuenergyatsomedet, nceventratewghtsomedet_osc);
609 if(Ntype_osc == 53 || Ntype_osc==12)
611 fhNuEFluxOsc -> Fill(nuenergyatsomedet, fluxwghtsomedet);
612 fhNuECCEventRateOsc -> Fill(nuenergyatsomedet, cceventratewghtsomedet_osc);
613 fhNuENCEventRateOsc -> Fill(nuenergyatsomedet, nceventratewghtsomedet_osc);
614 fhNuEFluxOsc_FastMC -> Fill(nuenergyatsomedet, fluxwghtsomedet);
615 fhNuECCEventRateOsc_FastMC -> Fill(nuenergyatsomedet, cceventratewghtsomedet_osc);
616 fhNuENCEventRateOsc_FastMC -> Fill(nuenergyatsomedet, nceventratewghtsomedet_osc);
618 if(Ntype_osc == 52 || Ntype_osc==-12)
620 fhNuEBarFluxOsc -> Fill(nuenergyatsomedet, fluxwghtsomedet);
621 fhNuEBarCCEventRateOsc -> Fill(nuenergyatsomedet, cceventratewghtsomedet_osc);
622 fhNuEBarNCEventRateOsc -> Fill(nuenergyatsomedet, nceventratewghtsomedet_osc);
623 fhNuEBarFluxOsc_FastMC -> Fill(nuenergyatsomedet, fluxwghtsomedet);
624 fhNuEBarCCEventRateOsc_FastMC -> Fill(nuenergyatsomedet, cceventratewghtsomedet_osc);
625 fhNuEBarNCEventRateOsc_FastMC -> Fill(nuenergyatsomedet, nceventratewghtsomedet_osc);
629 if(Ntype_osc == 59 || Ntype_osc==16)
631 fhNuTauFluxOsc -> Fill(nuenergyatsomedet, fluxwghtsomedet);
632 fhNuTauCCEventRateOsc -> Fill(nuenergyatsomedet, cceventratewghtsomedet_osc);
633 fhNuTauNCEventRateOsc -> Fill(nuenergyatsomedet, nceventratewghtsomedet_osc);
634 fhNuTauFluxOsc_FastMC -> Fill(nuenergyatsomedet, fluxwghtsomedet);
635 fhNuTauCCEventRateOsc_FastMC -> Fill(nuenergyatsomedet, cceventratewghtsomedet_osc);
636 fhNuTauNCEventRateOsc_FastMC -> Fill(nuenergyatsomedet, nceventratewghtsomedet_osc);
639 if(Ntype_osc == 58 || Ntype_osc==-16)
641 fhNuTauBarFluxOsc -> Fill(nuenergyatsomedet, fluxwghtsomedet);
642 fhNuTauBarCCEventRateOsc -> Fill(nuenergyatsomedet, cceventratewghtsomedet_osc);
643 fhNuTauBarNCEventRateOsc -> Fill(nuenergyatsomedet, nceventratewghtsomedet_osc);
644 fhNuTauBarFluxOsc_FastMC -> Fill(nuenergyatsomedet, fluxwghtsomedet);
645 fhNuTauBarCCEventRateOsc_FastMC -> Fill(nuenergyatsomedet, cceventratewghtsomedet_osc);
646 fhNuTauBarNCEventRateOsc_FastMC -> Fill(nuenergyatsomedet, nceventratewghtsomedet_osc);
651 fhNuMuFlux->Scale(1.0,
"width");
652 fhNuMuCCEventRate->Scale(1.0,
"width");
653 fhNuMuNCEventRate->Scale(1.0,
"width");
655 fhNuMuBarFlux->Scale(1.0,
"width");
656 fhNuMuBarCCEventRate->Scale(1.0,
"width");
657 fhNuMuBarNCEventRate->Scale(1.0,
"width");
659 fhNuEFlux->Scale(1.0,
"width");
660 fhNuECCEventRate->Scale(1.0,
"width");
661 fhNuENCEventRate->Scale(1.0,
"width");
663 fhNuEBarFlux->Scale(1.0,
"width");
664 fhNuEBarCCEventRate->Scale(1.0,
"width");
665 fhNuEBarNCEventRate->Scale(1.0,
"width");
667 fhNuTauFlux->Scale(1.0,
"width");
668 fhNuTauCCEventRate->Scale(1.0,
"width");
669 fhNuTauNCEventRate->Scale(1.0,
"width");
671 fhNuTauBarFlux->Scale(1.0,
"width");
672 fhNuTauBarCCEventRate->Scale(1.0,
"width");
673 fhNuTauBarNCEventRate->Scale(1.0,
"width");
675 fhNuMuFluxOsc->Scale(1.0,
"width");
676 fhNuMuCCEventRateOsc->Scale(1.0,
"width");
677 fhNuMuNCEventRateOsc->Scale(1.0,
"width");
679 fhNuMuBarFluxOsc->Scale(1.0,
"width");
680 fhNuMuBarCCEventRateOsc->Scale(1.0,
"width");
681 fhNuMuBarNCEventRateOsc->Scale(1.0,
"width");
683 fhNuEFluxOsc->Scale(1.0,
"width");
684 fhNuECCEventRateOsc->Scale(1.0,
"width");
685 fhNuENCEventRateOsc->Scale(1.0,
"width");
687 fhNuEBarFluxOsc->Scale(1.0,
"width");
688 fhNuEBarCCEventRateOsc->Scale(1.0,
"width");
689 fhNuEBarNCEventRateOsc->Scale(1.0,
"width");
691 fhNuTauFluxOsc->Scale(1.0,
"width");
692 fhNuTauCCEventRateOsc->Scale(1.0,
"width");
693 fhNuTauNCEventRateOsc->Scale(1.0,
"width");
695 fhNuTauBarFluxOsc->Scale(1.0,
"width");
696 fhNuTauBarCCEventRateOsc->Scale(1.0,
"width");
697 fhNuTauBarNCEventRateOsc->Scale(1.0,
"width");
699 fhNuMuFlux_Globes->Scale(1.0,
"width");
700 fhNuMuBarFlux_Globes->Scale(1.0,
"width");
701 fhNuEFlux_Globes->Scale(1.0,
"width");
702 fhNuEBarFlux_Globes->Scale(1.0,
"width");
703 fhNuTauFlux_Globes->Scale(1.0,
"width");
704 fhNuTauBarFlux_Globes->Scale(1.0,
"width");
710 TGaxis::SetMaxDigits(2);
711 fhNuMuFlux_FastMC->GetYaxis()->SetTitleOffset(1.4);
712 fhNuMuBarFlux_FastMC->GetYaxis()->SetTitleOffset(1.4);
713 fhNuEFlux_FastMC->GetYaxis()->SetTitleOffset(1.4);
714 fhNuEBarFlux_FastMC->GetYaxis()->SetTitleOffset(1.4);
715 fhNuTauFlux_FastMC->GetYaxis()->SetTitleOffset(1.4);
716 fhNuTauBarFlux_FastMC->GetYaxis()->SetTitleOffset(1.4);
718 fhNuMuCCEventRate_FastMC->GetYaxis()->SetTitleOffset(1.4);
719 fhNuMuBarCCEventRate_FastMC->GetYaxis()->SetTitleOffset(1.4);
720 fhNuECCEventRate_FastMC->GetYaxis()->SetTitleOffset(1.4);
721 fhNuEBarCCEventRate_FastMC->GetYaxis()->SetTitleOffset(1.4);
722 fhNuTauCCEventRate_FastMC->GetYaxis()->SetTitleOffset(1.4);
723 fhNuTauBarCCEventRate_FastMC->GetYaxis()->SetTitleOffset(1.4);
725 fhNuMuNCEventRate_FastMC->GetYaxis()->SetTitleOffset(1.4);
726 fhNuMuBarNCEventRate_FastMC->GetYaxis()->SetTitleOffset(1.4);
727 fhNuENCEventRate_FastMC->GetYaxis()->SetTitleOffset(1.4);
728 fhNuEBarNCEventRate_FastMC->GetYaxis()->SetTitleOffset(1.4);
729 fhNuTauNCEventRate_FastMC->GetYaxis()->SetTitleOffset(1.4);
730 fhNuTauBarNCEventRate_FastMC->GetYaxis()->SetTitleOffset(1.4);
737 TParameter<double> det_x(
"det_x",
detx);
738 TParameter<double> det_y(
"det_y",
dety);
739 TParameter<double> det_z(
"det_z",
detz);
743 TFile
f((
ffilename+
".root").c_str(),
"recreate");
748 fhNuMuBarFlux->Write();
750 fhNuEBarFlux->Write();
751 fhNuTauFlux->Write();
752 fhNuTauBarFlux->Write();
753 fhNuMuCCEventRate->Write();
754 fhNuMuBarCCEventRate->Write();
755 fhNuECCEventRate->Write();
756 fhNuEBarCCEventRate->Write();
757 fhNuTauCCEventRate->Write();
758 fhNuTauBarCCEventRate->Write();
759 fhNuMuNCEventRate->Write();
760 fhNuMuBarNCEventRate->Write();
761 fhNuENCEventRate->Write();
762 fhNuEBarNCEventRate->Write();
763 fhNuTauNCEventRate->Write();
764 fhNuTauBarNCEventRate->Write();
765 fhNuMuFluxOsc->Write();
766 fhNuMuBarFluxOsc->Write();
767 fhNuEFluxOsc->Write();
768 fhNuEBarFluxOsc->Write();
769 fhNuTauFluxOsc->Write();
770 fhNuTauBarFluxOsc->Write();
771 fhNuMuCCEventRateOsc->Write();
772 fhNuMuBarCCEventRateOsc->Write();
773 fhNuECCEventRateOsc->Write();
774 fhNuEBarCCEventRateOsc->Write();
775 fhNuTauCCEventRateOsc->Write();
776 fhNuTauBarCCEventRateOsc->Write();
777 fhNuMuNCEventRateOsc->Write();
778 fhNuMuBarNCEventRateOsc->Write();
779 fhNuENCEventRateOsc->Write();
780 fhNuEBarNCEventRateOsc->Write();
781 fhNuTauNCEventRateOsc->Write();
782 fhNuTauBarNCEventRateOsc->Write();
785 TFile g((
ffilename+
"_fastmc.root").c_str(),
"recreate");
789 fhNuMuFlux_FastMC->Write();
790 fhNuMuBarFlux_FastMC->Write();
791 fhNuEFlux_FastMC->Write();
792 fhNuEBarFlux_FastMC->Write();
793 fhNuTauFlux_FastMC->Write();
794 fhNuTauBarFlux_FastMC->Write();
795 fhNuMuCCEventRate_FastMC->Write();
796 fhNuMuBarCCEventRate_FastMC->Write();
797 fhNuECCEventRate_FastMC->Write();
798 fhNuEBarCCEventRate_FastMC->Write();
799 fhNuTauCCEventRate_FastMC->Write();
800 fhNuTauBarCCEventRate_FastMC->Write();
801 fhNuMuNCEventRate_FastMC->Write();
802 fhNuMuBarNCEventRate_FastMC->Write();
803 fhNuENCEventRate_FastMC->Write();
804 fhNuEBarNCEventRate_FastMC->Write();
805 fhNuTauNCEventRate_FastMC->Write();
806 fhNuTauBarNCEventRate_FastMC->Write();
808 fhNuMuFluxOsc_FastMC->Write();
809 fhNuMuBarFluxOsc_FastMC->Write();
810 fhNuEFluxOsc_FastMC->Write();
811 fhNuEBarFluxOsc_FastMC->Write();
812 fhNuTauFluxOsc_FastMC->Write();
813 fhNuTauBarFluxOsc_FastMC->Write();
814 fhNuMuCCEventRateOsc_FastMC->Write();
815 fhNuMuBarCCEventRateOsc_FastMC->Write();
816 fhNuECCEventRateOsc_FastMC->Write();
817 fhNuEBarCCEventRateOsc_FastMC->Write();
818 fhNuTauCCEventRateOsc_FastMC->Write();
819 fhNuTauBarCCEventRateOsc_FastMC->Write();
820 fhNuMuNCEventRateOsc_FastMC->Write();
821 fhNuMuBarNCEventRateOsc_FastMC->Write();
822 fhNuENCEventRateOsc_FastMC->Write();
823 fhNuEBarNCEventRateOsc_FastMC->Write();
824 fhNuTauNCEventRateOsc_FastMC->Write();
825 fhNuTauBarNCEventRateOsc_FastMC->Write();
830 myfile.open((
ffilename+
"_globes_flux.txt").c_str());
831 for(
int i = 0;
i<globes_nbins;
i++) {
832 myfile<<fhNuMuFlux_Globes->GetBinCenter(
i+1)<<
" "<<
833 fhNuEFlux_Globes->GetBinContent(
i+1)<<
" "<<
834 fhNuMuFlux_Globes->GetBinContent(
i+1)<<
" "<<
835 fhNuTauFlux_Globes->GetBinContent(
i+1)<<
" "<<
836 fhNuEBarFlux_Globes->GetBinContent(
i+1)<<
" "<<
837 fhNuMuBarFlux_Globes->GetBinContent(
i+1)<<
" "<<
838 fhNuTauBarFlux_Globes->GetBinContent(
i+1)<<
" "<<
std::endl;
double GetXSec(double nu_type, double nu_energy, std::string current)
void SetTitles(TH1 *h, const std::string &xtitle="", const std::string &ytitle="")
double GetOscillatedNeutrinoType(double ntype, double E)
Double_t fTotalPOT
current Tree number in a TChain
std::string GetPOTAsString(const double dpot)
double GetWeight(const std::vector< double > xdet, double &nu_wght, double &nu_energy)
virtual Long64_t LoadTree(Long64_t entry)
QTextStream & endl(QTextStream &s)