| 36 |
|
|
| 37 |
ostatus = 0; |
ostatus = 0; |
| 38 |
|
|
| 39 |
npar=0; |
npar = 0; |
| 40 |
|
|
| 41 |
|
nskip = 0; |
| 42 |
|
|
| 43 |
// TrkParams::SetTrackingMode(); |
// TrkParams::SetTrackingMode(); |
| 44 |
// TrkParams::SetPrecisionFactor(); |
// TrkParams::SetPrecisionFactor(); |
| 92 |
|
|
| 93 |
npar=0; |
npar=0; |
| 94 |
|
|
| 95 |
|
nskip = 0; |
| 96 |
|
|
| 97 |
// TrkParams::SetTrackingMode(); |
// TrkParams::SetTrackingMode(); |
| 98 |
// TrkParams::SetPrecisionFactor(); |
// TrkParams::SetPrecisionFactor(); |
| 99 |
// TrkParams::SetStepMin(); |
// TrkParams::SetStepMin(); |
| 108 |
|
|
| 109 |
for (int i=0; i< ncustom; i++){ |
for (int i=0; i< ncustom; i++){ |
| 110 |
|
|
| 111 |
|
cout << "Handling Parameter " << i+1 << " of " << ncustom << ": " << vcustom[i] << endl; |
| 112 |
|
|
| 113 |
|
// -----------------------------------------------------// |
| 114 |
|
if (!strcmp(vcustom[i], "--simu")){ |
| 115 |
|
cout << "Setting DarthVader to use Simulated Data\n"; |
| 116 |
|
TrkParams::SetSimuFlag(kTRUE); |
| 117 |
|
continue; |
| 118 |
|
} |
| 119 |
// -----------------------------------------------------// |
// -----------------------------------------------------// |
| 120 |
if (!strcmp(vcustom[i], "-processFolder")){ |
if (!strcmp(vcustom[i], "-processFolder")){ |
| 121 |
if (++i >= ncustom) throw -3; |
if (++i >= ncustom) throw -3; |
| 177 |
continue; |
continue; |
| 178 |
} |
} |
| 179 |
// -----------------------------------------------------// |
// -----------------------------------------------------// |
| 180 |
|
if (!strcmp(vcustom[i], "-skip")){ |
| 181 |
|
if (++i >= ncustom)throw -3; |
| 182 |
|
nskip = atoi(vcustom[i]); |
| 183 |
|
continue; |
| 184 |
|
} |
| 185 |
|
// -----------------------------------------------------// |
| 186 |
if ( atoi(vcustom[i]) < 0){ |
if ( atoi(vcustom[i]) < 0){ |
| 187 |
if (++i >= ncustom)throw -3; |
if (++i >= ncustom)throw -3; |
| 188 |
partype[npar]=-1*atoi(vcustom[i-1]); |
partype[npar]=-1*atoi(vcustom[i-1]); |
| 259 |
cout << " tracker-processing input-parameters "<< endl; |
cout << " tracker-processing input-parameters "<< endl; |
| 260 |
cout << " |-------------------------------------| "<<endl; |
cout << " |-------------------------------------| "<<endl; |
| 261 |
cout << " idRun " << idrun << endl; |
cout << " idRun " << idrun << endl; |
| 262 |
|
cout << " (skip " << nskip <<" events)"<< endl; |
| 263 |
cout << " get level1 " << get1 << endl; |
cout << " get level1 " << get1 << endl; |
| 264 |
cout << " full level1 " << full1 << endl; |
cout << " full level1 " << full1 << endl; |
| 265 |
cout << " get level2 " << get2 << endl; |
cout << " get level2 " << get2 << endl; |
| 304 |
printf( "\n --verbose, -v : verbose mode "); |
printf( "\n --verbose, -v : verbose mode "); |
| 305 |
printf( "\n --debug, -d : debug mode "); |
printf( "\n --debug, -d : debug mode "); |
| 306 |
printf( "\n --warning, -w : warning mode "); |
printf( "\n --warning, -w : warning mode "); |
| 307 |
|
printf( "\n -skip NEV : skip first NEV events from each run "); |
| 308 |
// printf( "\n --standalone, -s : standalone mode (without RunInfo) ... but it might not work \n"); |
// printf( "\n --standalone, -s : standalone mode (without RunInfo) ... but it might not work \n"); |
| 309 |
// printf( "\n -host HOST : Name for the host [default mysql://localhost/pamelaprod ]"); |
// printf( "\n -host HOST : Name for the host [default mysql://localhost/pamelaprod ]"); |
| 310 |
// printf( "\n -user USER : Username for the DB [default anonymous] "); |
// printf( "\n -user USER : Username for the DB [default anonymous] "); |