ROOTANA
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes
TMulticanvas Class Reference

#include <TMulticanvas.h>

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

Public Member Functions

 TMulticanvas (std::string CanvasName="Multi Canvas")
 
void AddHisto2D (TH2 *histo, int index)
 
void AddHistoSingle (TH1 *histo, int index)
 
void AddGraphSingle (TGraph *graph, int index)
 
void PlotCanvas (TDataContainer &dataContainer, TRootEmbeddedCanvas *embedCanvas)
 Plot the histograms for this canvas for a particular index;.
 
void ResetCanvasHistograms ()
 Reset the histograms for this canvas.
 
void UpdateCanvasHistograms (TDataContainer &dataContainer)
 Update the histograms for this canvas.
 
- Public Member Functions inherited from TCanvasHandleBase
 TCanvasHandleBase (std::string tabName)
 
virtual ~TCanvasHandleBase ()
 
virtual void BeginRun (int transition, int run, int time)
 Take actions at begin run.
 
virtual void EndRun (int transition, int run, int time)
 Take actions at end run

 
std::string GetTabName ()
 
TRootEmbeddedCanvas * GetEmbeddedCanvas ()
 This method is only.
 
virtual void SetUpCompositeFrame (TGCompositeFrame *, TRootanaDisplay *display)
 

Private Attributes

TH1 * fSummaryHistoSingle [gMaxSubCanvasesMuCa]
 
TH2 * fSummaryHisto2D [gMaxSubCanvasesMuCa]
 
TGraph * fSummaryGraphSingle [gMaxSubCanvasesMuCa]
 
bool fHasHisto2D [gMaxSubCanvasesMuCa]
 
bool fHasHistoSingle [gMaxSubCanvasesMuCa]
 
bool fHasGraphSingle [gMaxSubCanvasesMuCa]
 

Detailed Description

This is a canvas to display a set of four histograms.

The class also supports adding single histograms or graphs, if you want a canvas that mixes plots for a part of detector with overall summary plots.

Definition at line 15 of file TMulticanvas.h.

Constructor & Destructor Documentation

◆ TMulticanvas()

TMulticanvas::TMulticanvas ( std::string  CanvasName = "Multi Canvas")

Definition at line 4 of file TMulticanvas.cxx.

Member Function Documentation

◆ AddGraphSingle()

void TMulticanvas::AddGraphSingle ( TGraph *  graph,
int  index 
)
inline

Definition at line 48 of file TMulticanvas.h.

◆ AddHisto2D()

void TMulticanvas::AddHisto2D ( TH2 *  histo,
int  index 
)
inline

Definition at line 34 of file TMulticanvas.h.

◆ AddHistoSingle()

void TMulticanvas::AddHistoSingle ( TH1 *  histo,
int  index 
)
inline

Definition at line 41 of file TMulticanvas.h.

◆ PlotCanvas()

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

Plot the histograms for this canvas for a particular index;.

Plot the histograms for this canvas for a particular index; this is the function that user must provide.

Implements TCanvasHandleBase.

Definition at line 20 of file TMulticanvas.cxx.

◆ ResetCanvasHistograms()

void TMulticanvas::ResetCanvasHistograms ( )
virtual

Reset the histograms for this canvas.

Implements TCanvasHandleBase.

Definition at line 52 of file TMulticanvas.cxx.

◆ UpdateCanvasHistograms()

void TMulticanvas::UpdateCanvasHistograms ( TDataContainer dataContainer)
inlinevirtual

Update the histograms for this canvas.

Implements TCanvasHandleBase.

Definition at line 61 of file TMulticanvas.h.

Field Documentation

◆ fHasGraphSingle

bool TMulticanvas::fHasGraphSingle[gMaxSubCanvasesMuCa]
private

Definition at line 25 of file TMulticanvas.h.

◆ fHasHisto2D

bool TMulticanvas::fHasHisto2D[gMaxSubCanvasesMuCa]
private

Definition at line 23 of file TMulticanvas.h.

◆ fHasHistoSingle

bool TMulticanvas::fHasHistoSingle[gMaxSubCanvasesMuCa]
private

Definition at line 24 of file TMulticanvas.h.

◆ fSummaryGraphSingle

TGraph* TMulticanvas::fSummaryGraphSingle[gMaxSubCanvasesMuCa]
private

Definition at line 21 of file TMulticanvas.h.

◆ fSummaryHisto2D

TH2* TMulticanvas::fSummaryHisto2D[gMaxSubCanvasesMuCa]
private

Definition at line 20 of file TMulticanvas.h.

◆ fSummaryHistoSingle

TH1* TMulticanvas::fSummaryHistoSingle[gMaxSubCanvasesMuCa]
private

Definition at line 19 of file TMulticanvas.h.


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