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

Public Member Functions

def output_file_name (self)
 
def harvesting_module (self, path=None)
 
def create_argument_parser (self, **kwds)
 
def create_path (self)
 

Static Public Attributes

int n_events = 10000
 number of events to generate
 
str generator_module = "generic"
 use the generic event generator
 

Detailed Description

Harvester to generate, postprocess and inspect MC events for track-segment evaluation

Definition at line 36 of file record.py.

Member Function Documentation

◆ create_argument_parser()

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

Reimplemented from HarvestingRunMixin.

Definition at line 55 of file record.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 record.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 path = super().create_path()
66
67 path.add_module("TFCDC_WireHitPreparer",
68 logLevel=8,
69 flightTimeEstimation="outwards",
70 UseNLoops=1)
71
72 path.add_module('TFCDC_AxialTrackCreatorMCTruth',
73 logLevel=8,
74 useOnlyBeforeTOP=True,
75 fit=True,
76 reconstructedDriftLength=True,
77 reconstructedPositions=True)
78
79 return path
80
81

◆ harvesting_module()

def harvesting_module (   self,
  path = None 
)
Harvest and post-process the generated events

Reimplemented from HarvestingRunMixin.

Definition at line 48 of file record.py.

48 def harvesting_module(self, path=None):
49 """Harvest and post-process the generated events"""
50 harvesting_module = LegendreBinningValidationModule(self.output_file_name)
51 if path:
52 path.add_module(harvesting_module)
53 return harvesting_module
54

◆ output_file_name()

def output_file_name (   self)
Get the output ROOT filename

Reimplemented from HarvestingRunMixin.

Definition at line 44 of file record.py.

44 def output_file_name(self):
45 """Get the output ROOT filename"""
46 return 'legendre_binning.root'
47

Member Data Documentation

◆ generator_module

str generator_module = "generic"
static

use the generic event generator

Definition at line 41 of file record.py.

◆ n_events

int n_events = 10000
static

number of events to generate

Definition at line 39 of file record.py.


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