Belle II Software development
PXDOccupancyInfoChecker Class Reference
Inheritance diagram for PXDOccupancyInfoChecker:
ConditionCheckerBase

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)
 

Detailed Description

Checker for PXDOccupancyInfoPar

Definition at line 273 of file condition_checker.py.

Constructor & Destructor Documentation

◆ __init__()

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

Reimplemented from ConditionCheckerBase.

Definition at line 278 of file condition_checker.py.

278 def __init__(self, name, tfile, rundir=""):
279 """
280 """
281 super().__init__(name, Belle2.PXDOccupancyInfoPar, tfile, "")
282
The payload collecting some meta information from running the masking algorithm.

Member Function Documentation

◆ define_graphs()

def define_graphs (   self)
Method to define TGraph

Reimplemented from ConditionCheckerBase.

Definition at line 283 of file condition_checker.py.

283 def define_graphs(self):
284 """
285 Method to define TGraph
286 """
287 super().define_graphs(ytitle="Occupancy (With Mask) [%]")
288

◆ draw_plots()

def draw_plots (   self,
  canvas = None,
**  kwargs 
)
Method to draw plots on a TCanvas

Reimplemented from ConditionCheckerBase.

Definition at line 302 of file condition_checker.py.

302 def draw_plots(self, canvas=None, **kwargs):
303 """
304 Method to draw plots on a TCanvas
305 """
306 # We don't use raw occupanncy. They will be corrected after takig out dead pixels
307 pass
308 # super().draw_plots(canvas=canvas, cname="OccupancyWithMask", ymin=0., ymax=plot_type_dict["occ_masked"]["max"])
309
310

◆ 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.

289 def get_db_content(self):
290 content_dic = {}
291 for sensorID in sensorID_list:
292 numID = sensorID.getID()
293 raw_occ = self.dbObj.getOccupancy(numID)
294 # The default value is -1. It seems 0 will not be updated into the payload.
295 content_dic[numID] = raw_occ if raw_occ >= 0 else 0
296
297 return content_dic
298

◆ 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.

299 def get_graph_value(self, sensor_db_content):
300 return sensor_db_content * 100
301

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