ra4_draw  4bd0201e3d922d42bd545d4b045ed44db33454a4
Classes | Functions | Variables
anonymous_namespace{hist1d.cpp} Namespace Reference

Classes

class  Counter
 

Functions

void DrawAll (const vector< unique_ptr< Hist1D::SingleHist1D > > &hists, string &draw_opt, bool reversed=false)
 Draws all histograms to current canvas, updating draw_opt to contain "same" as needed. More...
 
void StripXLabels (TH1D &h)
 Erases x-axis title and labels from plot. More...
 
size_t GetLegendIndex (size_t entry, size_t n_entries, size_t n_columns)
 Determines which legend column to put an entry in. More...
 

Variables

class anonymous_namespace{hist1d.cpp}::Counter counter
 

Function Documentation

void anonymous_namespace{hist1d.cpp}::DrawAll ( const vector< unique_ptr< Hist1D::SingleHist1D > > &  hists,
string &  draw_opt,
bool  reversed = false 
)

Draws all histograms to current canvas, updating draw_opt to contain "same" as needed.

Parameters
[in]histsList of histograms to draw
[in,out]draw_optOption string used by TH1D to draw histogram. Changed to "hist same" after first histogram is drawn

Definition at line 73 of file hist1d.cpp.

References Contains().

Referenced by Hist1D::Print().

size_t anonymous_namespace{hist1d.cpp}::GetLegendIndex ( size_t  entry,
size_t  n_entries,
size_t  n_columns 
)

Determines which legend column to put an entry in.

Parameters
[in]entryNumber of entries already in legend
[in]n_entriesTotal entries that will go in legend
[in]n_columnsNumber of columns in legend
Returns
Which column to put entry in. 0 is leftmost, n_columns-1 is rightmost.

Definition at line 114 of file hist1d.cpp.

References Hist1D::blank_.

Referenced by Hist1D::AddEntries(), and Hist1D::GetLegends().

void anonymous_namespace{hist1d.cpp}::StripXLabels ( TH1D &  h)

Erases x-axis title and labels from plot.

Parameters
[in,out]hHistogram to modify

Definition at line 97 of file hist1d.cpp.

Referenced by Hist1D::StripTopPlotLabels().

Variable Documentation

class anonymous_namespace{hist1d.cpp}::Counter anonymous_namespace{hist1d.cpp}::counter