Belle II Software development
ElossHarvestingRun Class Reference
Inheritance diagram for ElossHarvestingRun:

Public Member Functions

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

Static Public Attributes

int n_events = 10000
 number of events to generate
 
str generator_module = "eloss_gun"
 use the eloss_gun particle generator
 
str detector_setup = "TrackingDetectorConstB"
 use the tracking-detector subset with constant magnetic field for the geometry
 

Detailed Description

Harvester to generate, postprocess and inspect MC events for energy-loss evaluation

Definition at line 93 of file record.py.

Member Function Documentation

◆ create_argument_parser()

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

Definition at line 114 of file record.py.

114 def create_argument_parser(self, **kwds):
115 """Convert command-line arguments to basf2 argument list"""
116 argument_parser = super().create_argument_parser(**kwds)
117 return argument_parser
118

◆ create_path()

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

Definition at line 119 of file record.py.

119 def create_path(self):
120 """
121 Sets up a path that plays back pregenerated events or generates events
122 based on the properties in the base class.
123 """
124 path = super().create_path()
125
126 path.add_module("TFCDC_WireHitPreparer",
127 logLevel=8,
128 flightTimeEstimation="outwards",
129 UseNLoops=1)
130
131 path.add_module('TFCDC_AxialTrackCreatorMCTruth',
132 logLevel=8,
133 useOnlyBeforeTOP=True,
134 fit=True,
135 reconstructedDriftLength=True,
136 reconstructedPositions=True)
137
138 return path
139
140

◆ harvesting_module()

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

Definition at line 107 of file record.py.

107 def harvesting_module(self, path=None):
108 """Harvest and post-process the generated events"""
109 harvesting_module = ElossHarvestingModule(self.output_file_name)
110 if path:
111 path.add_module(harvesting_module)
112 return harvesting_module
113

◆ output_file_name()

output_file_name ( self)
Get the output ROOT filename

Definition at line 103 of file record.py.

103 def output_file_name(self):
104 """Get the output ROOT filename"""
105 return 'eloss.root'
106

Member Data Documentation

◆ detector_setup

str detector_setup = "TrackingDetectorConstB"
static

use the tracking-detector subset with constant magnetic field for the geometry

Definition at line 100 of file record.py.

◆ generator_module

str generator_module = "eloss_gun"
static

use the eloss_gun particle generator

Definition at line 98 of file record.py.

◆ n_events

int n_events = 10000
static

number of events to generate

Definition at line 96 of file record.py.


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