Belle II Software  release-08-01-10
WireHitPreparerRunMixin Class Reference
Inheritance diagram for WireHitPreparerRunMixin:
Collaboration diagram for WireHitPreparerRunMixin:

Public Member Functions

def create_argument_parser (self, **kwds)
 
def create_path (self)
 
def name (self)
 
def configure_and_execute_from_commandline (self)
 
def execute (self)
 
def run (self, path)
 
def configure_from_commandline (self)
 
def configure (self, arguments)
 
def adjust_path (self, path)
 

Static Public Attributes

string flight_time_estimation = ""
 Used option for the initial flight time estimation.
 
 n_loops = float("nan")
 Loop limit above which on wire hits are prepared for the track finder - Uses MC information.
 
string description = "Empty execution of basf2"
 Description of the run setup to be displayed on command line.
 

Detailed Description

Mixin part the 

Definition at line 14 of file wirehit_preparation.py.

Member Function Documentation

◆ adjust_path()

def adjust_path (   self,
  path 
)
inherited
Hook that gives the opportunity to check the path for consistency before processing it

Reimplemented in HarvestingRunMixin.

Definition at line 95 of file minimal.py.

◆ configure()

def configure (   self,
  arguments 
)
inherited
Save the command-line arguments as key-value pairs

Reimplemented in CDCDisplayRun, and ReadOrGenerateEventsRun.

Definition at line 74 of file minimal.py.

◆ configure_and_execute_from_commandline()

def configure_and_execute_from_commandline (   self)
inherited
Configure basf2 job script from command-line arguments then run it

Definition at line 46 of file minimal.py.

◆ configure_from_commandline()

def configure_from_commandline (   self)
inherited
Convert the command-line arguments to a basf2 job script

Definition at line 68 of file minimal.py.

◆ create_argument_parser()

def create_argument_parser (   self,
**  kwds 
)
Configure the basf2 job script using the translated command-line arguments

Reimplemented from EmptyRun.

Definition at line 23 of file wirehit_preparation.py.

23  def create_argument_parser(self, **kwds):
24  """Configure the basf2 job script using the translated command-line arguments"""
25 
26  argument_parser = super().create_argument_parser(**kwds)
27 
28  argument_parser.add_argument(
29  "-ft",
30  "--flight-time-estimation",
31  choices=["none", "outwards", "downwards"],
32  default=argparse.SUPPRESS,
33  dest="flight_time_estimation",
34  help=("Choose which estimation method for the time of flight should be use. \n"
35  "* 'none' no time of flight corrections\n"
36  "* 'outwards' means the minimal time needed to travel to the wire from the interaction point \n"
37  "* 'downwards' means the minimal time needed to travel to the wire from the y = 0 plane downwards \n")
38  )
39 
40  argument_parser.add_argument(
41  "-l",
42  "--mc-loop-limit",
43  type=float,
44  dest="n_loops",
45  help=("Choose to block all wire hits but the ones located on the {mc_loops} first loops")
46  )
47 
48  return argument_parser
49 

◆ 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 EmptyRun.

Definition at line 50 of file wirehit_preparation.py.

◆ execute()

def execute (   self)
inherited
Create the basf2 path then run the job

Reimplemented in ReadOrGenerateEventsRun.

Definition at line 51 of file minimal.py.

◆ name()

def name (   self)
inherited
provide name of this object

Definition at line 42 of file minimal.py.

◆ run()

def run (   self,
  path 
)
inherited
Process the basf2 path

Reimplemented in PostProcessingRunMixin.

Definition at line 59 of file minimal.py.


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