13 TLegend*
makeLegend(
double lower_x,
double lower_y,
double upper_x,
double upper_y,
double textsize){
15 TLegend*
legend =
new TLegend(lower_x,lower_y,upper_x,upper_y);
18 legend->SetTextSize(textsize);
28 l.SetTextSize(textsize);
43 const char DecReg =
name[std::strlen(
name)-1];
44 TString DecReg_label{};
45 if (*customlabel != 0){
46 DecReg_label = TString(customlabel);
48 else if (DecReg == *
"b"){
51 else if (DecReg == *
"e"){
58 t.SetTextSize(textsize);
59 t.DrawLatexNDC(
x,
y, DecReg_label);
67 TLine*
l =
new TLine(
x, y_max,
x, 0);
68 Int_t ashGrey = TColor::GetColor(
"#717581");
69 l->SetLineColor(ashGrey);
70 l->SetLineStyle(line_style);
73 TText*
t =
new TText(
x, y_max,
text);
88 double hcalEnd{0}, mdt1S{0}, mdt1L{0}, mdt2S{0}, mdt2L{0};
89 if ((std::string)bin_var ==
"Lxy") {hcalEnd = 3.9; mdt1S = 4.383; mdt1L = 4.718; mdt2S = 7.888; mdt2L = 6.861;}
90 else if ((std::string)bin_var ==
"z") {hcalEnd = 6.05; mdt1S = 7.023; mdt1L = 7.409; mdt2S = 13.265; mdt2L = 13.660;}
91 else printf(
"Invalid binning variable. Please use 'Lxy' or 'z'.\nReturning without drawing detector boundary lines.\n");
103 double getMaxy(
const TGraphAsymmErrors* graph,
double current_max){
105 double max = current_max;
107 for (
int i=0;
i<graph->GetN(); ++
i){
108 max_graph = graph->GetPointY(
i) + graph->GetErrorYhigh(
i);