NAGASH 0.9.8
Next Generation Analysis System
|
Figure class for THStack. More...
#include "NAGASH/FigureTool.h"
Public Member Functions | |
virtual | ~FigureHStack () |
virtual void | DrawElement () override |
void | DrawTotalHist (const TString &option, std::function< void(TH1D *)> optionfunc=[](TH1D *) {}) |
Whether draw the total hist of the hstack. | |
TH1D * | GetTotalHist () |
void | Rebin (int) |
Rebin the histogram. | |
void | Scale (double) |
Scale the histogram. | |
virtual void | SetStyle () override |
Public Member Functions inherited from NAGASH::FigureElement | |
FigureElement (std::shared_ptr< MSGTool > MSG, std::shared_ptr< FigureStyleHelper > shelper, const TString &elementname, const TString &tyname, FigureElement *mother=0) | |
virtual void | CD () |
void | Draw () |
std::shared_ptr< FigureElement > | FindLinkElement (const TString &name) |
std::shared_ptr< FigureElement > | GetLinkElement (int index) |
int | GetLinkIndex (const TString &name) |
FigureElement * | GetMotherElement () |
TString | GetName () |
int | GetNLinkElement () |
FigureElement * | GetRootElement () |
TString | GetTypeName () |
bool | IsType (const TString &tyname) |
std::shared_ptr< FigureElement > | TraceElement (const TString &name) |
Private Member Functions | |
FigureHStack (std::shared_ptr< MSGTool > MSG, std::shared_ptr< FigureStyleHelper > shelper, const TString &elementname, const std::vector< TString > &linkhists, const TString &option, FigureElement *mother) | |
void | CalculateTotalHist () |
THStack * | GetHist () |
std::pair< double, double > | GetMinAndMax (double, double) |
Private Attributes | |
bool | draw_total_hist = false |
TString | DrawOption |
TH1D * | empty_hist = nullptr |
std::vector< TString > | LinkedHists |
THStack * | myhstack = nullptr |
TH1D * | total_hist = nullptr |
TString | total_hist_drawoption |
TGraphErrors * | total_hist_graph = nullptr |
std::function< void(TH1D *)> | total_hist_optionfunc |
Friends | |
class | FigureCanvas |
class | FigurePad |
class | FigureStyleHelper |
Additional Inherited Members | |
Public Attributes inherited from NAGASH::FigureElement | |
FigureSquareRange | Range_Total |
Protected Member Functions inherited from NAGASH::FigureElement | |
bool | CheckDuplicate (const TString &name) |
bool | Contain (FigureSquareRange A, FigureSquareRange SubA) |
bool | Contain (std::shared_ptr< FigureElement > subelement) |
std::shared_ptr< MSGTool > | MSGUser () |
std::shared_ptr< FigureStyleHelper > | StyleUser () |
Protected Attributes inherited from NAGASH::FigureElement | |
std::deque< std::shared_ptr< FigureElement > > | LinkedElement |
std::map< TString, uint64_t > | MapLinkedElement |
FigureElement * | MotherElement |
std::vector< FigureSquareRange > | Range_vec |
Figure class for THStack.
Definition at line 179 of file FigureTool.h.
|
virtual |
Definition at line 1564 of file FigureTool.cxx.
|
private |
Definition at line 1334 of file FigureTool.cxx.
|
private |
Definition at line 1438 of file FigureTool.cxx.
|
overridevirtual |
Reimplemented from NAGASH::FigureElement.
Definition at line 1373 of file FigureTool.cxx.
void FigureHStack::DrawTotalHist | ( | const TString & | option, |
std::function< void(TH1D *)> | optionfunc = [](TH1D *) {} |
||
) |
Whether draw the total hist of the hstack.
option | option for drawing the total hist. |
optionfunc | user-defined function for adjusting the style of the total hist, takes the pointer of TH1D as input. |
Definition at line 1425 of file FigureTool.cxx.
|
inlineprivate |
Definition at line 217 of file FigureTool.h.
|
private |
Definition at line 1478 of file FigureTool.cxx.
TH1D * FigureHStack::GetTotalHist | ( | ) |
Definition at line 1432 of file FigureTool.cxx.
void FigureHStack::Rebin | ( | int | num | ) |
Rebin the histogram.
Definition at line 1536 of file FigureTool.cxx.
void FigureHStack::Scale | ( | double | factor | ) |
Scale the histogram.
Definition at line 1510 of file FigureTool.cxx.
|
overridevirtual |
Reimplemented from NAGASH::FigureElement.
Definition at line 1345 of file FigureTool.cxx.
|
friend |
Definition at line 182 of file FigureTool.h.
|
friend |
Definition at line 181 of file FigureTool.h.
|
friend |
Definition at line 183 of file FigureTool.h.
|
private |
Definition at line 212 of file FigureTool.h.
|
private |
Definition at line 204 of file FigureTool.h.
|
private |
Definition at line 208 of file FigureTool.h.
|
private |
Definition at line 205 of file FigureTool.h.
|
private |
Definition at line 203 of file FigureTool.h.
|
private |
Definition at line 209 of file FigureTool.h.
|
private |
Definition at line 213 of file FigureTool.h.
|
private |
Definition at line 210 of file FigureTool.h.
|
private |
Definition at line 214 of file FigureTool.h.