Public Member Functions | |
__init__ (self, name, tfile, rundir="maps", use_hist=True) | |
define_graphs (self) | |
define_hists (self) | |
get_db_content (self) | |
get_graph_value (self, sensor_db_content) | |
get_graph_value_from_hist (self, h2) | |
set_hist_content (self, h2, sensor_db_content) | |
draw_plots (self, canvas=None, cname="PXDDeadPixel", ymin=0., ymax=plot_type_dict["dead"]["max"], **kwargs) | |
run (self) | |
objType (self) | |
exp (self) | |
beginRun (self) | |
fill_plots (self) | |
save_canvas (self, canvas, cname, logy=False) | |
Public Attributes | |
name = name | |
DBObj name. | |
dbObj = Belle2.PyDBObj(self.name, self.objType.Class()) | |
DBObjPtr for the condition. | |
eventMetaData = Belle2.PyStoreObj("EventMetaData") | |
pointer to the event metadata | |
tfile = tfile | |
TFile for saving plots. | |
rundir = rundir | |
Directory for writing histograms of each run. | |
dict | graphs = {} |
Dictionary of plots (TGraph) summarizing variables vs run. | |
dict | hists = {} |
Dictionary of plots (TH1) to be saved for each run. | |
str | hist_title_suffix = "" |
Hist title suffix. | |
int | runstart = 999999 |
The 1st run. | |
int | runend = -1 |
The last run. | |
int | expstart = 999999 |
The 1st exp. | |
use_hist = use_hist | |
Flag to get TGraph values from a histogram (TH2F) | |
run = self.graphs[sensorID.getID()] | |
Protected Attributes | |
_objType = objType | |
DBObj type. | |
Checker for PXDDeadPixelPar
Definition at line 356 of file condition_checker.py.
__init__ | ( | self, | |
name, | |||
tfile, | |||
rundir = "maps", | |||
use_hist = True ) |
Definition at line 361 of file condition_checker.py.
|
inherited |
Call functions at beginning of a run
Definition at line 109 of file condition_checker.py.
define_graphs | ( | self | ) |
Method to define TGraph
Reimplemented from ConditionCheckerBase.
Definition at line 366 of file condition_checker.py.
define_hists | ( | self | ) |
Method to define TH2
Reimplemented from ConditionCheckerBase.
Definition at line 372 of file condition_checker.py.
draw_plots | ( | self, | |
canvas = None, | |||
cname = "PXDDeadPixel", | |||
ymin = 0., | |||
ymax = plot_type_dict["dead"]["max"], | |||
** | kwargs ) |
Method to draw plots on a TCanvas
Reimplemented from ConditionCheckerBase.
Definition at line 446 of file condition_checker.py.
|
inherited |
Experiment number
Definition at line 103 of file condition_checker.py.
|
inherited |
Method to fill plot objects
Definition at line 170 of file condition_checker.py.
get_db_content | ( | self | ) |
Abstract method to get content of a payload Should return a Dictionary with sensorID.getID() as key and relaated calibration results as value
Reimplemented from ConditionCheckerBase.
Definition at line 378 of file condition_checker.py.
get_graph_value | ( | self, | |
sensor_db_content ) |
Abstract method to get a value for each TGraph Parameters: sensor_db_content (Any): Calibration results of a module
Reimplemented from ConditionCheckerBase.
Definition at line 397 of file condition_checker.py.
get_graph_value_from_hist | ( | self, | |
h2 ) |
Method to get a value for each TGraph Parameters: h2 (TH2): If not none, get value from h2
Reimplemented from ConditionCheckerBase.
Definition at line 422 of file condition_checker.py.
|
inherited |
DBObj type (read only)
Definition at line 89 of file condition_checker.py.
|
inherited |
Run number
Definition at line 96 of file condition_checker.py.
|
inherited |
Save TCanvas to png/pdf format and do not write it to the ROOT file by default Parameters: canvas (TCanvas): ROOT TCanvas for plotting canme (str): Name of the canvas logy (bool): Flag to use log scale for y-axis
Definition at line 246 of file condition_checker.py.
set_hist_content | ( | self, | |
h2, | |||
sensor_db_content ) |
Method to set TH2 bins Parameters: h2 (TH2): TH2F object for handling values of a pixel matrix sensor_db_content (Any): Calibration results of a module
Reimplemented from ConditionCheckerBase.
Definition at line 425 of file condition_checker.py.
|
protectedinherited |
DBObj type.
Definition at line 59 of file condition_checker.py.
|
inherited |
DBObjPtr for the condition.
Definition at line 61 of file condition_checker.py.
|
inherited |
pointer to the event metadata
Definition at line 63 of file condition_checker.py.
|
inherited |
The 1st exp.
Definition at line 82 of file condition_checker.py.
|
inherited |
Dictionary of plots (TGraph) summarizing variables vs run.
Definition at line 72 of file condition_checker.py.
|
inherited |
Hist title suffix.
Definition at line 76 of file condition_checker.py.
|
inherited |
Dictionary of plots (TH1) to be saved for each run.
Definition at line 74 of file condition_checker.py.
|
inherited |
DBObj name.
Definition at line 57 of file condition_checker.py.
|
inherited |
Definition at line 136 of file condition_checker.py.
|
inherited |
Directory for writing histograms of each run.
Definition at line 67 of file condition_checker.py.
|
inherited |
The last run.
Definition at line 80 of file condition_checker.py.
|
inherited |
The 1st run.
Definition at line 78 of file condition_checker.py.
|
inherited |
TFile for saving plots.
Definition at line 65 of file condition_checker.py.
|
inherited |
Flag to get TGraph values from a histogram (TH2F)
Definition at line 84 of file condition_checker.py.