|
def | __init__ (self, name, tfile, rundir="maps") |
|
def | define_graphs (self) |
|
def | define_hists (self) |
|
def | get_db_content (self) |
|
def | get_graph_value (self, sensor_db_content) |
|
def | set_hist_content (self, h2, sensor_db_content) |
|
def | draw_plots (self, canvas=None, cname="PXDGain", ymin=0.5, ymax=2.5, **kwargs) |
|
def | objType (self) |
|
def | run (self) |
|
def | exp (self) |
|
def | beginRun (self) |
|
def | define_graphs (self, ytitle="") |
|
def | define_hists (self, name=None, title=None, ztitle=None, **kwargs) |
|
def | get_graph_value_from_hist (self, h2=None) |
|
def | fill_plots (self) |
|
def | draw_plots (self, canvas=None, cname="", ymin=0., ymax=None, logy=False) |
|
def | save_canvas (self, canvas, cname, logy=False) |
|
|
| name |
| DBObj name.
|
|
| dbObj |
| DBObjPtr for the condition.
|
|
| eventMetaData |
| pointer to the event metadata
|
|
| tfile |
| TFile for saving plots.
|
|
| rundir |
| Directory for writing histograms of each run.
|
|
| graphs |
| Dictionary of plots (TGraph) summarizing variables vs run.
|
|
| hists |
| Dictionary of plots (TH1) to be saved for each run.
|
|
| hist_title_suffix |
| Hist title suffix.
|
|
| runstart |
| The 1st run.
|
|
| runend |
| The last run.
|
|
| expstart |
| The 1st exp.
|
|
| use_hist |
| Flag to get TGraph values from a histogram (TH2F)
|
|
Checker for PXDGainMapPar
Definition at line 453 of file condition_checker.py.
◆ __init__()
def __init__ |
( |
|
self, |
|
|
|
name, |
|
|
|
tfile, |
|
|
|
rundir = "maps" |
|
) |
| |
◆ beginRun()
◆ define_graphs() [1/2]
def define_graphs |
( |
|
self | ) |
|
◆ define_graphs() [2/2]
def define_graphs |
( |
|
self, |
|
|
|
ytitle = "" |
|
) |
| |
|
inherited |
Method to define TGraph
Parameters:
ytitle (str): Label for TGraph y-axis
Definition at line 116 of file condition_checker.py.
◆ define_hists() [1/2]
◆ define_hists() [2/2]
def define_hists |
( |
|
self, |
|
|
|
name = None , |
|
|
|
title = None , |
|
|
|
ztitle = None , |
|
|
** |
kwargs |
|
) |
| |
|
inherited |
Method to define TH2
Parameters:
name (str): name for TH2, to which sensor name will be attached
title (str): title for TH2
ztitle (str): title for z-axis (color bar)
kwargs: additional arguments
Definition at line 125 of file condition_checker.py.
◆ draw_plots() [1/2]
def draw_plots |
( |
|
self, |
|
|
|
canvas = None , |
|
|
|
cname = "" , |
|
|
|
ymin = 0. , |
|
|
|
ymax = None , |
|
|
|
logy = False |
|
) |
| |
|
inherited |
Method to draw plots on a TCanvas
Parameters:
canvas (TCanvas): ROOT TCanvas for plotting
canme (str): Name of the canvas
ymin (float): Minimum value of y-axis for plotting
ymax (float): Maximum of y-axis for plotting
logy (bool): Flag to use log scale for y-axis
Definition at line 212 of file condition_checker.py.
◆ draw_plots() [2/2]
def draw_plots |
( |
|
self, |
|
|
|
canvas = None , |
|
|
|
cname = "PXDGain" , |
|
|
|
ymin = 0.5 , |
|
|
|
ymax = 2.5 , |
|
|
** |
kwargs |
|
) |
| |
◆ exp()
◆ fill_plots()
◆ get_db_content()
def 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 477 of file condition_checker.py.
◆ get_graph_value()
def get_graph_value |
( |
|
self, |
|
|
|
sensor_db_content |
|
) |
| |
◆ get_graph_value_from_hist()
def get_graph_value_from_hist |
( |
|
self, |
|
|
|
h2 = None |
|
) |
| |
|
inherited |
◆ objType()
◆ run()
◆ save_canvas()
def save_canvas |
( |
|
self, |
|
|
|
canvas, |
|
|
|
cname, |
|
|
|
logy = False |
|
) |
| |
|
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()
def 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 491 of file condition_checker.py.
The documentation for this class was generated from the following file: