Belle II Software  release-08-01-10
PXDOccupancyInfoChecker Class Reference
Inheritance diagram for PXDOccupancyInfoChecker:
Collaboration diagram for PXDOccupancyInfoChecker:

Public Member Functions

def __init__ (self, name, tfile, rundir="")
 
def define_graphs (self)
 
def get_db_content (self)
 
def get_graph_value (self, sensor_db_content)
 
def draw_plots (self, canvas=None, **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 set_hist_content (self, h2, sensor_db_content)
 
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)
 

Public Attributes

 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)
 

Private Attributes

 _objType
 DBObj type.
 

Detailed Description

Checker for PXDOccupancyInfoPar

Definition at line 273 of file condition_checker.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  name,
  tfile,
  rundir = "" 
)
 

Definition at line 278 of file condition_checker.py.

Member Function Documentation

◆ beginRun()

def beginRun (   self)
inherited
Call functions at beginning of a run

Definition at line 109 of file condition_checker.py.

◆ define_graphs() [1/2]

def define_graphs (   self)
Method to define TGraph

Definition at line 283 of file condition_checker.py.

◆ 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()

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,
**  kwargs 
)
Method to draw plots on a TCanvas

Definition at line 302 of file condition_checker.py.

◆ draw_plots() [2/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.

◆ exp()

def exp (   self)
inherited
Experiment number

Definition at line 103 of file condition_checker.py.

◆ fill_plots()

def fill_plots (   self)
inherited
Method to fill plot objects

Definition at line 170 of file condition_checker.py.

◆ 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 289 of file condition_checker.py.

◆ get_graph_value()

def 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 299 of file condition_checker.py.

◆ get_graph_value_from_hist()

def get_graph_value_from_hist (   self,
  h2 = None 
)
inherited
Method to get a value for each TGraph
Parameters:
  h2 (TH2): If not none, get value from h2

Reimplemented in PXDDeadPixelsChecker.

Definition at line 153 of file condition_checker.py.

◆ objType()

def objType (   self)
inherited
DBObj type (read only)

Definition at line 89 of file condition_checker.py.

◆ run()

def run (   self)
inherited
Run number

Definition at line 96 of file condition_checker.py.

◆ 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 
)
inherited
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 in PXDGainMapChecker, PXDDeadPixelsChecker, and PXDMaskedPixelsChecker.

Definition at line 161 of file condition_checker.py.


The documentation for this class was generated from the following file: