nus_error_barchart.C
Go to the documentation of this file.
1 //////////////////////////////////////////////////////////////////////////
2 
3 #include <string>
4 #include <map>
5 
6 #include "TCanvas.h"
7 
9 
10 const std::string outdir = "/nova/ana/users/gsdavies/nus/Ana01";
11 
13 {
14 
15  new TCanvas;
16  std::map<std::string, double> sig_error
17  {
18  {"ND Composition", 7.0 },
19  {"Calibration", 5.8 },
20  {"Normalization", 4.9 },
21  {"ND External Activity", 4.1 },
22  {"Beam Flux", 3.4 },
23  {"Scintillation Model", 2.4 },
24  {"Simulation Statistics", 2.0 },
25  {"Neutrino Interaction", 1.6 },
26  {"Acceptance", 1.0 },
27  {"Osc. Parameters", 0.7 },
28  };
29 
30  double statErrorSig = 12.8;
31  ana::CountingExperimentErrorBarChart(sig_error, statErrorSig, true);
32  gPad->Print((outdir + "/nus_ana01_unc_sig.pdf").c_str());
33  gPad->Print((outdir + "/nus_ana01_unc_sig.eps").c_str());
34  gPad->Print((outdir + "/nus_ana01_unc_sig.png").c_str());
35 
36  new TCanvas;
37  std::map<std::string, double> bkgd_error
38  {
39  {"ND Composition", 10.4 },
40  {"Calibration", 6.0 },
41  {"Normalization", 4.9 },
42  {"ND External Activity", 1.7 },
43  {"Beam Flux", 3.6 },
44  {"Scintillation Model", 1.8 },
45  {"Simulation Statistics", 4.8 },
46  {"Neutrino Interaction", 4.8 },
47  {"Acceptance", 0.6 },
48  {"Osc. Parameters", 10.7 },
49  };
50  double statErrBkgd = 20.9;
51  ana::CountingExperimentErrorBarChart(bkgd_error, statErrBkgd, false);
52  gPad->Print((outdir + "/nus_ana01_unc_bkgd.pdf").c_str());
53  gPad->Print((outdir + "/nus_ana01_unc_bkgd.eps").c_str());
54  gPad->Print((outdir + "/nus_ana01_unc_bkgd.png").c_str());
55 
56 }
void CountingExperimentErrorBarChart(const std::map< std::string, double > &systbars, double statErr, bool bkgdOrSig, bool shortchart)
Make a simple plot of relative size of different errors.
Definition: Plots.cxx:898
void nus_error_barchart()
const std::string outdir
enum BeamMode string