Belle II Software development
ElossHarvestingRun Class Reference
Inheritance diagram for ElossHarvestingRun:
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 = "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 99 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 120 of file record.py.

120 def create_argument_parser(self, **kwds):
121 """Convert command-line arguments to basf2 argument list"""
122 argument_parser = super().create_argument_parser(**kwds)
123 return argument_parser
124

◆ 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 125 of file record.py.

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

◆ harvesting_module()

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

Reimplemented from HarvestingRunMixin.

Definition at line 113 of file record.py.

113 def harvesting_module(self, path=None):
114 """Harvest and post-process the generated events"""
115 harvesting_module = ElossHarvestingModule(self.output_file_name)
116 if path:
117 path.add_module(harvesting_module)
118 return harvesting_module
119

◆ output_file_name()

def output_file_name (   self)
Get the output ROOT filename

Reimplemented from HarvestingRunMixin.

Definition at line 109 of file record.py.

109 def output_file_name(self):
110 """Get the output ROOT filename"""
111 return 'eloss.root'
112

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 106 of file record.py.

◆ generator_module

str generator_module = "eloss_gun"
static

use the eloss_gun particle generator

Definition at line 104 of file record.py.

◆ n_events

int n_events = 10000
static

number of events to generate

Definition at line 102 of file record.py.


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