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

Public Member Functions

def __init__ (self, queue)
 
def plot_quad_tree_content (self)
 
def save_and_show_file (self)
 
def init_plotting (self)
 
def event (self)
 
def terminate (self)
 

Public Attributes

 file_name_of_quad_tree_content
 cached output filename
 
 draw_quad_tree_content
 cached flag to draw QuadTree
 
 range_x_min
 cached minimum x value
 
 range_x_max
 cached maximum x value
 
 range_y_min
 cached minimum y value
 
 range_y_max
 cached maximum y value
 
 queue
 cached value of the queue input parameter
 
 file_names
 cached array of output filenames (one file per image)
 

Detailed Description

This Module is able to draw the content coming from a QuadTreeImplementation with debugOutput = True.

Definition at line 24 of file quadTreePlotter.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  queue 
)
Do not forget to set the ranges! Otherwise you will end up with an empty plot..

Definition at line 29 of file quadTreePlotter.py.

29  def __init__(self, queue):
30  """
31  Do not forget to set the ranges! Otherwise you will end up with an empty plot..
32  """
33  basf2.Module.__init__(self)
34 
35  self.file_name_of_quad_tree_content = "output.root"
36 
37  self.draw_quad_tree_content = True
38 
39  self.range_x_min = 0
40 
41  self.range_x_max = 0
42 
43  self.range_y_min = 0
44 
45  self.range_y_max = 0
46 
47 
48  self.queue = queue
49 
50  self.file_names = []
51 

Member Function Documentation

◆ event()

def event (   self)
Draw everything

Reimplemented in StereoQuadTreePlotter, and SegmentQuadTreePlotter.

Definition at line 112 of file quadTreePlotter.py.

◆ init_plotting()

def init_plotting (   self)
Initialize the figure with the plot ranges
We need to implement axes labels later!

Definition at line 103 of file quadTreePlotter.py.

◆ plot_quad_tree_content()

def plot_quad_tree_content (   self)
Draw the quad tree content coming from the root file if enabled.

Definition at line 52 of file quadTreePlotter.py.

◆ save_and_show_file()

def save_and_show_file (   self)
Save the plot to a svg and show it (maybe a png would be better?)

Reimplemented in QueueStereoQuadTreePlotter.

Definition at line 95 of file quadTreePlotter.py.

◆ terminate()

def terminate (   self)
Termination signal at the end of the event processing

Reimplemented in QueueStereoQuadTreePlotter.

Definition at line 120 of file quadTreePlotter.py.


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