86 def create_argument_parser(self, **kwds):
87 """Convert command-line arguments to basf2 argument list"""
88 argument_parser = super().create_argument_parser(**kwds)
89
90 argument_parser.add_argument(
91 '-m',
92 '--monte-carlo',
93 choices=["no", "medium", "full"],
94 default=self.monte_carlo,
95 dest='monte_carlo',
96 help='Amount of monte carlo information to be used in the segment generation.',
97 )
98
99 argument_parser.add_argument(
100 "-k",
101 "--karimaki",
102 dest="karimaki_fit",
103 action="store_true",
104 help='Use Karimaki fit instead of Riemann fit'
105 )
106
107 argument_parser.add_argument(
108 "-fp",
109 "--fit-pos",
110 choices=["recoPos", "rlDriftCircle", "wirePos"],
111 default=self.fit_positions,
112 dest="fit_positions",
113 help=("Choose which positional information the segment fit should be used. \n"
114 "* 'wirePos' means only the wire position\n"
115 "* 'recoPos' means only the reconstructed position\n"
116 "* 'rlDriftCircle' means only the drift circle with the right left passage\n")
117 )
118
119 argument_parser.add_argument(
120 "-fv",
121 "--fit-var",
122 choices=["unit", "driftLength", "pseudo", "proper"],
123 default=self.fit_variance,
124 dest="fit_variance",
125 help=("Choose which variance information the segment fit should be used. \n"
126 "* 'unit' means equal variance of 1\n"
127 "* 'driftLength' means inserting the drift length as variance, very improper because dimension mismatch\n"
128 "* 'pseudo' means the squared dirft length + plus the drift length variance "
129 "(correct dimension, proper lower bound)\n"
130 "* 'proper' means only the drift length variance\n")
131 )
132
133 argument_parser.add_argument(
134 "-ft",
135 "--flight-time-estimation",
136 choices=["none", "outwards", "downwards"],
137 default=self.flight_time_estimation,
138 dest="flight_time_estimation",
139 help=("Choose which estimation method for the time of flight should be use. \n"
140 "* 'none' no time of flight corrections\n"
141 "* 'outwards' means the minimal time needed to travel to the wire from the interaction point \n"
142 "* 'downwards' means the minimal time needed to travel to the wire from the y = 0 plane downwards \n")
143 )
144
145 argument_parser.add_argument(
146 "-fr",
147 "--flight-time-reestimation",
148 action="store_true",
149 dest="flight_time_reestimation",
150 help=("Switch to reestimate drift length before fitting.")
151 )
152
153 argument_parser.add_argument(
154 "-fa",
155 "--use-alpha-in-drift-length",
156 action="store_true",
157 dest="use_alpha_in_drift_length",
158 help=("Switch to serve the alpha angle to the drift length translator.")
159 )
160
161 argument_parser.add_argument(
162 "-fm",
163 "--flight-time-mass-scale",
164 type=float,
165 dest="flight_time_mass_scale",
166 help=("Mass parameter to estimate the velocity in the time of flight estimation")
167 )
168
169 return argument_parser
170