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