Functions
numu_tools.h File Reference

Go to the source code of this file.

Functions

TPaveText * drawQuantLabel (int quantId=0)
 
void DrawLegendBF (double bfSin, double bfDm, Color_t color, Style_t style)
 
void DrawLegendBFNull (double bfSin, double bfDm, Color_t color, Style_t style)
 
void DrawLegendBF2 (double bfSin, double bfDm, Color_t color, Style_t style, double bfSin2, double bfDm2, Color_t color2, Style_t style2)
 
void DrawLegendBF3 (double bfSin, double bfDm, Color_t color, Style_t style, double bfSin2, double bfDm2, Color_t color2, Style_t style2, double bfSin3, double bfDm3, Color_t color3, Style_t style3)
 
void CornerLabel (std::string &s)
 
void PreliminarySimulation ()
 
void PreliminaryBoxOpening ()
 
void PreliminaryNoOsc ()
 
void PreliminaryNoOscQuant ()
 
void PreliminaryNoOscRatio ()
 

Function Documentation

void CornerLabel ( std::string s)

Definition at line 145 of file numu_tools.h.

Referenced by demoPlotSystBands(), FD_Data_PosComp(), FD_DataOnly_PosComp(), MakeCanvasForData(), MakeCanvasForSim(), MakeRawPlot(), MakeSplitCans(), ana::BENDecomp::MakeWeightsNumuFromPion(), plot_contprof(), plot_datapredictions(), plot_predictions(), plot_quantile_boundaries_2020(), plot_quantile_boundaries_twosamples_2020(), plot_rationoosc(), plot_shifts(), ana::BENDecomp::SavePlots(), ana::BENDecomp::SavePlotsKa(), and ana::BENDecomp::SavePlotsPi().

146 {
147 
148  //TPaveText *pavetext = new TPaveText (0.10,0.90,0.14,0.94,"NDC") ;
149  TPaveText *pavetext = new TPaveText (0.12,0.92,0.16,0.96,"NDC");
150  pavetext->SetFillStyle(0);
151  pavetext->SetLineColor(0);
152  pavetext->SetLineWidth(0);
153  pavetext->SetBorderSize(1);
154  pavetext->SetTextColor(kGray+2);
155  pavetext->AddText(s.c_str());
156  pavetext->SetTextSize(2/40.);
157  pavetext->SetTextAlign(11);
158  pavetext->Draw();
159  /*
160  TLatex* corner = new TLatex(.9, .94, s.c_str());
161  corner->SetTextColor(kGray+2);
162  corner->SetNDC();
163  corner->SetTextSize(2/50.);
164  corner->SetTextAlign(32);
165  corner->Draw();
166  */
167 }
const XML_Char * s
Definition: expat.h:262
void DrawLegendBF ( double  bfSin,
double  bfDm,
Color_t  color,
Style_t  style 
)

Definition at line 62 of file numu_tools.h.

References genie::utils::style::Format(), and make_mec_shifts_plots::legend.

62  {
63 
64  TGraph* marker = new TGraph();
65  marker->SetPoint(1,bfSin, bfDm);
66  marker->SetMarkerStyle(style);
67  marker->SetMarkerColor(color);
68  marker->SetMarkerSize(1.5);
69  TLegend *legend = new TLegend(0.13,0.12,0.28,0.25);
70  legend->SetHeader("Best fit");
71  legend->AddEntry(marker,TString::Format("(%.2f, %.2f#times10^{-3}eV^{2})", bfSin, bfDm),"p");
72  legend->SetTextSize(0.04); //no border for legend
73  legend->SetBorderSize(0);
74  legend->SetFillStyle(0);
75  legend->Draw();
76 
77 }
void Format(TGraph *gr, int lcol, int lsty, int lwid, int mcol, int msty, double msiz)
Definition: Style.cxx:154
void DrawLegendBF2 ( double  bfSin,
double  bfDm,
Color_t  color,
Style_t  style,
double  bfSin2,
double  bfDm2,
Color_t  color2,
Style_t  style2 
)

Definition at line 100 of file numu_tools.h.

References HTMLTools::entry(), genie::utils::style::Format(), and make_mec_shifts_plots::legend.

100  {
101 
102  TLegend *legend = new TLegend(0.13,0.12,0.28,0.30,NULL,"brNDC");
103  legend->SetTextSize(0.04); //no border for legend
104  legend->SetBorderSize(0);
105  legend->SetFillStyle(0);
106  TLegendEntry *entry = legend->AddEntry("NULL","Best fit","h");
107  entry = legend->AddEntry("bestfit",TString::Format("(%.2f, %.2f 10^{-3} eV^{2})", bfSin, bfDm),"P");
108  entry->SetMarkerColor(color);
109  entry->SetMarkerStyle(style);
110  entry->SetTextFont(42);
111  entry = legend->AddEntry("bestfit",TString::Format("(%.2f, %.2f 10^{-3} eV^{2})", bfSin2, bfDm2),"P");
112  entry->SetMarkerColor(color2);
113  entry->SetMarkerStyle(style2);
114  entry->SetTextFont(42);
115  legend->Draw();
116 
117 }
void Format(TGraph *gr, int lcol, int lsty, int lwid, int mcol, int msty, double msiz)
Definition: Style.cxx:154
def entry(str)
Definition: HTMLTools.py:26
void DrawLegendBF3 ( double  bfSin,
double  bfDm,
Color_t  color,
Style_t  style,
double  bfSin2,
double  bfDm2,
Color_t  color2,
Style_t  style2,
double  bfSin3,
double  bfDm3,
Color_t  color3,
Style_t  style3 
)

Definition at line 120 of file numu_tools.h.

References HTMLTools::entry(), genie::utils::style::Format(), and make_mec_shifts_plots::legend.

120  {
121 
122  TLegend *legend = new TLegend(0.13,0.12,0.28,0.35,NULL,"brNDC");
123  legend->SetTextSize(0.04); //no border for legend
124  legend->SetBorderSize(0);
125  legend->SetFillStyle(0);
126  TLegendEntry *entry = legend->AddEntry("NULL","Best fit","h");
127  entry = legend->AddEntry("bestfit",TString::Format("(%.2f, %.2f 10^{-3} eV^{2})", bfSin, bfDm),"P");
128  entry->SetMarkerColor(color);
129  entry->SetMarkerStyle(style);
130  entry->SetTextFont(42);
131  entry = legend->AddEntry("bestfit",TString::Format("(%.2f, %.2f 10^{-3} eV^{2})", bfSin2, bfDm2),"P");
132  entry->SetMarkerColor(color2);
133  entry->SetMarkerStyle(style2);
134  entry->SetTextFont(42);
135  entry = legend->AddEntry("bestfit",TString::Format("(%.2f, %.2f 10^{-3} eV^{2})", bfSin3, bfDm3),"P");
136  entry->SetMarkerColor(color3);
137  entry->SetMarkerStyle(style3);
138  entry->SetTextFont(42);
139  legend->Draw();
140 
141 }
void Format(TGraph *gr, int lcol, int lsty, int lwid, int mcol, int msty, double msiz)
Definition: Style.cxx:154
def entry(str)
Definition: HTMLTools.py:26
void DrawLegendBFNull ( double  bfSin,
double  bfDm,
Color_t  color,
Style_t  style 
)

Definition at line 80 of file numu_tools.h.

References make_mec_shifts_plots::legend.

Referenced by make_starplots(), plot_cont_expfriends(), and plot_contprof().

80  {
81 
82  TGraph* marker = new TGraph();
83  marker->SetPoint(1,bfSin, bfDm);
84  marker->SetMarkerStyle(style);
85  marker->SetMarkerColor(color);
86  marker->SetMarkerSize(1.5);
87  TLegend *legend = new TLegend(0.15,0.11,0.28,0.25);
88  legend->AddEntry(marker,"Best fit","p");
89  //legend->AddEntry(marker,"NOvA #nu_{#mu}+#bar{#nu}_{#mu} Best fit","p");
90  legend->SetTextColor(color);
91  legend->SetTextSize(0.04); //no border for legend
92  legend->SetBorderSize(0);
93  legend->SetFillStyle(0);
94  legend->Draw();
95 
96 }
TPaveText* drawQuantLabel ( int  quantId = 0)

Definition at line 4 of file numu_tools.h.

References genie::utils::style::Format().

Referenced by demoPlotSystBands(), plot_datapredictions(), plot_predictions(), plot_rationoosc(), plotDataPred_SplitCanvas(), and Plotting_DataAndPrediction().

4  {
5 
6  TPaveText *pText0 = new TPaveText(0.20, 0.70, 0.30, 0.85, "NDC");
7  pText0->SetBorderSize(0);
8  pText0->SetFillStyle(0);
9  TPaveText *pText1 = new TPaveText(0.37, 0.75, 0.47, 0.90, "NDC");
10  pText1->SetBorderSize(0);
11  pText1->SetFillStyle(0);
12  TPaveText *pText2 = new TPaveText(0.75, 0.75, 0.85, 0.90, "NDC");
13  pText2->SetBorderSize(0);
14  pText2->SetFillStyle(0);
15  TPaveText *pText3 = new TPaveText(0.37, 0.35, 0.47, 0.50, "NDC");
16  pText3->SetBorderSize(0);
17  pText3->SetFillStyle(0);
18  TPaveText *pText4 = new TPaveText(0.75, 0.35, 0.85, 0.50, "NDC");
19  pText4->SetBorderSize(0);
20  pText4->SetFillStyle(0);
21 
22 
23  if(quantId == 0){
24  TText *text4 = pText0->AddText("All Quartiles");
25  text4->SetTextAlign(22);
26  text4->SetTextSize(0.05);
27  pText0->Draw();
28  }
29  else if(quantId == 1){
30  TText *text4 = pText1->AddText(TString::Format("#splitline{#bf{Quartile %d}}{best resolution}", quantId));
31  text4->SetTextAlign(22);
32  text4->SetTextSize(0.025);
33  pText1->Draw();
34  return pText1;
35  }
36  else if(quantId == 4){
37  TText *text4 = pText4->AddText(TString::Format("#splitline{#bf{Quartile %d}}{worst resolution}", quantId));
38  text4->SetTextAlign(22);
39  text4->SetTextSize(0.025);
40  pText4->Draw();
41  return pText4;
42  }
43  else if(quantId == 2){
44  TText *text4 = pText2->AddText(TString::Format("#bf{Quartile %d}", quantId));
45  text4->SetTextAlign(22);
46  text4->SetTextSize(0.025);
47  pText2->Draw();
48  return pText2;
49  }
50  else if(quantId == 3){
51  TText *text4 = pText3->AddText(TString::Format("#bf{Quartile %d}", quantId));
52  text4->SetTextAlign(22);
53  text4->SetTextSize(0.025);
54  pText3->Draw();
55  return pText3;
56  }
57  return pText0;
58 
59 } // end drawQuantLabel
void Format(TGraph *gr, int lcol, int lsty, int lwid, int mcol, int msty, double msiz)
Definition: Style.cxx:154
void PreliminaryBoxOpening ( )

Definition at line 187 of file numu_tools.h.

References kBlue.

Referenced by plot_cont_expfriends(), plot_contprof(), plot_datapredictions(), plot_predictions(), and Plotting_DataAndPrediction().

188 {
189 
190  TPaveText *pavetext = new TPaveText (0.65,0.92,0.95,0.96,"NDC");
191  pavetext->SetFillStyle(0);
192  pavetext->SetLineColor(0);
193  pavetext->SetLineWidth(0);
194  pavetext->SetBorderSize(1);
195  pavetext->SetTextColor(kBlue);
196  pavetext->AddText("NOvA Preliminary");
197  pavetext->SetTextSize(2/40.); // official is 2/50
198  pavetext->SetTextAlign(11);
199  pavetext->Draw();
200 
201 }
enum BeamMode kBlue
void PreliminaryNoOsc ( )

Definition at line 206 of file numu_tools.h.

References kBlue.

Referenced by plot_rationoosc().

207 {
208 
209  TPaveText *pavetext = new TPaveText (0.52,0.90,0.82,0.94,"NDC");
210  pavetext->SetFillStyle(0);
211  pavetext->SetLineColor(0);
212  pavetext->SetLineWidth(0);
213  pavetext->SetBorderSize(1);
214  pavetext->SetTextColor(kBlue);
215  pavetext->AddText("NOvA Preliminary");
216  pavetext->SetTextSize(2/40.); // official is 2/50
217  pavetext->SetTextAlign(11);
218  pavetext->Draw();
219 
220 }
enum BeamMode kBlue
void PreliminaryNoOscQuant ( )

Definition at line 223 of file numu_tools.h.

References kBlue.

Referenced by plot_rationoosc().

224 {
225 
226  TPaveText *pavetext = new TPaveText (0.60,0.90,0.90,0.94,"NDC");
227  pavetext->SetFillStyle(0);
228  pavetext->SetLineColor(0);
229  pavetext->SetLineWidth(0);
230  pavetext->SetBorderSize(1);
231  pavetext->SetTextColor(kBlue);
232  pavetext->AddText("NOvA Preliminary");
233  pavetext->SetTextSize(2/40.); // official is 2/50
234  pavetext->SetTextAlign(11);
235  pavetext->Draw();
236 
237 }
enum BeamMode kBlue
void PreliminaryNoOscRatio ( )

Definition at line 240 of file numu_tools.h.

References kBlue.

Referenced by plot_rationoosc().

241 {
242 
243  TPaveText *pavetext = new TPaveText (0.67,0.90,0.92,0.94,"NDC");
244  pavetext->SetFillStyle(0);
245  pavetext->SetLineColor(0);
246  pavetext->SetLineWidth(0);
247  pavetext->SetBorderSize(1);
248  pavetext->SetTextColor(kBlue);
249  pavetext->AddText("NOvA Preliminary");
250  pavetext->SetTextSize(2/40.); // official is 2/50
251  pavetext->SetTextAlign(11);
252  pavetext->Draw();
253 
254 }
enum BeamMode kBlue
void PreliminarySimulation ( )

Definition at line 170 of file numu_tools.h.

171 {
172 
173  TPaveText *pavetext = new TPaveText (0.65,0.92,0.95,0.96,"NDC");
174  pavetext->SetFillStyle(0);
175  pavetext->SetLineColor(0);
176  pavetext->SetLineWidth(0);
177  pavetext->SetBorderSize(1);
178  pavetext->SetTextColor(kGray+1);
179  pavetext->AddText("NOvA Simulation");
180  pavetext->SetTextSize(2/40.); // official is 2/50
181  pavetext->SetTextAlign(11);
182  pavetext->Draw();
183 
184 }