11 |
TrkProcess::TrkProcess(){ |
TrkProcess::TrkProcess(){ |
12 |
|
|
13 |
idrun = 0; |
idrun = 0; |
14 |
dbg_mode.SetNone(); |
// dbg_mode.SetNone(); |
15 |
get1 = 0; |
get1 = 0; |
16 |
full1 = 0; |
full1 = 0; |
17 |
geth = 0; |
geth = 0; |
36 |
|
|
37 |
ostatus = 0; |
ostatus = 0; |
38 |
|
|
39 |
|
npar=0; |
40 |
|
|
41 |
TrkParams::SetTrackingMode(); |
TrkParams::SetTrackingMode(); |
42 |
TrkParams::SetPrecisionFactor(); |
TrkParams::SetPrecisionFactor(); |
43 |
TrkParams::SetStepMin(); |
TrkParams::SetStepMin(); |
54 |
idrun = run; |
idrun = run; |
55 |
// DEBUG = false; |
// DEBUG = false; |
56 |
// VERBOSE = false; |
// VERBOSE = false; |
57 |
dbg_mode.SetWarning(); |
// dbg_mode.SetWarning(); |
58 |
get1 = 0; |
get1 = 0; |
59 |
full1 = 0; |
full1 = 0; |
60 |
get2 = 1; |
get2 = 1; |
86 |
else if (!frameh.CompareTo("hbook", TString::kIgnoreCase)) ifrooth =false; |
else if (!frameh.CompareTo("hbook", TString::kIgnoreCase)) ifrooth =false; |
87 |
|
|
88 |
ostatus = 0; |
ostatus = 0; |
89 |
|
|
90 |
|
npar=0; |
91 |
|
|
92 |
TrkParams::SetTrackingMode(); |
TrkParams::SetTrackingMode(); |
93 |
TrkParams::SetPrecisionFactor(); |
TrkParams::SetPrecisionFactor(); |
157 |
continue; |
continue; |
158 |
} |
} |
159 |
// -----------------------------------------------------// |
// -----------------------------------------------------// |
160 |
|
if ( atoi(vcustom[i]) < 0){ |
161 |
|
if (++i >= ncustom)throw -3; |
162 |
|
partype[npar]=-1*atoi(vcustom[i-1]); |
163 |
|
parpath[npar]=vcustom[i]; |
164 |
|
npar++; |
165 |
|
continue; |
166 |
|
} |
167 |
|
// -----------------------------------------------------// |
168 |
if (!strcmp(vcustom[i], "--verbose") || !strcmp(vcustom[i], "-v")){ |
if (!strcmp(vcustom[i], "--verbose") || !strcmp(vcustom[i], "-v")){ |
169 |
// VERBOSE = true; |
TrkParams::SetVerboseMode(); |
|
this->SetVerboseMode(); |
|
170 |
continue; |
continue; |
171 |
} |
} |
172 |
// -----------------------------------------------------// |
// -----------------------------------------------------// |
173 |
else if (!strcmp(vcustom[i], "--debug") || !strcmp(vcustom[i], "-d")){ |
else if (!strcmp(vcustom[i], "--debug") || !strcmp(vcustom[i], "-d")){ |
174 |
// DEBUG = true; |
TrkParams::SetDebugMode(); |
|
this->SetDebugMode(); |
|
175 |
continue; |
continue; |
176 |
}; |
}; |
177 |
} |
} |
202 |
void TrkProcess::ProcessEvent(TrkLevel0 *l0_event){ |
void TrkProcess::ProcessEvent(TrkLevel0 *l0_event){ |
203 |
|
|
204 |
// fill Level0 common from Level0 object |
// fill Level0 common from Level0 object |
|
// l0_event->GetCommonVar(&level0event_); |
|
205 |
l0_event->GetLevel0Struct(); |
l0_event->GetLevel0Struct(); |
206 |
// process the event Level0->Level1->Level2 |
// process the event Level0->Level1->Level2 |
207 |
int F77err = 0; |
int F77err = 0; |
209 |
reductionflight_(&F77err); |
reductionflight_(&F77err); |
210 |
if(F77err < 0)throw F77err; |
if(F77err < 0)throw F77err; |
211 |
// |
// |
|
// int pfa=0; //<<< ETA |
|
|
// int pfa=14;//<<< COG4 |
|
|
// if(get2) analysisflight_(&pfa); |
|
212 |
if(get2) analysisflight_(); |
if(get2) analysisflight_(); |
213 |
// |
// |
214 |
ostatus = F77err; |
ostatus = F77err; |
216 |
}; |
}; |
217 |
|
|
218 |
void TrkProcess::Dump(){ |
void TrkProcess::Dump(){ |
219 |
|
cout << endl; |
220 |
cout <<endl<< "Tracker process parameters: "<< endl; |
cout << " |-------------------------------------| "<<endl; |
221 |
cout << " idRun " << idrun << endl; |
cout << " tracker-processing input-parameters "<< endl; |
222 |
cout << " get level1 " << get1 << endl; |
cout << " |-------------------------------------| "<<endl; |
223 |
cout << " full level1 " << full1 << endl; |
cout << " idRun " << idrun << endl; |
224 |
cout << " get level2 " << get2 << endl; |
cout << " get level1 " << get1 << endl; |
225 |
cout << " get hough " << geth << endl; |
cout << " full level1 " << full1 << endl; |
226 |
cout << " frame1 " << frame1 << endl; |
cout << " get level2 " << get2 << endl; |
227 |
cout << " frame2 " << frame2 << endl; |
cout << " get hough " << geth << endl; |
228 |
cout << " frameh " << frame2 << endl; |
// cout << " frame1 " << frame1 << endl; |
229 |
cout << " file1 " << file1 << endl; |
// cout << " frame2 " << frame2 << endl; |
230 |
cout << " file2 " << file2 << endl; |
// cout << " frameh " << frame2 << endl; |
231 |
cout << " outdir " << outdir << endl; |
// cout << " file1 " << file1 << endl; |
232 |
cout << " process folder " << pfolder << endl; |
cout << " output file " << file2 << endl; |
233 |
cout << " standalone mode " << standalone << endl; |
// cout << " outdir " << outdir << endl; |
234 |
cout << " debug mode warning " << dbg_mode.warning << endl; |
// cout << " process folder " << pfolder << endl; |
235 |
cout << " debug mode verbose " << dbg_mode.verbose << endl; |
// cout << " standalone mode " << standalone << endl; |
236 |
cout << " debug mode debug " << dbg_mode.debug << endl << endl; |
for(int i=0; i<npar; i++) |
237 |
|
cout << " force loading parameters of type "<<partype[i]<<" from <--- "<<parpath[i]<<endl; |
238 |
|
cout<<endl; |
239 |
|
|
240 |
|
// cout << " debug mode warning " << dbg_mode.warning << endl; |
241 |
|
// cout << " debug mode verbose " << dbg_mode.verbose << endl; |
242 |
|
// cout << " debug mode debug " << dbg_mode.debug << endl << endl; |
243 |
|
|
244 |
} |
} |