#include <R3BDataMonitor.h>
|
| DataMonitor ()=default |
|
template<typename... Args> |
auto | create_canvas (std::string_view canvas_name, std::string_view canvas_title, Args &&... args) -> DataMonitorCanvas & |
|
auto | add_hist (std::unique_ptr< TH1 > hist) -> TH1 * |
|
template<typename Hist, typename... Args> |
auto | add_hist (std::string_view histName, std::string_view histTitle, Args &&... args) -> Hist * |
|
template<typename GraphType> |
auto | add_graph (std::string_view graph_name, std::unique_ptr< GraphType > graph) -> GraphType * |
|
template<typename... Args> |
auto | add_graph (std::string_view graph_name, Args &&... args) -> TGraph * |
|
auto | get (const std::string &histName) -> TH1 * |
|
auto | get_canvas (const std::string &histName) -> DataMonitorCanvas & |
|
void | save_to_sink (std::string_view folderName="", FairSink *sinkFile=FairRun::Instance() ->GetSink()) |
|
void | save_to_file (std::string_view filename="") |
|
void | draw_canvases () |
|
void | register_canvases (FairRun *run) |
|
void | reset_all_hists () |
|
|
static auto | get_hist_dir (FairSink *sinkFile) -> TDirectory * |
|
template<typename ElementType, typename ContainerType> |
static auto | add_to_map (std::unique_ptr< ElementType > element, ContainerType &container) -> ElementType * |
|
template<typename ElementType, typename ContainerType> |
static auto | add_to_vector (std::unique_ptr< ElementType > element, ContainerType &container) -> ElementType * |
|
Definition at line 37 of file R3BDataMonitor.h.
◆ DataMonitor()
R3B::DataMonitor::DataMonitor |
( |
| ) |
|
|
default |
◆ add_graph() [1/2]
template<typename... Args>
auto R3B::DataMonitor::add_graph |
( |
std::string_view | graph_name, |
|
|
Args &&... | args ) -> TGraph*
|
|
inline |
◆ add_graph() [2/2]
template<typename GraphType>
auto R3B::DataMonitor::add_graph |
( |
std::string_view | graph_name, |
|
|
std::unique_ptr< GraphType > | graph ) -> GraphType*
|
|
inline |
◆ add_hist() [1/2]
template<typename Hist, typename... Args>
auto R3B::DataMonitor::add_hist |
( |
std::string_view | histName, |
|
|
std::string_view | histTitle, |
|
|
Args &&... | args ) -> Hist* |
◆ add_hist() [2/2]
auto R3B::DataMonitor::add_hist |
( |
std::unique_ptr< TH1 > | hist | ) |
-> TH1* |
|
inline |
◆ add_to_map()
template<typename ElementType, typename ContainerType>
auto R3B::DataMonitor::add_to_map |
( |
std::unique_ptr< ElementType > | element, |
|
|
ContainerType & | container ) -> ElementType* |
|
staticprivate |
◆ add_to_vector()
template<typename ElementType, typename ContainerType>
static auto R3B::DataMonitor::add_to_vector |
( |
std::unique_ptr< ElementType > | element, |
|
|
ContainerType & | container ) -> ElementType*
|
|
inlinestaticprivate |
◆ create_canvas()
template<typename... Args>
auto R3B::DataMonitor::create_canvas |
( |
std::string_view | canvas_name, |
|
|
std::string_view | canvas_title, |
|
|
Args &&... | args ) -> DataMonitorCanvas& |
◆ draw_canvases()
void R3B::DataMonitor::draw_canvases |
( |
| ) |
|
◆ get()
auto R3B::DataMonitor::get |
( |
const std::string & | histName | ) |
-> TH1* |
◆ get_canvas()
auto R3B::DataMonitor::get_canvas |
( |
const std::string & | histName | ) |
-> DataMonitorCanvas& |
◆ get_hist_dir()
auto R3B::DataMonitor::get_hist_dir |
( |
FairSink * | sinkFile | ) |
-> TDirectory* |
|
staticprivate |
◆ register_canvases()
void R3B::DataMonitor::register_canvases |
( |
FairRun * | run | ) |
|
◆ reset_all_hists()
void R3B::DataMonitor::reset_all_hists |
( |
| ) |
|
◆ save_to_file()
void R3B::DataMonitor::save_to_file |
( |
std::string_view | filename = "" | ) |
|
◆ save_to_sink()
void R3B::DataMonitor::save_to_sink |
( |
std::string_view | folderName = "", |
|
|
FairSink * | sinkFile = FairRun::Instance()->GetSink() ) |
◆ write_all()
void R3B::DataMonitor::write_all |
( |
TDirectory * | dir | ) |
|
|
private |
◆ canvases_
◆ graphs_
std::map<std::string, std::unique_ptr<TGraph> > R3B::DataMonitor::graphs_ |
|
private |
◆ histograms_
std::map<std::string, std::unique_ptr<TH1> > R3B::DataMonitor::histograms_ |
|
private |
◆ save_filename_
std::string R3B::DataMonitor::save_filename_ { "histograms_save" } |
|
private |
The documentation for this class was generated from the following files: