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::FigureHist2D Class Reference

Figure class for TH2D. More...

#include "NAGASH/FigureTool.h"

Inheritance diagram for NAGASH::FigureHist2D:
NAGASH::FigureElement

Public Member Functions

virtual ~FigureHist2D ()
 
virtual void DrawElement () override
 
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< 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

 FigureHist2D (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 *) {})
 
TH2D * GetHist ()
 
void Rebin (int, int)
 
void Scale (double)
 

Private Attributes

TString DrawOption
 
int index_in_pad = 0
 
TH2D * myhist
 
std::function< void(TH2D *)> 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< 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 TH2D.

Definition at line 276 of file FigureTool.h.

Constructor & Destructor Documentation

◆ ~FigureHist2D()

FigureHist2D::~FigureHist2D ( )
virtual

Definition at line 1684 of file FigureTool.cxx.

◆ FigureHist2D()

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

Definition at line 1676 of file FigureTool.cxx.

Member Function Documentation

◆ DrawElement()

void FigureHist2D::DrawElement ( )
overridevirtual

Reimplemented from NAGASH::FigureElement.

Definition at line 1700 of file FigureTool.cxx.

◆ GetHist()

TH2D * NAGASH::FigureHist2D::GetHist ( )
inlineprivate

Definition at line 300 of file FigureTool.h.

◆ Rebin()

void FigureHist2D::Rebin ( int  rebinnumx,
int  rebinnumy 
)
private

Definition at line 1689 of file FigureTool.cxx.

◆ Scale()

void FigureHist2D::Scale ( double  factor)
private

Definition at line 1695 of file FigureTool.cxx.

◆ SetStyle()

void FigureHist2D::SetStyle ( )
overridevirtual

Reimplemented from NAGASH::FigureElement.

Definition at line 1705 of file FigureTool.cxx.

Friends And Related Symbol Documentation

◆ FigureCanvas

friend class FigureCanvas
friend

Definition at line 279 of file FigureTool.h.

◆ FigurePad

friend class FigurePad
friend

Definition at line 278 of file FigureTool.h.

◆ FigureStyleHelper

friend class FigureStyleHelper
friend

Definition at line 280 of file FigureTool.h.

Member Data Documentation

◆ DrawOption

TString NAGASH::FigureHist2D::DrawOption
private

Definition at line 295 of file FigureTool.h.

◆ index_in_pad

int NAGASH::FigureHist2D::index_in_pad = 0
private

Definition at line 297 of file FigureTool.h.

◆ myhist

TH2D* NAGASH::FigureHist2D::myhist
private

Definition at line 294 of file FigureTool.h.

◆ OptionFunc

std::function<void(TH2D *)> NAGASH::FigureHist2D::OptionFunc
private

Definition at line 296 of file FigureTool.h.


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