| 38 |
|
|
| 39 |
npar=0; |
npar=0; |
| 40 |
|
|
| 41 |
TrkParams::SetTrackingMode(); |
// TrkParams::SetTrackingMode(); |
| 42 |
TrkParams::SetPrecisionFactor(); |
// TrkParams::SetPrecisionFactor(); |
| 43 |
TrkParams::SetStepMin(); |
// TrkParams::SetStepMin(); |
| 44 |
|
TrkParams::SetMiniDefault(); |
| 45 |
TrkParams::SetPFA(); |
TrkParams::SetPFA(); |
| 46 |
}; |
}; |
| 47 |
|
|
| 90 |
|
|
| 91 |
npar=0; |
npar=0; |
| 92 |
|
|
| 93 |
TrkParams::SetTrackingMode(); |
// TrkParams::SetTrackingMode(); |
| 94 |
TrkParams::SetPrecisionFactor(); |
// TrkParams::SetPrecisionFactor(); |
| 95 |
TrkParams::SetStepMin(); |
// TrkParams::SetStepMin(); |
| 96 |
|
TrkParams::SetMiniDefault(); |
| 97 |
TrkParams::SetPFA(); |
TrkParams::SetPFA(); |
| 98 |
|
|
| 99 |
}; |
}; |
| 100 |
/** |
/** |
| 101 |
* Set processing variables according to input custom parameters |
* Set processing variables according to input custom parameters |
| 102 |
*/ |
*/ |
| 103 |
void TrkProcess::HandleCustomPar(int ncustom, char *vcustom[]){ |
int TrkProcess::HandleCustomPar(int ncustom, char *vcustom[]){ |
| 104 |
|
|
| 105 |
for (int i=0; i< ncustom; i++){ |
for (int i=0; i< ncustom; i++){ |
| 106 |
|
|
| 159 |
continue; |
continue; |
| 160 |
} |
} |
| 161 |
// -----------------------------------------------------// |
// -----------------------------------------------------// |
| 162 |
|
if (!strcmp(vcustom[i], "-pfa")){ |
| 163 |
|
if (++i >= ncustom)throw -3; |
| 164 |
|
TrkParams::SetPFA(atoi(vcustom[i])); |
| 165 |
|
continue; |
| 166 |
|
} |
| 167 |
|
// -----------------------------------------------------// |
| 168 |
if ( atoi(vcustom[i]) < 0){ |
if ( atoi(vcustom[i]) < 0){ |
| 169 |
if (++i >= ncustom)throw -3; |
if (++i >= ncustom)throw -3; |
| 170 |
partype[npar]=-1*atoi(vcustom[i-1]); |
partype[npar]=-1*atoi(vcustom[i-1]); |
| 178 |
continue; |
continue; |
| 179 |
} |
} |
| 180 |
// -----------------------------------------------------// |
// -----------------------------------------------------// |
| 181 |
|
if (!strcmp(vcustom[i], "--warning") || !strcmp(vcustom[i], "-w")){ |
| 182 |
|
TrkParams::SetWarningMode(); |
| 183 |
|
continue; |
| 184 |
|
} |
| 185 |
|
// -----------------------------------------------------// |
| 186 |
|
if (!strcmp(vcustom[i], "--help") || !strcmp(vcustom[i], "-h")){ |
| 187 |
|
PrintHelp(); |
| 188 |
|
return 1; |
| 189 |
|
} |
| 190 |
|
// -----------------------------------------------------// |
| 191 |
else if (!strcmp(vcustom[i], "--debug") || !strcmp(vcustom[i], "-d")){ |
else if (!strcmp(vcustom[i], "--debug") || !strcmp(vcustom[i], "-d")){ |
| 192 |
TrkParams::SetDebugMode(); |
TrkParams::SetDebugMode(); |
| 193 |
continue; |
continue; |
| 210 |
|
|
| 211 |
ostatus = 0; |
ostatus = 0; |
| 212 |
|
|
| 213 |
|
return 0; |
| 214 |
|
|
| 215 |
}; |
}; |
| 216 |
/** |
/** |
| 217 |
* \brief Process Level0 event |
* \brief Process Level0 event |
| 262 |
// cout << " debug mode debug " << dbg_mode.debug << endl << endl; |
// cout << " debug mode debug " << dbg_mode.debug << endl << endl; |
| 263 |
|
|
| 264 |
} |
} |
| 265 |
|
|
| 266 |
|
void TrkProcess::PrintHelp(){ |
| 267 |
|
|
| 268 |
|
printf( "\n\n +TRK [ options ] \n \n"); |
| 269 |
|
// printf( "\n --version : Print tracker software version and exit "); |
| 270 |
|
printf( "Options:"); |
| 271 |
|
printf( "\n --help, -h : Print this help and exit "); |
| 272 |
|
// printf( "\n -idRun RUN : ID number of the run to be processed (for reprocessing RUN=0) \n"); |
| 273 |
|
// printf( "\n -outDir OUTDIR : Path where to put the LEVEL2 output [default ./ ] "); |
| 274 |
|
// printf( "\n -processFolder DIR : Directory (relative to OUTDIR) for other output files [default TrackerFolder/ ] "); |
| 275 |
|
// printf( "\n -processFile FILE : Name of the LEVEL2 output file [default RUN.Level2.root]"); |
| 276 |
|
// printf( "\n -processFile1 FILE : Name of the LEVEL1 output file [default RUN.Level1.rz]"); |
| 277 |
|
// printf( "\n -frame1 FRAME : type of output for LEVEL1, root/hbook [default hbook ] "); |
| 278 |
|
// printf( "\n -frame2 FRAME : type of output for LEVEL2, root/hbook [default root ] "); |
| 279 |
|
printf( "\n --get1, --get-level1 : get LEVEL1 output (store only cluster associated to tracks) [default (no LEVEL1 output) ] "); |
| 280 |
|
printf( "\n --get1-full, --get-level1-full : get LEVEL1 output (store all clusters) [default (no LEVEL1 output) ] "); |
| 281 |
|
printf( "\n --dontget2, --dontget-level2 : do not get LEVEL2 output [default (get LEVEL2 output)]"); |
| 282 |
|
printf( "\n --geth,, --get-hough : get Hough-transform output [default (no Hough-t. output) ] "); |
| 283 |
|
printf( "\n -pfa PFAID : type of output for LEVEL2, root/hbook [default 14 (COG4) ] "); |
| 284 |
|
printf( "\n -N PATH : load parameter of type N=1,2... from PATH [default (from DB) ] "); |
| 285 |
|
printf( "\n --verbose, -v : verbose mode "); |
| 286 |
|
printf( "\n --debug, -d : debug mode "); |
| 287 |
|
printf( "\n --warning, -w : warning mode "); |
| 288 |
|
// printf( "\n --standalone, -s : standalone mode (without RunInfo) ... but it might not work \n"); |
| 289 |
|
// printf( "\n -host HOST : Name for the host [default mysql://localhost/pamelaprod ]"); |
| 290 |
|
// printf( "\n -user USER : Username for the DB [default anonymous] "); |
| 291 |
|
// printf( "\n -psw PSW : Password for the DB [default (none)]\n \n \n"); |
| 292 |
|
|
| 293 |
|
|
| 294 |
|
} |