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

Public Member Functions

def __init__ (self, queue, label, *args, **kwargs)
 
def terminate (self)
 
def save_and_show_file (self)
 
def create_trajectory_from_track (self, track)
 
def create_reco_hit3D (self, cdcHit, trajectory3D, rlInfo)
 
def get_plottable_line (self, recoHit3D)
 
def plot_hit_line (self, recoHit3D, color)
 
def event (self)
 
def plot_quad_tree_content (self)
 
def init_plotting (self)
 

Public Attributes

 queue
 The queue to handle.
 
 label
 The label for writing to the queue.
 
 file_list
 The list of created paths.
 
 draw_quad_tree_content
 by default, draw the QuadTree
 
 range_x_min
 default lower x bound
 
 range_x_max
 default upper x bound
 
 range_y_min
 default lower y bound
 
 range_y_max
 default upper y bound
 
 file_name_of_quad_tree_content
 cached output filename
 
 file_names
 cached array of output filenames (one file per image)
 

Static Public Attributes

bool draw_mc_hits = False
 by default, do not draw the MC hits
 
bool draw_mc_tracks = False
 by default, do not draw the MC tracks
 
bool draw_track_hits = False
 by default, do not draw the track hits
 
bool draw_last_track = True
 by default, draw the last track
 
bool delete_bad_hits = False
 by default, do not delete the bad track hits
 

Detailed Description

A wrapper around the svg drawer in the tracking package that
writes its output files as a list to the queue

Definition at line 536 of file quadTreePlotter.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  queue,
  label,
args,
**  kwargs 
)
 The same as the base class, except:

Arguments
---------

queue: The queue to write to
label: The key name in the queue

Definition at line 543 of file quadTreePlotter.py.

Member Function Documentation

◆ create_reco_hit3D()

def create_reco_hit3D (   self,
  cdcHit,
  trajectory3D,
  rlInfo 
)
inherited
Use a cdc hit and a trajectory to reconstruct a CDCRecoHit3D

params
------
cdcHit: CDCHit
trajectory3D: TrackFindingCDC.CDCTrajectory3D
rlInfo: RightLeftInfo ( = short)

Definition at line 388 of file quadTreePlotter.py.

◆ create_trajectory_from_track()

def create_trajectory_from_track (   self,
  track 
)
inherited
Convert a genfit::TrackCand into a TrackFindingCDC.CDCTrajectory3D

params
------
track: genfit::TrackCand

Definition at line 371 of file quadTreePlotter.py.

◆ event()

def event (   self)
inherited
Draw the hit content according to the attributes

Attributes
----------
draw_mc_hits
draw_mc_tracks
draw_track_hits
draw_last_track
delete_bad_hits

Reimplemented from QuadTreePlotter.

Definition at line 430 of file quadTreePlotter.py.

◆ get_plottable_line()

def get_plottable_line (   self,
  recoHit3D 
)
inherited
Minim the task of the StereoQuadTree by showing the line of quadtree nodes
a hit belongs to

Definition at line 410 of file quadTreePlotter.py.

◆ init_plotting()

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

Definition at line 103 of file quadTreePlotter.py.

◆ plot_hit_line()

def plot_hit_line (   self,
  recoHit3D,
  color 
)
inherited
Draw one recoHit3D

Definition at line 419 of file quadTreePlotter.py.

◆ plot_quad_tree_content()

def plot_quad_tree_content (   self)
inherited
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)
 Overwrite the function to listen for every new filename 

Reimplemented from QuadTreePlotter.

Definition at line 566 of file quadTreePlotter.py.

◆ terminate()

def terminate (   self)
 Overwrite the terminate to put the list to the queue

Reimplemented from QuadTreePlotter.

Definition at line 561 of file quadTreePlotter.py.


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