| 12 |
|
|
| 13 |
idrun = 0; |
idrun = 0; |
| 14 |
dbg_mode.SetNone(); |
dbg_mode.SetNone(); |
| 15 |
get1 = 0; |
get1 = 0; |
| 16 |
geth = 0; |
full1 = 0; |
| 17 |
get2 = 1; |
geth = 0; |
| 18 |
|
get2 = 1; |
| 19 |
standalone = false; |
standalone = false; |
| 20 |
frame2 = "root"; |
frame2 = "root"; |
| 21 |
frame1 = "root"; |
frame1 = "root"; |
| 48 |
// DEBUG = false; |
// DEBUG = false; |
| 49 |
// VERBOSE = false; |
// VERBOSE = false; |
| 50 |
dbg_mode.SetWarning(); |
dbg_mode.SetWarning(); |
| 51 |
get1 = 0; |
get1 = 0; |
| 52 |
|
full1 = 0; |
| 53 |
get2 = 1; |
get2 = 1; |
| 54 |
geth = 0; |
geth = 0; |
| 55 |
standalone = false; |
standalone = false; |
| 96 |
} |
} |
| 97 |
// -----------------------------------------------------// |
// -----------------------------------------------------// |
| 98 |
if (!strcmp(vcustom[i], "--get1") || !strcmp(vcustom[i], "--get-level1") ){ |
if (!strcmp(vcustom[i], "--get1") || !strcmp(vcustom[i], "--get-level1") ){ |
| 99 |
get1 = 1; |
get1 = 1; |
| 100 |
|
full1 = 0; |
| 101 |
|
continue; |
| 102 |
|
} |
| 103 |
|
// -----------------------------------------------------// |
| 104 |
|
if (!strcmp(vcustom[i], "--get1-full") || !strcmp(vcustom[i], "--get-level1-full") ){ |
| 105 |
|
get1 = 1; |
| 106 |
|
full1 = 1; |
| 107 |
continue; |
continue; |
| 108 |
} |
} |
| 109 |
// -----------------------------------------------------// |
// -----------------------------------------------------// |
| 168 |
else if (!frameh.CompareTo("hbook", TString::kIgnoreCase)) ifrooth =false; |
else if (!frameh.CompareTo("hbook", TString::kIgnoreCase)) ifrooth =false; |
| 169 |
else throw -201; |
else throw -201; |
| 170 |
|
|
| 171 |
|
if(get1 && !get2)full1=true; |
| 172 |
|
|
| 173 |
ostatus = 0; |
ostatus = 0; |
| 174 |
|
|
| 175 |
}; |
}; |
| 182 |
void TrkProcess::ProcessEvent(TrkLevel0 *l0_event){ |
void TrkProcess::ProcessEvent(TrkLevel0 *l0_event){ |
| 183 |
|
|
| 184 |
// fill Level0 common from Level0 object |
// fill Level0 common from Level0 object |
| 185 |
l0_event->GetCommonVar(&level0event_); |
// l0_event->GetCommonVar(&level0event_); |
| 186 |
|
l0_event->GetLevel0Struct(); |
| 187 |
// process the event Level0->Level1->Level2 |
// process the event Level0->Level1->Level2 |
| 188 |
int F77err = 0; |
int F77err = 0; |
| 189 |
// |
// |
| 190 |
reductionflight_(&F77err); |
reductionflight_(&F77err); |
| 191 |
if(F77err < 0)throw F77err; |
if(F77err < 0)throw F77err; |
|
// else if(F77err > 0 && WarningMode())cout<<" WARNING ("<<F77err<<") - TrkCore - Level1 reduction (CN computation failure, ...)"<<endl; |
|
| 192 |
// |
// |
| 193 |
if(get2) analysisflight_(); |
// int pfa=0; //<<< ETA |
| 194 |
// if(F77err < 0)throw F77err; |
int pfa=14;//<<< COG4 |
| 195 |
// else if(F77err > 0 && WarningMode())cout<<" WARNING ("<<F77err<<") - TrkCore - @ Level2 reduction "<<endl; |
if(get2) analysisflight_(&pfa); |
| 196 |
// |
// |
| 197 |
ostatus = F77err; |
ostatus = F77err; |
| 198 |
|
|
| 203 |
cout <<endl<< "Tracker process parameters: "<< endl; |
cout <<endl<< "Tracker process parameters: "<< endl; |
| 204 |
cout << " idRun " << idrun << endl; |
cout << " idRun " << idrun << endl; |
| 205 |
cout << " get level1 " << get1 << endl; |
cout << " get level1 " << get1 << endl; |
| 206 |
|
cout << " full level1 " << full1 << endl; |
| 207 |
cout << " get level2 " << get2 << endl; |
cout << " get level2 " << get2 << endl; |
| 208 |
cout << " get hough " << geth << endl; |
cout << " get hough " << geth << endl; |
| 209 |
cout << " frame1 " << frame1 << endl; |
cout << " frame1 " << frame1 << endl; |