18 flight_time_estimation =
""
21 n_loops = float(
"nan")
24 """Configure the basf2 job script using the translated command-line arguments"""
28 argument_parser.add_argument(
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")
40 argument_parser.add_argument(
45 help=(
"Choose to block all wire hits but the ones located on the {mc_loops} first loops")
48 return argument_parser
50 def create_path(self):
52 Sets up a path that plays back pregenerated events or generates events
53 based on the properties
in the base
class.
55 path = super().create_path()
57 wire_hit_preparer = path.add_module("TFCDC_WireHitPreparer",
def create_argument_parser(self, **kwds)
float n_loops
Loop limit above which on wire hits are prepared for the track finder - Uses MC information.
str flight_time_estimation
Used option for the initial flight time estimation.