NAGASH 0.9.8
Next Generation Analysis System
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
NAGASH::FigureHist1D Class Reference

Figure class for TH1D. More...

#include "NAGASH/FigureTool.h"

Inheritance diagram for NAGASH::FigureHist1D:
NAGASH::FigureElement

Public Member Functions

virtual ~FigureHist1D ()
 
void Rebin (int)
 Rebin the histogram.
 
void Scale (double)
 Scale the histogram.
 
- 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< FigureElementFindLinkElement (const TString &name)
 
std::shared_ptr< FigureElementGetLinkElement (int index)
 
int GetLinkIndex (const TString &name)
 
FigureElementGetMotherElement ()
 
TString GetName ()
 
int GetNLinkElement ()
 
FigureElementGetRootElement ()
 
TString GetTypeName ()
 
bool IsType (const TString &tyname)
 
std::shared_ptr< FigureElementTraceElement (const TString &name)
 

Private Member Functions

 FigureHist1D (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)
 
 FigureHist1D (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 *) {})
 
 FigureHist1D (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)
 
 FigureHist1D (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 *) {})
 
void CreateHistFromHistLink ()
 
virtual void DrawElement () override
 
TH1D * GetHist ()
 
TString GetLinkMode ()
 
std::vector< TString > GetLinkObject ()
 
std::pair< double, double > GetMinAndMax (double, double)
 
virtual void SetStyle () override
 

Private Attributes

bool DrawAsTGraph = false
 
TString DrawOption
 
bool ForHStack = false
 
bool FromHistLink = false
 
int index_in_pad = 0
 
TString LinkInfo
 
TGraphErrors * mygraph = nullptr
 
TH1D * myhist = nullptr
 
std::function< void(TH1D *)> OptionFunc
 
std::function< void(TGraph *)> TGraphOptionFunc
 

Friends

class FigureCanvas
 
class FigureHStack
 
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< MSGToolMSGUser ()
 
std::shared_ptr< FigureStyleHelperStyleUser ()
 
- Protected Attributes inherited from NAGASH::FigureElement
std::deque< std::shared_ptr< FigureElement > > LinkedElement
 
std::map< TString, uint64_t > MapLinkedElement
 
FigureElementMotherElement
 
std::vector< FigureSquareRangeRange_vec
 

Detailed Description

Figure class for TH1D.

Definition at line 131 of file FigureTool.h.

Constructor & Destructor Documentation

◆ ~FigureHist1D()

FigureHist1D::~FigureHist1D ( )
virtual

Definition at line 962 of file FigureTool.cxx.

◆ FigureHist1D() [1/4]

FigureHist1D::FigureHist1D ( 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 *) {} 
)
private

Definition at line 891 of file FigureTool.cxx.

◆ FigureHist1D() [2/4]

FigureHist1D::FigureHist1D ( 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 *) {} 
)
private

Definition at line 882 of file FigureTool.cxx.

◆ FigureHist1D() [3/4]

FigureHist1D::FigureHist1D ( 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 
)
private

Definition at line 902 of file FigureTool.cxx.

◆ FigureHist1D() [4/4]

FigureHist1D::FigureHist1D ( 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 
)
private

Definition at line 913 of file FigureTool.cxx.

Member Function Documentation

◆ CreateHistFromHistLink()

void FigureHist1D::CreateHistFromHistLink ( )
private

Definition at line 1008 of file FigureTool.cxx.

◆ DrawElement()

void FigureHist1D::DrawElement ( )
overrideprivatevirtual

Reimplemented from NAGASH::FigureElement.

Definition at line 923 of file FigureTool.cxx.

◆ GetHist()

TH1D * NAGASH::FigureHist1D::GetHist ( )
inlineprivate

Definition at line 175 of file FigureTool.h.

◆ GetLinkMode()

TString FigureHist1D::GetLinkMode ( )
private

Definition at line 969 of file FigureTool.cxx.

◆ GetLinkObject()

std::vector< TString > FigureHist1D::GetLinkObject ( )
private

Definition at line 982 of file FigureTool.cxx.

◆ GetMinAndMax()

std::pair< double, double > FigureHist1D::GetMinAndMax ( double  xmin,
double  xmax 
)
private

Definition at line 1283 of file FigureTool.cxx.

◆ Rebin()

void FigureHist1D::Rebin ( int  num)

Rebin the histogram.

Definition at line 1325 of file FigureTool.cxx.

◆ Scale()

void FigureHist1D::Scale ( double  factor)

Scale the histogram.

Definition at line 1317 of file FigureTool.cxx.

◆ SetStyle()

void FigureHist1D::SetStyle ( )
overrideprivatevirtual

Reimplemented from NAGASH::FigureElement.

Definition at line 948 of file FigureTool.cxx.

Friends And Related Symbol Documentation

◆ FigureCanvas

friend class FigureCanvas
friend

Definition at line 135 of file FigureTool.h.

◆ FigureHStack

friend class FigureHStack
friend

Definition at line 133 of file FigureTool.h.

◆ FigurePad

friend class FigurePad
friend

Definition at line 134 of file FigureTool.h.

◆ FigureStyleHelper

friend class FigureStyleHelper
friend

Definition at line 136 of file FigureTool.h.

Member Data Documentation

◆ DrawAsTGraph

bool NAGASH::FigureHist1D::DrawAsTGraph = false
private

Definition at line 164 of file FigureTool.h.

◆ DrawOption

TString NAGASH::FigureHist1D::DrawOption
private

Definition at line 161 of file FigureTool.h.

◆ ForHStack

bool NAGASH::FigureHist1D::ForHStack = false
private

Definition at line 166 of file FigureTool.h.

◆ FromHistLink

bool NAGASH::FigureHist1D::FromHistLink = false
private

Definition at line 165 of file FigureTool.h.

◆ index_in_pad

int NAGASH::FigureHist1D::index_in_pad = 0
private

Definition at line 169 of file FigureTool.h.

◆ LinkInfo

TString NAGASH::FigureHist1D::LinkInfo
private

Definition at line 167 of file FigureTool.h.

◆ mygraph

TGraphErrors* NAGASH::FigureHist1D::mygraph = nullptr
private

Definition at line 160 of file FigureTool.h.

◆ myhist

TH1D* NAGASH::FigureHist1D::myhist = nullptr
private

Definition at line 159 of file FigureTool.h.

◆ OptionFunc

std::function<void(TH1D *)> NAGASH::FigureHist1D::OptionFunc
private

Definition at line 162 of file FigureTool.h.

◆ TGraphOptionFunc

std::function<void(TGraph *)> NAGASH::FigureHist1D::TGraphOptionFunc
private

Definition at line 163 of file FigureTool.h.


The documentation for this class was generated from the following files: