17 |
geth = 0; |
geth = 0; |
18 |
get2 = 1; |
get2 = 1; |
19 |
gete = 1; |
gete = 1; |
20 |
|
gete_ncheck = 10; |
21 |
|
getn = 1; |
22 |
|
extAlgID = 202; |
23 |
standalone = false; |
standalone = false; |
24 |
frame2 = "root"; |
frame2 = "root"; |
25 |
frame1 = "root"; |
frame1 = "root"; |
45 |
|
|
46 |
nskip = 0; |
nskip = 0; |
47 |
|
|
48 |
|
watch = false; |
49 |
|
|
50 |
// TrkParams::SetTrackingMode(); |
// TrkParams::SetTrackingMode(); |
51 |
// TrkParams::SetPrecisionFactor(); |
// TrkParams::SetPrecisionFactor(); |
52 |
// TrkParams::SetStepMin(); |
// TrkParams::SetStepMin(); |
70 |
get2 = 1; |
get2 = 1; |
71 |
geth = 0; |
geth = 0; |
72 |
gete = 1; |
gete = 1; |
73 |
|
gete_ncheck = 10; |
74 |
|
getn = 1; |
75 |
|
extAlgID = 202; |
76 |
standalone = false; |
standalone = false; |
77 |
frame2 = "root"; |
frame2 = "root"; |
78 |
frame1 = "root"; |
frame1 = "root"; |
106 |
|
|
107 |
nskip = 0; |
nskip = 0; |
108 |
|
|
109 |
|
watch = false; |
110 |
|
|
111 |
// TrkParams::SetTrackingMode(); |
// TrkParams::SetTrackingMode(); |
112 |
// TrkParams::SetPrecisionFactor(); |
// TrkParams::SetPrecisionFactor(); |
113 |
// TrkParams::SetStepMin(); |
// TrkParams::SetStepMin(); |
154 |
continue; |
continue; |
155 |
} |
} |
156 |
// -----------------------------------------------------// |
// -----------------------------------------------------// |
157 |
if (!strcmp(vcustom[i], "--dontget2") ||!strcmp(vcustom[i], "--dontget-level2") ){ |
// if (!strcmp(vcustom[i], "--dontget2") ||!strcmp(vcustom[i], "--dontget-level2") ){ |
158 |
get2 = 0; |
// get2 = 0; |
159 |
continue; |
// gete = 0; |
160 |
} |
// getn = 0; |
161 |
|
// continue; |
162 |
|
// } |
163 |
// -----------------------------------------------------// |
// -----------------------------------------------------// |
164 |
if (!strcmp(vcustom[i], "--dontgete") ||!strcmp(vcustom[i], "--dontget-exttrack") ){ |
if (!strcmp(vcustom[i], "--dontgete") ||!strcmp(vcustom[i], "--dontget-exttrack") ){ |
165 |
gete = 0; |
gete = 0; |
166 |
continue; |
continue; |
167 |
} |
} |
168 |
// -----------------------------------------------------// |
// -----------------------------------------------------// |
169 |
if (!strcmp(vcustom[i], "--standalone") || !strcmp(vcustom[i], "-s")){ |
if (!strcmp(vcustom[i], "-extalg")){ |
170 |
standalone = true; |
if (++i >= ncustom) throw -3; |
171 |
|
gete = 1; |
172 |
|
get2 = 1; |
173 |
|
extAlgID = atoi(vcustom[i]); |
174 |
continue; |
continue; |
175 |
} |
} |
176 |
// -----------------------------------------------------// |
// -----------------------------------------------------// |
177 |
if (!strcmp(vcustom[i], "-processFile1")){ |
if (!strcmp(vcustom[i], "-extalg-check")){ |
178 |
if (++i >= ncustom) throw -3; |
if (++i >= ncustom) throw -3; |
179 |
get1 = 1; |
gete_ncheck = atoi(vcustom[i]); |
|
file1 = vcustom[i]; |
|
180 |
continue; |
continue; |
181 |
} |
} |
182 |
// -----------------------------------------------------// |
// -----------------------------------------------------// |
183 |
if (!strcmp(vcustom[i], "-frame1")){ |
if (!strcmp(vcustom[i], "--dontgetn") ||!strcmp(vcustom[i], "--dontget-nuclei") ){ |
184 |
if (++i >= ncustom)throw -3; |
getn = 0; |
|
get1 = 1; |
|
|
frame1 = vcustom[i]; |
|
185 |
continue; |
continue; |
186 |
} |
} |
187 |
// -----------------------------------------------------// |
// -----------------------------------------------------// |
188 |
if (!strcmp(vcustom[i], "-frame2")){ |
if (!strcmp(vcustom[i], "--standalone") || !strcmp(vcustom[i], "-s")){ |
189 |
if (++i >= ncustom)throw -3; |
standalone = true; |
|
get2 = 1; |
|
|
frame2 = vcustom[i]; |
|
190 |
continue; |
continue; |
191 |
} |
} |
192 |
// -----------------------------------------------------// |
// -----------------------------------------------------// |
193 |
if (!strcmp(vcustom[i], "-framee")){ |
if (!strcmp(vcustom[i], "-processFile1")){ |
194 |
if (++i >= ncustom)throw -3; |
if (++i >= ncustom) throw -3; |
195 |
gete = 1; |
get1 = 1; |
196 |
framee = vcustom[i]; |
file1 = vcustom[i]; |
197 |
continue; |
continue; |
198 |
} |
} |
199 |
|
// // -----------------------------------------------------// |
200 |
|
// if (!strcmp(vcustom[i], "-frame1")){ |
201 |
|
// if (++i >= ncustom)throw -3; |
202 |
|
// get1 = 1; |
203 |
|
// frame1 = vcustom[i]; |
204 |
|
// continue; |
205 |
|
// } |
206 |
|
// // -----------------------------------------------------// |
207 |
|
// if (!strcmp(vcustom[i], "-frame2")){ |
208 |
|
// if (++i >= ncustom)throw -3; |
209 |
|
// get2 = 1; |
210 |
|
// frame2 = vcustom[i]; |
211 |
|
// continue; |
212 |
|
// } |
213 |
|
// // -----------------------------------------------------// |
214 |
|
// if (!strcmp(vcustom[i], "-framee")){ |
215 |
|
// if (++i >= ncustom)throw -3; |
216 |
|
// gete = 1; |
217 |
|
// framee = vcustom[i]; |
218 |
|
// continue; |
219 |
|
// } |
220 |
// -----------------------------------------------------// |
// -----------------------------------------------------// |
221 |
if (!strcmp(vcustom[i], "-pfa")){ |
if (!strcmp(vcustom[i], "-pfa")){ |
222 |
if (++i >= ncustom)throw -3; |
if (++i >= ncustom)throw -3; |
253 |
return 1; |
return 1; |
254 |
} |
} |
255 |
// -----------------------------------------------------// |
// -----------------------------------------------------// |
256 |
|
if (!strcmp(vcustom[i], "--watch") ){ |
257 |
|
watch = true; |
258 |
|
continue; |
259 |
|
} |
260 |
|
// -----------------------------------------------------// |
261 |
else if (!strcmp(vcustom[i], "--debug") || !strcmp(vcustom[i], "-d")){ |
else if (!strcmp(vcustom[i], "--debug") || !strcmp(vcustom[i], "-d")){ |
262 |
TrkParams::SetDebugMode(); |
TrkParams::SetDebugMode(); |
263 |
continue; |
continue; |
322 |
cout << " get level2 " << get2 << endl; |
cout << " get level2 " << get2 << endl; |
323 |
cout << " get hough " << geth << endl; |
cout << " get hough " << geth << endl; |
324 |
cout << " get ext.tracking " << gete << endl; |
cout << " get ext.tracking " << gete << endl; |
325 |
|
if(gete) |
326 |
|
cout << " ext.tracking alg " << extAlgID << endl; |
327 |
|
cout << " get nuclei " << getn << endl; |
328 |
// cout << " frame1 " << frame1 << endl; |
// cout << " frame1 " << frame1 << endl; |
329 |
// cout << " frame2 " << frame2 << endl; |
// cout << " frame2 " << frame2 << endl; |
330 |
// cout << " frameh " << frame2 << endl; |
// cout << " frameh " << frame2 << endl; |
359 |
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) ] "); |
360 |
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) ] "); |
361 |
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)]"); |
362 |
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)]"); |
363 |
|
printf( "\n --dontgetn, --dontget-nuclei : do not get nuclei cleaned tracks [default (get nuclei output)]"); |
364 |
|
printf( "\n --extalg ID : apply ext.tracking algorythm n.ID [default (ID=202) ] "); |
365 |
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) ] "); |
366 |
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) ] "); |
367 |
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) ] "); |