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 33 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 52 of file segmentPairCreationValidation.py.

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

◆ 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 57 of file segmentPairCreationValidation.py.

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

Member Data Documentation

◆ output_file_name

str output_file_name = "SegmentPairCreationValidation.root"
static

specify the output ROOT file

Definition at line 50 of file segmentPairCreationValidation.py.

◆ py_profile

bool py_profile = True
static

post-process with profiling validation

Definition at line 48 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 36 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 40 of file segmentPairCreationValidation.py.


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