Belle II Software development
SegmentPairCreationValidationRun Class Reference
Inheritance diagram for SegmentPairCreationValidationRun:
BrowseTFileOnTerminateRunMixin StandardEventGenerationRun PostProcessingRunMixin ReadOrGenerateEventsRun EmptyRun MinimalRun EmptyRun

Public Member Functions

def create_argument_parser (self, **kwds)
 
def create_path (self)
 

Static Public Attributes

basf2 segment_finder_module = basf2.register_module("TFCDC_SegmentCreatorMCTruth")
 Use the SegmentFinderFacetAutomaton for track-segment creation with MC truth-matching.
 
basf2 segment_pair_finder_module = basf2.register_module("TFCDC_TrackFinderSegmentPairAutomaton")
 use the TrackFinderSegmentPairAutomaton for track-segment finding
 
bool py_profile = True
 post-process with profiling validation
 
str output_file_name = "SegmentPairCreationValidation.root"
 specify the output ROOT file
 

Detailed Description

Generate, postprocess and inspect MC events for track segment-pair validation

Definition at line 36 of file segmentPairCreationValidation.py.

Member Function Documentation

◆ create_argument_parser()

def create_argument_parser (   self,
**  kwds 
)
Convert command-line arguments to basf2 argument list

Reimplemented from BrowseTFileOnTerminateRunMixin.

Definition at line 55 of file segmentPairCreationValidation.py.

55 def create_argument_parser(self, **kwds):
56 """Convert command-line arguments to basf2 argument list"""
57 argument_parser = super().create_argument_parser(**kwds)
58 return argument_parser
59

◆ create_path()

def create_path (   self)
Sets up a path that plays back pregenerated events or generates events
based on the properties in the base class.

Reimplemented from ReadOrGenerateEventsRun.

Definition at line 60 of file segmentPairCreationValidation.py.

60 def create_path(self):
61 """
62 Sets up a path that plays back pregenerated events or generates events
63 based on the properties in the base class.
64 """
65 main_path = super().create_path()
66
67 segment_finder_module = self.get_basf2_module(self.segment_finder_module)
68 main_path.add_module(segment_finder_module)
69
70 main_path.add_module("TFCDC_SegmentFitter")
71
72 segment_pair_finder_module = self.get_basf2_module(self.segment_pair_finder_module)
73 main_path.add_module(segment_pair_finder_module)
74
75 # main_path.add_module(AxialStereoPairFitterModule())
76 validation_module = SegmentPairCreationValidationModule(output_file_name=self.output_file_name)
77 if self.py_profile:
78 main_path.add_module(metamodules.PyProfilingModule(validation_module))
79 else:
80 main_path.add_module(validation_module)
81
82 return main_path
83
84

Member Data Documentation

◆ output_file_name

str output_file_name = "SegmentPairCreationValidation.root"
static

specify the output ROOT file

Definition at line 53 of file segmentPairCreationValidation.py.

◆ py_profile

bool py_profile = True
static

post-process with profiling validation

Definition at line 51 of file segmentPairCreationValidation.py.

◆ segment_finder_module

basf2 segment_finder_module = basf2.register_module("TFCDC_SegmentCreatorMCTruth")
static

Use the SegmentFinderFacetAutomaton for track-segment creation with MC truth-matching.

Definition at line 39 of file segmentPairCreationValidation.py.

◆ segment_pair_finder_module

basf2 segment_pair_finder_module = basf2.register_module("TFCDC_TrackFinderSegmentPairAutomaton")
static

use the TrackFinderSegmentPairAutomaton for track-segment finding

Definition at line 43 of file segmentPairCreationValidation.py.


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