BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
show_run_stats.C File Reference

Go to the source code of this file.

Macros

#define MIN_RUN_DUR_SEC   6
#define MAX_RUN_DUR_HOUR   3
#define MIN_EVENT_RATE   100
#define MAX_EVENT_RATE   3600

Functions

int fill_run_diff_hist (TH1D *&hist_run_diff, int period, int start_run, int end_run)
void show_run_stats (int period=8, int start_run=6587, int end_run=-1, bool show_only_wrong=false)
 Function for creating statistics histograms on run duration and average stream (event/sec) for runs stored in the UniConDa Database for a specified Run/Period (or run interval).

Macro Definition Documentation

◆ MAX_EVENT_RATE

#define MAX_EVENT_RATE   3600

Definition at line 5 of file show_run_stats.C.

◆ MAX_RUN_DUR_HOUR

#define MAX_RUN_DUR_HOUR   3

Definition at line 3 of file show_run_stats.C.

◆ MIN_EVENT_RATE

#define MIN_EVENT_RATE   100

Definition at line 4 of file show_run_stats.C.

◆ MIN_RUN_DUR_SEC

#define MIN_RUN_DUR_SEC   6

Definition at line 2 of file show_run_stats.C.

Function Documentation

◆ fill_run_diff_hist()

int fill_run_diff_hist ( TH1D *& hist_run_diff,
int period,
int start_run,
int end_run )

Definition at line 139 of file show_run_stats.C.

References TH1::Fill(), TString::Format(), TSQLStatement::GetInt(), UniConnection::GetSQLServer(), TSQLStatement::NextResultRow(), UniConnection::Open(), TSQLStatement::Process(), TSQLServer::Statement(), and TSQLStatement::StoreResult().

Referenced by show_run_stats().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ show_run_stats()

void show_run_stats ( int period = 8,
int start_run = 6587,
int end_run = -1,
bool show_only_wrong = false )

Definition at line 14 of file show_run_stats.C.

References TCanvas::cd(), TDatime::Convert(), cyan(), TPad::Divide(), TH1::Draw(), TH1::Fill(), fill_run_diff_hist(), TString::Format(), UniRun::GetEndDatetime(), UniRun::GetEventCount(), UniRun::GetRun(), UniRun::GetRunNumbers(), UniRun::GetStartDatetime(), TH1::GetXaxis(), i, MAX_EVENT_RATE, MAX_RUN_DUR_HOUR, MIN_EVENT_RATE, MIN_RUN_DUR_SEC, orange(), UniqueRunNumber::period_number, red(), reset(), UniqueRunNumber::run_number, and TNamed::SetTitle().

Here is the call graph for this function: