The class collects utility functions for creating DQM histograms: prepared for PXD, SVD, VXD and Track DQM histograms.
More...
#include <DQMCommonUtils.h>
|
static int | SetFlag (int Type, int bin, const double *pars, double ratio, TH1F *hist, TH1F *refhist, TH1I *flaghist) |
| Function return flag histogram filled based on condition from TH1F source. More...
|
|
static int | SetFlag (int Type, int bin, const double *pars, double ratio, TH1I *hist, TH1I *refhist, TH1I *flaghist) |
| Function return flag histogram filled based on condition from TH1I source. More...
|
|
static void | CreateDBHisto (TH1F *HistoBD) |
| Function for filling of TH1F histogram to database. More...
|
|
static void | CreateDBHisto (TH1I *HistoBD) |
| Function for filling of TH1I histogram to database. More...
|
|
static void | CreateDBHistoGroup (TH1F **HistoBD, int number) |
| Function for filling of group of TH1F histogram to database. More...
|
|
static void | CreateDBHistoGroup (TH1I **HistoBD, int number) |
| Function for filling of group of TH1I histogram to database. More...
|
|
static int | LoadDBHisto (TH1F *HistoBD) |
| Function for loading of TH1F histogram from database. More...
|
|
static int | LoadDBHisto (TH1I *HistoBD) |
| Function for loading of TH1I histogram from database. More...
|
|
static int | LoadDBHistoGroup (TH1F **HistoBD, int number) |
| Function for loading of group of TH1F histogram from database. More...
|
|
static int | LoadDBHistoGroup (TH1I **HistoBD, int number) |
| Function for loading of group of TH1I histogram from database. More...
|
|
The class collects utility functions for creating DQM histograms: prepared for PXD, SVD, VXD and Track DQM histograms.
Definition at line 22 of file DQMCommonUtils.h.
◆ CreateDBHisto() [1/2]
void CreateDBHisto |
( |
TH1F * |
HistoBD | ) |
|
|
static |
Function for filling of TH1F histogram to database.
- Parameters
-
Definition at line 161 of file DQMCommonUtils.cc.
164 TString Name = Form(
"%s_Ref", HistoDB->GetName());
166 DBHisto.construct(HistoDB->GetNbinsX() + 3);
167 double* Content =
new double[HistoDB->GetNbinsX() + 3];
168 Content[0] = HistoDB->GetNbinsX();
169 Content[1] = HistoDB->GetXaxis()->GetXmin();
170 Content[2] = HistoDB->GetXaxis()->GetXmax();
171 for (
int i = 0; i < HistoDB->GetNbinsX(); i++) {
172 Content[i + 3] = HistoDB->GetBinContent(i + 1);
174 DBHisto->SetElements(Content);
Class for importing a single object to the database.
A class that describes the interval of experiments/runs for which an object in the database is valid.
◆ CreateDBHisto() [2/2]
void CreateDBHisto |
( |
TH1I * |
HistoBD | ) |
|
|
static |
Function for filling of TH1I histogram to database.
- Parameters
-
Definition at line 180 of file DQMCommonUtils.cc.
◆ CreateDBHistoGroup() [1/2]
void CreateDBHistoGroup |
( |
TH1F ** |
HistoBD, |
|
|
int |
number |
|
) |
| |
|
static |
Function for filling of group of TH1F histogram to database.
- Parameters
-
HistoBD | Histogram for DB. |
number | Number of histograms to glue to one. |
Definition at line 199 of file DQMCommonUtils.cc.
◆ CreateDBHistoGroup() [2/2]
void CreateDBHistoGroup |
( |
TH1I ** |
HistoBD, |
|
|
int |
number |
|
) |
| |
|
static |
Function for filling of group of TH1I histogram to database.
- Parameters
-
HistoBD | Histogram for DB. |
number | Number of histograms to glue to one. |
Definition at line 220 of file DQMCommonUtils.cc.
◆ LoadDBHisto() [1/2]
int LoadDBHisto |
( |
TH1F * |
HistoBD | ) |
|
|
static |
Function for loading of TH1F histogram from database.
- Parameters
-
- Returns
- Indication of succes of realizing of condition, 1: OK.
Definition at line 241 of file DQMCommonUtils.cc.
◆ LoadDBHisto() [2/2]
int LoadDBHisto |
( |
TH1I * |
HistoBD | ) |
|
|
static |
Function for loading of TH1I histogram from database.
- Parameters
-
- Returns
- Indication of succes of realizing of condition, 1: OK.
Definition at line 264 of file DQMCommonUtils.cc.
◆ LoadDBHistoGroup() [1/2]
int LoadDBHistoGroup |
( |
TH1F ** |
HistoBD, |
|
|
int |
number |
|
) |
| |
|
static |
Function for loading of group of TH1F histogram from database.
- Parameters
-
HistoBD | Histogram for DB. |
number | Number of histograms to extract from DB. |
- Returns
- Indication of succes of realizing of condition, 1: OK.
Definition at line 287 of file DQMCommonUtils.cc.
◆ LoadDBHistoGroup() [2/2]
int LoadDBHistoGroup |
( |
TH1I ** |
HistoBD, |
|
|
int |
number |
|
) |
| |
|
static |
Function for loading of group of TH1I histogram from database.
- Parameters
-
HistoBD | Histogram for DB. |
number | Number of histograms to extract from DB. |
- Returns
- Indication of succes of realizing of condition, 1: OK.
Definition at line 310 of file DQMCommonUtils.cc.
◆ SetFlag() [1/2]
int SetFlag |
( |
int |
Type, |
|
|
int |
bin, |
|
|
const double * |
pars, |
|
|
double |
ratio, |
|
|
TH1F * |
hist, |
|
|
TH1F * |
refhist, |
|
|
TH1I * |
flaghist |
|
) |
| |
|
static |
Function return flag histogram filled based on condition from TH1F source.
Flag values: -3: nonexisting Type -2: histogram is missing or masked -1: less than 100 samles, skip comparition 0: good much with reference 1: warning level = diff > 6 * sigma and < error level 2: error level = diff > 10 * sigma
- Parameters
-
Type | Set type of condition for flag calculation. 1: use counts, mean and RMS. 2: use counts only. 3: use mean only. 4: use RMS only. 5: use counts and mean. 9: use bin content only. 10: use Chi2 condition and pars[0] and pars[1]. 100: nothing do just fill flags as OK. |
bin | bin which is fill in flag histogram. |
pars | array of parameters need for condition. |
ratio | Ratio of acquired events to reference events. |
hist | Histogram of sources. |
refhist | Reference histogram. |
flaghist | Histogram of flags. |
- Returns
- Indication of succes of realizing of condition, 1: OK.
Definition at line 21 of file DQMCommonUtils.cc.
◆ SetFlag() [2/2]
int SetFlag |
( |
int |
Type, |
|
|
int |
bin, |
|
|
const double * |
pars, |
|
|
double |
ratio, |
|
|
TH1I * |
hist, |
|
|
TH1I * |
refhist, |
|
|
TH1I * |
flaghist |
|
) |
| |
|
static |
Function return flag histogram filled based on condition from TH1I source.
Flag values: -3: nonexisting Type -2: histogram is missing or masked -1: less than 100 samles, skip comparition 0: good much with reference 1: warning level = diff > 6 * sigma and < error level 2: error level = diff > 10 * sigma
- Parameters
-
Type | Set type of condition for flag calculation. 1: use counts, mean and RMS. 2: use counts only. 3: use mean only. 4: use RMS only. 5: use counts and mean. 9: use bin content only. 10: use Chi2 condition and pars[0] and pars[1]. 100: nothing do just fill flags as OK. |
bin | bin which is fill in flag histogram. |
pars | array of parameters need for condition. |
ratio | Ratio of acquired events to reference events. |
hist | Histogram of sources. |
refhist | Reference histogram. |
flaghist | Histogram of flags. |
- Returns
- Indication of succes of realizing of condition, 1: OK.
Definition at line 145 of file DQMCommonUtils.cc.
The documentation for this class was generated from the following files: