46 std::shared_ptr<MSGTool>
MSGUser();
68 std::shared_ptr<MSGTool>
msg;
79 FigureElement(std::shared_ptr<MSGTool> MSG, std::shared_ptr<FigureStyleHelper> shelper,
const TString &elementname,
const TString &tyname,
FigureElement *mother = 0);
91 bool IsType(
const TString &tyname);
102 std::shared_ptr<MSGTool>
MSGUser();
103 std::shared_ptr<FigureStyleHelper>
StyleUser();
105 bool Contain(std::shared_ptr<FigureElement> subelement);
115 std::shared_ptr<MSGTool>
msg;
145 std::shared_ptr<MSGTool> MSG, std::shared_ptr<FigureStyleHelper> shelper,
const TString &elementname, TH1D *hist,
const TString &option,
FigureElement *mother, std::function<
void(TH1D *)> optionfunc = [](TH1D *) {});
147 std::shared_ptr<MSGTool> MSG, std::shared_ptr<FigureStyleHelper> shelper,
const TString &elementname,
const TString &linkinfo,
const TString &option,
FigureElement *mother, std::function<
void(TH1D *)> optionfunc = [](TH1D *) {});
149 std::shared_ptr<MSGTool> MSG, std::shared_ptr<FigureStyleHelper> shelper,
const TString &elementname, TH1D *hist,
const TString &option, FigureElement *mother, std::function<
void(TGraph *)> optionfunc);
151 std::shared_ptr<MSGTool> MSG, std::shared_ptr<FigureStyleHelper> shelper,
const TString &elementname,
const TString &linkinfo,
const TString &option, FigureElement *mother, std::function<
void(TGraph *)> optionfunc);
193 const TString &option, std::function<
void(TH1D *)> optionfunc = [](TH1D *) {});
198 FigureHStack(std::shared_ptr<MSGTool> MSG, std::shared_ptr<FigureStyleHelper> shelper,
const TString &elementname,
const std::vector<TString> &linkhists,
const TString &option,
FigureElement *mother);
235 std::shared_ptr<MSGTool> MSG, std::shared_ptr<FigureStyleHelper> shelper,
const TString &elementname, TGraph *graph,
const TString &option,
FigureElement *mother, std::function<
void(TGraph *)> optionfunc = [](TGraph *) {});
262 std::shared_ptr<MSGTool> MSG, std::shared_ptr<FigureStyleHelper> shelper,
const TString &elementname, TF1 *func,
const TString &option,
FigureElement *mother, std::function<
void(TF1 *)> optionfunc = [](TF1 *) {});
289 std::shared_ptr<MSGTool> MSG, std::shared_ptr<FigureStyleHelper> shelper,
const TString &elementname, TH2D *hist,
const TString &option,
FigureElement *mother, std::function<
void(TH2D *)> optionfunc = [](TH2D *) {});
291 void Rebin(
int,
int);
317 std::shared_ptr<MSGTool> MSG, std::shared_ptr<FigureStyleHelper> shelper,
318 const TString &content,
double posx,
double poxy, Color_t color,
FigureElement *mother, std::function<
void(TLatex *)> optionfunc = [](TLatex *) {});
335 virtual void CD()
override;
340 std::shared_ptr<FigurePad>
BookPad(
341 const TString &padname,
int lbx,
int lby,
int rtx,
int rty, std::function<
void(TPad *)> optionfunc = [](TPad *) {});
343 const TString &elementname, TH1D *hist,
const TString &option, std::function<
void(TH1D *)> optionfunc = [](TH1D *) {});
345 const TString &elementname,
const TString &linkinfo,
const TString &option, std::function<
void(TH1D *)> optionfunc = [](TH1D *) {});
347 const TString &elementname, TH1D *hist,
const TString &option, std::function<
void(TGraph *)> optionfunc = [](TGraph *) {});
349 const TString &elementname,
const TString &linkinfo,
const TString &option, std::function<
void(TGraph *)> optionfunc = [](TGraph *) {});
351 const TString &elementname, TGraph *graph,
const TString &option, std::function<
void(TGraph *)> optionfunc = [](TGraph *) {});
353 const TString &elementname, TF1 *func,
const TString &option, std::function<
void(TF1 *)> optionfunc = [](TF1 *) {});
355 const TString &elementname, TH2D *hist,
const TString &option, std::function<
void(TH2D *)> optionfunc = [](TH2D *) {});
357 const TString &content,
double posx,
double poxy, Color_t color = 1, std::function<
void(TLatex *)> optionfunc = [](TLatex *) {});
358 void DrawATLASLabel(
const TString &content,
double posx,
double poxy, Color_t color = 1,
double space = -1);
360 std::shared_ptr<FigureHStack>
SetHStack(
const TString &elementname,
const std::vector<TString> &linkinfo,
const TString &option);
363 void Norm(
const TString &,
const TString &,
double xmin = 0,
double xmax = 0);
366 void SetLegend(
const TString &header =
"",
const TString &option =
"");
367 void SetLegend(
const TString &header,
const TString &option,
double,
double,
double,
double);
369 void SetLegendEntries(
const std::vector<TString> &entries,
const std::vector<TString> &options);
372 void SetAxisTitle(
const TString &xname =
"UNKNOWN",
const TString &yname =
"UNKNOWN",
const TString &zname =
"UNKNOWN");
374 void SetAxisStyle(std::function<
void(TAxis *, TAxis *, TAxis *)>);
397 std::shared_ptr<MSGTool> MSG, std::shared_ptr<FigureStyleHelper> shelper,
const TString &elementname,
int lbx,
int lby,
int rtx,
int rty, FigureElement *mother, std::function<
void(TPad *)> optionfunc = [](TPad *) {});
495 virtual void CD()
override;
496 void SaveAs(
const TString &filename);
499 std::shared_ptr<FigurePad>
BookPad(
500 const TString &padname,
int lbx,
int lby,
int rtx,
int rty, std::function<
void(TPad *)> optionfunc = [](TPad *) {});
502 const TString &padname,
double lbx,
double lby,
double rtx,
double rty, std::function<
void(TPad *)> optionfunc = [](TPad *) {});
505 FigureCanvas(std::shared_ptr<MSGTool> MSG, std::shared_ptr<FigureStyleHelper> shelper,
const TString &elementname,
int npx,
int npy);
515 FigureTool(std::shared_ptr<MSGTool> MSG, std::shared_ptr<FigureStyleHelper> shelper);
516 std::shared_ptr<FigureCanvas>
BookFigure(
const TString &figurename,
int size_x,
int size_y);
517 std::shared_ptr<FigureCanvas>
BookATLASSquare(
const TString &figurename);