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

Public Member Functions

def calculateIntersectionInQuadTreePicture (self, first, second)
 
def calculatePositionInQuadTreePicture (self, position)
 
def forAllAxialSegments (self, f)
 
def convertToQuadTreePicture (self, phi, mag, charge)
 
def event (self)
 
def plot_quad_tree_content (self)
 
def save_and_show_file (self)
 
def init_plotting (self)
 
def terminate (self)
 

Public Attributes

 range_x_min
 lower x bound for polar angle
 
 range_x_max
 upper x bound for polar angle
 
 range_y_min
 lower y bound
 
 range_y_max
 upper y bound
 
 file_name_of_quad_tree_content
 cached output filename
 
 draw_quad_tree_content
 cached flag to draw QuadTree
 
 queue
 cached value of the queue input parameter
 
 file_names
 cached array of output filenames (one file per image)
 

Static Public Attributes

bool draw_segment_intersection = True and False
 by default, do not draw a segment intersection
 
bool draw_segment = True and False
 by default, do not draw a segment
 
bool draw_segment_averaged = True and False
 by default, do not draw an averaged segment
 
bool draw_segment_fitted = True and False
 by default, do not draw a fitted segment
 
bool draw_mc_information = True and False
 by default, do not draw the MC information
 
bool draw_mc_hits = True and False
 by default, do not draw the MC hits
 
bool theta_shifted = False
 by default, polar angles and cuts are in the range (0,pi) rather than (-pi/2,+pi/2)
 
 maximum_theta = np.pi
 an alias for the maximum value of the polar angle
 

Detailed Description

Implementation of a quad tree plotter for SegmentQuadTrees

Definition at line 125 of file quadTreePlotter.py.

Member Function Documentation

◆ calculateIntersectionInQuadTreePicture()

def calculateIntersectionInQuadTreePicture (   self,
  first,
  second 
)
Calculate the point where the two given hits intersect

params
------
first: hit
second: hit

Definition at line 149 of file quadTreePlotter.py.

◆ calculatePositionInQuadTreePicture()

def calculatePositionInQuadTreePicture (   self,
  position 
)
Transform a given normal coordinate position to a legendre position (conformal transformed)

params
------
position: TrackFindingCDC.Vector2D

Definition at line 174 of file quadTreePlotter.py.

◆ convertToQuadTreePicture()

def convertToQuadTreePicture (   self,
  phi,
  mag,
  charge 
)
Convert given track parameters into a point in the legendre space

params
------
phi: phi of the track
mag: magnitude of pt
charge: charge of the track

Definition at line 205 of file quadTreePlotter.py.

◆ event()

def event (   self)
Draw everything according to the given options

Attributes
----------
draw_segment_intersection
draw_segment
draw_segment_averaged
draw_segment_fitted
draw_mc_information
draw_mc_hits

Reimplemented from QuadTreePlotter.

Definition at line 229 of file quadTreePlotter.py.

◆ forAllAxialSegments()

def forAllAxialSegments (   self,
  f 
)
Loop over all segments and execute a function

params
------
f: function

Definition at line 189 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_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)
inherited
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)
inherited
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: