ROOTANA
Public Member Functions | Private Member Functions | Private Attributes
TSimpleHistogramCanvas Class Reference

A canvas that plots a single TH1 or TGraph. More...

#include <TSimpleHistogramCanvas.hxx>

Inheritance diagram for TSimpleHistogramCanvas:
Inheritance graph
[legend]
Collaboration diagram for TSimpleHistogramCanvas:
Collaboration graph
[legend]

Public Member Functions

 TSimpleHistogramCanvas (TH1 *histo, std::string name, std::string printoption="")
 
 TSimpleHistogramCanvas (TGraph *graph, std::string name)
 
 ~TSimpleHistogramCanvas ()
 
void ResetCanvasHistograms ()
 Reset the histograms for this canvas. More...
 
void UpdateCanvasHistograms (TDataContainer &dataContainer)
 Update the histograms for this canvas. Doesn't do anything. More...
 
void PlotCanvas (TDataContainer &dataContainer, TRootEmbeddedCanvas *embedCanvas)
 Plot the histograms for this canvas. More...
 
void BeginRun (int transition, int run, int time)
 Take actions at begin run. More...
 
void EndRun (int transition, int run, int time)
 Take actions at end run
More...
 
void AddExtraHisto (TH1 *h1)
 
void AddExtraGraph (TGraph *g1)
 
- Public Member Functions inherited from TCanvasHandleBase
 TCanvasHandleBase (std::string tabName)
 
virtual ~TCanvasHandleBase ()
 
std::string GetTabName ()
 
TRootEmbeddedCanvas * GetEmbeddedCanvas ()
 This method is only. More...
 
virtual void SetUpCompositeFrame (TGCompositeFrame *, TRootanaDisplay *display)
 

Private Member Functions

 TSimpleHistogramCanvas ()
 

Private Attributes

TH1 * fHisto
 Pointer to the histogram. More...
 
TGraph * fGraph
 Pointer to the graph. More...
 
std::vector< TH1 * > fExtraHistos
 
std::vector< TGraph * > fExtraGraphs
 
std::string fPrintOption
 

Detailed Description

A canvas that plots a single TH1 or TGraph.

Definition at line 13 of file TSimpleHistogramCanvas.hxx.

Constructor & Destructor Documentation

◆ TSimpleHistogramCanvas() [1/3]

TSimpleHistogramCanvas::TSimpleHistogramCanvas ( TH1 *  histo,
std::string  name,
std::string  printoption = "" 
)

Definition at line 7 of file TSimpleHistogramCanvas.cxx.

◆ TSimpleHistogramCanvas() [2/3]

TSimpleHistogramCanvas::TSimpleHistogramCanvas ( TGraph *  graph,
std::string  name 
)

Definition at line 17 of file TSimpleHistogramCanvas.cxx.

◆ ~TSimpleHistogramCanvas()

TSimpleHistogramCanvas::~TSimpleHistogramCanvas ( )

Definition at line 28 of file TSimpleHistogramCanvas.cxx.

◆ TSimpleHistogramCanvas() [3/3]

TSimpleHistogramCanvas::TSimpleHistogramCanvas ( )
private

Member Function Documentation

◆ AddExtraGraph()

void TSimpleHistogramCanvas::AddExtraGraph ( TGraph *  g1)
inline

Definition at line 45 of file TSimpleHistogramCanvas.hxx.

◆ AddExtraHisto()

void TSimpleHistogramCanvas::AddExtraHisto ( TH1 *  h1)
inline

Definition at line 40 of file TSimpleHistogramCanvas.hxx.

◆ BeginRun()

void TSimpleHistogramCanvas::BeginRun ( int  transition,
int  run,
int  time 
)
virtual

Take actions at begin run.

Reimplemented from TCanvasHandleBase.

Definition at line 89 of file TSimpleHistogramCanvas.cxx.

◆ EndRun()

void TSimpleHistogramCanvas::EndRun ( int  transition,
int  run,
int  time 
)
virtual

Take actions at end run

Reimplemented from TCanvasHandleBase.

Definition at line 94 of file TSimpleHistogramCanvas.cxx.

◆ PlotCanvas()

void TSimpleHistogramCanvas::PlotCanvas ( TDataContainer dataContainer,
TRootEmbeddedCanvas *  embedCanvas 
)
virtual

Plot the histograms for this canvas.

Implements TCanvasHandleBase.

Definition at line 53 of file TSimpleHistogramCanvas.cxx.

◆ ResetCanvasHistograms()

void TSimpleHistogramCanvas::ResetCanvasHistograms ( )
virtual

Reset the histograms for this canvas.

Reset the histograms in fHistoArray.

Implements TCanvasHandleBase.

Definition at line 40 of file TSimpleHistogramCanvas.cxx.

◆ UpdateCanvasHistograms()

void TSimpleHistogramCanvas::UpdateCanvasHistograms ( TDataContainer dataContainer)
virtual

Update the histograms for this canvas. Doesn't do anything.

Update the histograms for this canvas.

Implements TCanvasHandleBase.

Definition at line 46 of file TSimpleHistogramCanvas.cxx.

Field Documentation

◆ fExtraGraphs

std::vector<TGraph*> TSimpleHistogramCanvas::fExtraGraphs
private

Definition at line 58 of file TSimpleHistogramCanvas.hxx.

◆ fExtraHistos

std::vector<TH1*> TSimpleHistogramCanvas::fExtraHistos
private

Definition at line 57 of file TSimpleHistogramCanvas.hxx.

◆ fGraph

TGraph* TSimpleHistogramCanvas::fGraph
private

Pointer to the graph.

Definition at line 54 of file TSimpleHistogramCanvas.hxx.

◆ fHisto

TH1* TSimpleHistogramCanvas::fHisto
private

Pointer to the histogram.

Definition at line 52 of file TSimpleHistogramCanvas.hxx.

◆ fPrintOption

std::string TSimpleHistogramCanvas::fPrintOption
private

Definition at line 61 of file TSimpleHistogramCanvas.hxx.


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