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

Public Member Functions

def create_path (self)
 
def create_argument_parser (self, **kwds)
 
def configure (self, arguments)
 
def execute (self)
 
def name (self)
 
def configure_and_execute_from_commandline (self)
 
def run (self, path)
 
def configure_from_commandline (self)
 
def adjust_path (self, path)
 

Public Attributes

 root_input_file
 generating events, so there is no ROOT input file
 

Static Public Attributes

 display_module_segments
 Use CDCSVGDisplay to draw the MCTrackCand segments. More...
 
 draw_gftrackcand_trajectories
 Do not draw the genfit MCTrackCand trajectories. More...
 
 draw_gftrackcands
 Draw the genfit MCTrackCands. More...
 
 draw_clusters
 Do not draw the associated clusters.
 
 track_cands_store_array_name
 Tell the plotter where to find the information.
 
 display_module_tracks
 Use CDCSVGDisplay to draw the TrackCand information. More...
 
 display_module_mc
 Use CDCSVGDisplay to draw the MC tracks. More...
 
 draw_segments_mctrackid
 Draw the track IDs.
 
 plotter_module = SegmentQuadTreePlotter()
 Convert the information to QuadTree segments then draw these.
 
 draw_quad_tree_content
 Draw the QuadTree segments.
 
 draw_segment_intersection
 Draw the segment intersections.
 
 draw_mc_information
 Draw the MC information.
 
string generator_module = "EvtGenInput"
 Use EvtGen for the event generator.
 
string description = "Simulate events using various generator and detector setups from command line."
 Description of the run setup to be displayed on command line.
 
string detector_setup = "Default"
 By default, use the default detector setup.
 
list bkg_files = []
 By default, no background overlay.
 
 components = None
 By default, do specific components.
 
bool disable_deltas = False
 By default, do not disable delta-ray generation.
 
 simulation_output = None
 By default, do no store the simulation output.
 
bool allow_input = True
 By default, this basf2 job can read events from an input ROOT TFile.
 
int n_events = 10000
 By default, process 10000 events.
 
 random_seed = None
 By default, the random-number seed is unassigned.
 
int n_processes = 0
 By default, no parallel processing.
 
int n_events_to_skip = 0
 By default, do not skip any events at the start of the input ROOT TFile.
 

Detailed Description

 Create segments and plot them in a segment quad tree 

Definition at line 20 of file segment_quad_tree.py.

Member Function Documentation

◆ adjust_path()

def adjust_path (   self,
  path 
)
inherited
Hook that gives the opportunity to check the path for consistency before processing it

Reimplemented in HarvestingRunMixin.

Definition at line 95 of file minimal.py.

◆ configure()

def configure (   self,
  arguments 
)
inherited
Configure for basf2 job; disable ROOT input if simulating events

Reimplemented from EmptyRun.

Reimplemented in CDCDisplayRun.

Definition at line 123 of file event_generation.py.

◆ configure_and_execute_from_commandline()

def configure_and_execute_from_commandline (   self)
inherited
Configure basf2 job script from command-line arguments then run it

Definition at line 46 of file minimal.py.

◆ configure_from_commandline()

def configure_from_commandline (   self)
inherited
Convert the command-line arguments to a basf2 job script

Definition at line 68 of file minimal.py.

◆ create_argument_parser()

def create_argument_parser (   self,
**  kwds 
)
inherited

◆ create_path()

def create_path (   self)
 Make SegmentFinding and QuadTreeFinding and plotting/display/validation

Reimplemented from ReadOrGenerateEventsRun.

Definition at line 69 of file segment_quad_tree.py.

69 
70  plotter_module.draw_mc_information = True
71 
72  def create_path(self):
73  """ Make SegmentFinding and QuadTreeFinding and plotting/display/validation"""
74  main_path = super(SegmentQuadTreeRun, self).create_path()
75 
76  add_mc_track_finder(main_path)
77  main_path.add_module("TFCDC_WireHitPreparer")
78  main_path.add_module("TFCDC_ClusterPreparer")
79 
80  segment_finder = basf2.register_module("TFCDC_SegmentFinderFacetAutomaton")
81  segment_finder.param({
82  "WriteFacets": True,
83  "SegmentOrientation": "none",
84  })
85  main_path.add_module(segment_finder)
86 
87  # main_path.add_module(Filler())
88 
89  segment_quad_tree = basf2.register_module("SegmentQuadTree")
90  segment_quad_tree.param({
91  "Level": 4,
92  "MinimumItems": 1,
93  "DoPostprocessing": True,
94  })
95  segment_quad_tree.set_log_level(basf2.LogLevel.DEBUG)
96  segment_quad_tree.set_debug_level(100)
97  main_path.add_module(segment_quad_tree)
98  main_path.add_module(self.display_module_tracks)
99 

◆ execute()

def execute (   self)
inherited
Run the basf2 job

Reimplemented from EmptyRun.

Definition at line 131 of file event_generation.py.

◆ name()

def name (   self)
inherited
provide name of this object

Definition at line 42 of file minimal.py.

◆ run()

def run (   self,
  path 
)
inherited
Process the basf2 path

Reimplemented in PostProcessingRunMixin.

Definition at line 59 of file minimal.py.

Member Data Documentation

◆ display_module_mc

display_module_mc
static
Initial value:
= CDCSVGDisplayModule(
)

Use CDCSVGDisplay to draw the MC tracks.

Definition at line 49 of file segment_quad_tree.py.

◆ display_module_segments

display_module_segments
static
Initial value:
= CDCSVGDisplayModule(
)

Use CDCSVGDisplay to draw the MCTrackCand segments.

Definition at line 25 of file segment_quad_tree.py.

◆ display_module_tracks

display_module_tracks
static
Initial value:
= CDCSVGDisplayModule(
)

Use CDCSVGDisplay to draw the TrackCand information.

Definition at line 39 of file segment_quad_tree.py.

◆ draw_gftrackcand_trajectories

draw_gftrackcand_trajectories
static

Do not draw the genfit MCTrackCand trajectories.

Draw the genfit MCTrackCand trajectories.

Definition at line 30 of file segment_quad_tree.py.

◆ draw_gftrackcands

draw_gftrackcands
static

Draw the genfit MCTrackCands.

Draw the genfit TrackCands.

Definition at line 32 of file segment_quad_tree.py.


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