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

◆ harvesting_module()

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

Reimplemented from HarvestingRunMixin.

Definition at line 45 of file record.py.

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

◆ output_file_name()

def output_file_name (   self)
Get the output ROOT filename

Reimplemented from HarvestingRunMixin.

Definition at line 41 of file record.py.

41 def output_file_name(self):
42 """Get the output ROOT filename"""
43 return 'legendre_binning.root'
44

Member Data Documentation

◆ generator_module

str generator_module = "generic"
static

use the generic event generator

Definition at line 38 of file record.py.

◆ n_events

int n_events = 10000
static

number of events to generate

Definition at line 36 of file record.py.


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