ra4_draw
4bd0201e3d922d42bd545d4b045ed44db33454a4
|
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 |
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.
[in] | hists | List of histograms to draw |
[in,out] | draw_opt | Option 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.
[in] | entry | Number of entries already in legend |
[in] | n_entries | Total entries that will go in legend |
[in] | n_columns | Number of columns in legend |
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.
[in,out] | h | Histogram to modify |
Definition at line 97 of file hist1d.cpp.
Referenced by Hist1D::StripTopPlotLabels().
class anonymous_namespace{hist1d.cpp}::Counter anonymous_namespace{hist1d.cpp}::counter |
Referenced by Hist1D::GetBottomPlots(), Hist1D::GetPads(), and Hist1D::InitializeHistos().