ra4_draw
4bd0201e3d922d42bd545d4b045ed44db33454a4
|
#include <table.hpp>
Classes | |
class | TableColumn |
Public Member Functions | |
Table (const std::string &name, const std::vector< TableRow > &rows, const std::vector< std::shared_ptr< Process > > &processes, bool do_zbi=true, bool print_table=true, bool print_pie=false) | |
Table (Table &&)=default | |
Table & | operator= (Table &&)=default |
~Table ()=default | |
void | Print (double luminosity, const std::string &subdir) final |
std::vector< GammaParams > | Yield (const Process *process, double luminosity) const |
std::vector< GammaParams > | BackgroundYield (double luminosity) const |
std::vector< GammaParams > | DataYield () const |
std::set< const Process * > | GetProcesses () const final |
FigureComponent * | GetComponent (const Process *process) final |
Public Member Functions inherited from Figure | |
Figure ()=default | |
Figure (const Figure &)=default | |
Figure & | operator= (const Figure &)=default |
Figure (Figure &&)=default | |
Figure & | operator= (Figure &&)=default |
virtual | ~Figure ()=default |
Public Attributes | |
std::string | name_ |
std::vector< TableRow > | rows_ |
bool | do_zbi_ |
bool | print_table_ |
bool | print_pie_ |
std::vector< PlotOpt > | plot_options_ |
Styles with which to draw pie chart. More... | |
Private Member Functions | |
Table (const Table &)=delete | |
Table & | operator= (const Table &)=delete |
Table ()=delete | |
const std::vector< std::unique_ptr< TableColumn > > & | GetComponentList (const Process *process) const |
void | PrintHeader (std::ofstream &file) const |
void | PrintRow (std::ofstream &file, std::size_t irow, double luminosity) const |
void | PrintPie (std::size_t irow, double luminosity) const |
void | PrintFooter (std::ofstream &file) const |
std::size_t | NumColumns () const |
Static Private Member Functions | |
static double | GetYield (const std::vector< std::unique_ptr< TableColumn > > &columns, std::size_t irow) |
static double | GetError (const std::vector< std::unique_ptr< TableColumn > > &columns, std::size_t irow) |
Private Attributes | |
std::vector< std::unique_ptr< TableColumn > > | backgrounds_ |
Background components of the figure. More... | |
std::vector< std::unique_ptr< TableColumn > > | signals_ |
Signal components of the figure. More... | |
std::vector< std::unique_ptr< TableColumn > > | datas_ |
Data components of the figure. More... | |
Table::Table | ( | const std::string & | name, |
const std::vector< TableRow > & | rows, | ||
const std::vector< std::shared_ptr< Process > > & | processes, | ||
bool | do_zbi = true , |
||
bool | print_table = true , |
||
bool | print_pie = false |
||
) |
|
default |
|
default |
|
privatedelete |
|
privatedelete |
Referenced by Table::TableColumn::RecordEvent().
vector< GammaParams > Table::BackgroundYield | ( | double | luminosity | ) | const |
vector< GammaParams > Table::DataYield | ( | ) | const |
|
finalvirtual |
|
private |
Definition at line 226 of file table.cpp.
References Process::background, Process::data, ERROR, Process::signal, and Process::type_.
|
staticprivate |
|
finalvirtual |
|
staticprivate |
|
finalvirtual |
|
private |
Definition at line 415 of file table.cpp.
References anonymous_namespace{table.cpp}::ToLatex().
|
private |
Definition at line 239 of file table.cpp.
References anonymous_namespace{table.cpp}::ToLatex().
|
private |
Definition at line 361 of file table.cpp.
References CodeToPlainText(), CodeToRootTex(), Contains(), and RoundNumber().
|
private |
Definition at line 306 of file table.cpp.
References TableRow::is_data_row_, TableRow::label_, TableRow::lines_after_, and TableRow::lines_before_.
vector< GammaParams > Table::Yield | ( | const Process * | process, |
double | luminosity | ||
) | const |
Definition at line 158 of file table.cpp.
References Process::data, Table::TableColumn::sumw2_, Table::TableColumn::sumw_, and Process::type_.
Referenced by main().
|
private |
|
private |
std::vector<PlotOpt> Table::plot_options_ |
std::vector<TableRow> Table::rows_ |
Definition at line 60 of file table.hpp.
Referenced by Table::TableColumn::RecordEvent(), and anonymous_namespace{table.cpp}::ToLatex().
|
private |