17 |
geth = 0; |
geth = 0; |
18 |
get2 = 1; |
get2 = 1; |
19 |
gete = 1; |
gete = 1; |
20 |
|
getn = 1; |
21 |
|
extAlgID = 202; |
22 |
standalone = false; |
standalone = false; |
23 |
frame2 = "root"; |
frame2 = "root"; |
24 |
frame1 = "root"; |
frame1 = "root"; |
44 |
|
|
45 |
nskip = 0; |
nskip = 0; |
46 |
|
|
47 |
|
watch = false; |
48 |
|
|
49 |
// TrkParams::SetTrackingMode(); |
// TrkParams::SetTrackingMode(); |
50 |
// TrkParams::SetPrecisionFactor(); |
// TrkParams::SetPrecisionFactor(); |
51 |
// TrkParams::SetStepMin(); |
// TrkParams::SetStepMin(); |
69 |
get2 = 1; |
get2 = 1; |
70 |
geth = 0; |
geth = 0; |
71 |
gete = 1; |
gete = 1; |
72 |
|
getn = 1; |
73 |
|
extAlgID = 202; |
74 |
standalone = false; |
standalone = false; |
75 |
frame2 = "root"; |
frame2 = "root"; |
76 |
frame1 = "root"; |
frame1 = "root"; |
104 |
|
|
105 |
nskip = 0; |
nskip = 0; |
106 |
|
|
107 |
|
watch = false; |
108 |
|
|
109 |
// TrkParams::SetTrackingMode(); |
// TrkParams::SetTrackingMode(); |
110 |
// TrkParams::SetPrecisionFactor(); |
// TrkParams::SetPrecisionFactor(); |
111 |
// TrkParams::SetStepMin(); |
// TrkParams::SetStepMin(); |
152 |
continue; |
continue; |
153 |
} |
} |
154 |
// -----------------------------------------------------// |
// -----------------------------------------------------// |
155 |
if (!strcmp(vcustom[i], "--dontget2") ||!strcmp(vcustom[i], "--dontget-level2") ){ |
// if (!strcmp(vcustom[i], "--dontget2") ||!strcmp(vcustom[i], "--dontget-level2") ){ |
156 |
get2 = 0; |
// get2 = 0; |
157 |
continue; |
// gete = 0; |
158 |
} |
// getn = 0; |
159 |
|
// continue; |
160 |
|
// } |
161 |
// -----------------------------------------------------// |
// -----------------------------------------------------// |
162 |
if (!strcmp(vcustom[i], "--dontgete") ||!strcmp(vcustom[i], "--dontget-exttrack") ){ |
if (!strcmp(vcustom[i], "--dontgete") ||!strcmp(vcustom[i], "--dontget-exttrack") ){ |
163 |
gete = 0; |
gete = 0; |
164 |
continue; |
continue; |
165 |
} |
} |
166 |
// -----------------------------------------------------// |
// -----------------------------------------------------// |
167 |
if (!strcmp(vcustom[i], "--standalone") || !strcmp(vcustom[i], "-s")){ |
if (!strcmp(vcustom[i], "-extalg")){ |
|
standalone = true; |
|
|
continue; |
|
|
} |
|
|
// -----------------------------------------------------// |
|
|
if (!strcmp(vcustom[i], "-processFile1")){ |
|
168 |
if (++i >= ncustom) throw -3; |
if (++i >= ncustom) throw -3; |
169 |
get1 = 1; |
gete = 1; |
170 |
file1 = vcustom[i]; |
get2 = 1; |
171 |
|
extAlgID = atoi(vcustom[i]); |
172 |
continue; |
continue; |
173 |
} |
} |
174 |
// -----------------------------------------------------// |
// -----------------------------------------------------// |
175 |
if (!strcmp(vcustom[i], "-frame1")){ |
if (!strcmp(vcustom[i], "--dontgetn") ||!strcmp(vcustom[i], "--dontget-nuclei") ){ |
176 |
if (++i >= ncustom)throw -3; |
getn = 0; |
|
get1 = 1; |
|
|
frame1 = vcustom[i]; |
|
177 |
continue; |
continue; |
178 |
} |
} |
179 |
// -----------------------------------------------------// |
// -----------------------------------------------------// |
180 |
if (!strcmp(vcustom[i], "-frame2")){ |
if (!strcmp(vcustom[i], "--standalone") || !strcmp(vcustom[i], "-s")){ |
181 |
if (++i >= ncustom)throw -3; |
standalone = true; |
|
get2 = 1; |
|
|
frame2 = vcustom[i]; |
|
182 |
continue; |
continue; |
183 |
} |
} |
184 |
// -----------------------------------------------------// |
// -----------------------------------------------------// |
185 |
if (!strcmp(vcustom[i], "-framee")){ |
if (!strcmp(vcustom[i], "-processFile1")){ |
186 |
if (++i >= ncustom)throw -3; |
if (++i >= ncustom) throw -3; |
187 |
gete = 1; |
get1 = 1; |
188 |
framee = vcustom[i]; |
file1 = vcustom[i]; |
189 |
continue; |
continue; |
190 |
} |
} |
191 |
|
// // -----------------------------------------------------// |
192 |
|
// if (!strcmp(vcustom[i], "-frame1")){ |
193 |
|
// if (++i >= ncustom)throw -3; |
194 |
|
// get1 = 1; |
195 |
|
// frame1 = vcustom[i]; |
196 |
|
// continue; |
197 |
|
// } |
198 |
|
// // -----------------------------------------------------// |
199 |
|
// if (!strcmp(vcustom[i], "-frame2")){ |
200 |
|
// if (++i >= ncustom)throw -3; |
201 |
|
// get2 = 1; |
202 |
|
// frame2 = vcustom[i]; |
203 |
|
// continue; |
204 |
|
// } |
205 |
|
// // -----------------------------------------------------// |
206 |
|
// if (!strcmp(vcustom[i], "-framee")){ |
207 |
|
// if (++i >= ncustom)throw -3; |
208 |
|
// gete = 1; |
209 |
|
// framee = vcustom[i]; |
210 |
|
// continue; |
211 |
|
// } |
212 |
// -----------------------------------------------------// |
// -----------------------------------------------------// |
213 |
if (!strcmp(vcustom[i], "-pfa")){ |
if (!strcmp(vcustom[i], "-pfa")){ |
214 |
if (++i >= ncustom)throw -3; |
if (++i >= ncustom)throw -3; |
245 |
return 1; |
return 1; |
246 |
} |
} |
247 |
// -----------------------------------------------------// |
// -----------------------------------------------------// |
248 |
|
if (!strcmp(vcustom[i], "--watch") ){ |
249 |
|
watch = true; |
250 |
|
continue; |
251 |
|
} |
252 |
|
// -----------------------------------------------------// |
253 |
else if (!strcmp(vcustom[i], "--debug") || !strcmp(vcustom[i], "-d")){ |
else if (!strcmp(vcustom[i], "--debug") || !strcmp(vcustom[i], "-d")){ |
254 |
TrkParams::SetDebugMode(); |
TrkParams::SetDebugMode(); |
255 |
continue; |
continue; |
314 |
cout << " get level2 " << get2 << endl; |
cout << " get level2 " << get2 << endl; |
315 |
cout << " get hough " << geth << endl; |
cout << " get hough " << geth << endl; |
316 |
cout << " get ext.tracking " << gete << endl; |
cout << " get ext.tracking " << gete << endl; |
317 |
|
if(gete) |
318 |
|
cout << " ext.tracking alg " << extAlgID << endl; |
319 |
|
cout << " get nuclei " << getn << endl; |
320 |
// cout << " frame1 " << frame1 << endl; |
// cout << " frame1 " << frame1 << endl; |
321 |
// cout << " frame2 " << frame2 << endl; |
// cout << " frame2 " << frame2 << endl; |
322 |
// cout << " frameh " << frame2 << endl; |
// cout << " frameh " << frame2 << endl; |
351 |
printf( "\n --get1, --get-level1 : get LEVEL1 output (store only cluster associated to tracks) [default (no LEVEL1 output) ] "); |
printf( "\n --get1, --get-level1 : get LEVEL1 output (store only cluster associated to tracks) [default (no LEVEL1 output) ] "); |
352 |
printf( "\n --get1-full, --get-level1-full : get LEVEL1 output (store all clusters) [default (no LEVEL1 output) ] "); |
printf( "\n --get1-full, --get-level1-full : get LEVEL1 output (store all clusters) [default (no LEVEL1 output) ] "); |
353 |
printf( "\n --dontget2, --dontget-level2 : do not get LEVEL2 output [default (get LEVEL2 output)]"); |
printf( "\n --dontget2, --dontget-level2 : do not get LEVEL2 output [default (get LEVEL2 output)]"); |
354 |
printf( "\n --dontgete, --dontget-exttrack : do not get ext.tracking output [default (get LEVEL2 output)]"); |
printf( "\n --dontgete, --dontget-exttrack : do not get ext.tracking output [default (ext.algorythm 202)]"); |
355 |
|
printf( "\n --dontgetn, --dontget-nuclei : do not get nuclei cleaned tracks [default (get nuclei output)]"); |
356 |
|
printf( "\n --extalg ID : apply ext.tracking algorythm n.ID [default (ID=202) ] "); |
357 |
printf( "\n --geth,, --get-hough : get Hough-transform output [default (no Hough-t. output) ] "); |
printf( "\n --geth,, --get-hough : get Hough-transform output [default (no Hough-t. output) ] "); |
358 |
printf( "\n -pfa PFAID : type of output for LEVEL2, root/hbook [default 14 (COG4) ] "); |
printf( "\n -pfa PFAID : type of output for LEVEL2, root/hbook [default 14 (COG4) ] "); |
359 |
printf( "\n -N PATH : load parameter of type N=1,2... from PATH [default (from DB) ] "); |
printf( "\n -N PATH : load parameter of type N=1,2... from PATH [default (from DB) ] "); |