145 |
dbc = 0; |
dbc = 0; |
146 |
|
|
147 |
prevshift = 0; |
prevshift = 0; |
148 |
|
maxshift = 10; //EMILIANO |
149 |
|
|
150 |
run_tree = NULL; |
run_tree = NULL; |
151 |
run_tree_clone = NULL; |
run_tree_clone = NULL; |
3296 |
//=================================== |
//=================================== |
3297 |
if(!dbc || (dbc && !dbc->IsConnected())){ |
if(!dbc || (dbc && !dbc->IsConnected())){ |
3298 |
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"<<endl; |
cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"<<endl; |
3299 |
cout<<"Connecting to DB"<<endl; |
cout<<"Re-connecting to DB"<<endl; |
3300 |
cout<<"HOST "<<host<<endl; |
cout<<"HOST "<<host<<endl; |
3301 |
cout<<"USER "<<user<<endl; |
cout<<"USER "<<user<<endl; |
3302 |
cout<<"PSW "<<psw<<endl; |
cout<<"PSW "<<psw<<endl; |
3355 |
cout << "PamLevel2::GetYodaTree() --- level0 TOF not implemented "<<endl; |
cout << "PamLevel2::GetYodaTree() --- level0 TOF not implemented "<<endl; |
3356 |
} |
} |
3357 |
|
|
3358 |
|
dbc->Close(); |
3359 |
|
|
3360 |
|
|
3361 |
}; |
}; |
3362 |
|
|
3363 |
if(!dbc || (dbc && !dbc->IsConnected())){ |
// if(!dbc || (dbc && !dbc->IsConnected())){ |
3364 |
cout << " TTree* PamLevel2::GetYodaTree( ) -- no DB connected... hai fatto qualche cazzata "<<endl; |
// cout << " TTree* PamLevel2::GetYodaTree( ) -- no DB connected... hai fatto qualche cazzata "<<endl; |
3365 |
} |
// } |
3366 |
|
|
3367 |
if ( TRK0 ){ |
if ( TRK0 ){ |
3368 |
TrkParams::Load(6); |
TrkParams::Load(6); |
3376 |
}; |
}; |
3377 |
} |
} |
3378 |
|
|
3379 |
|
|
3380 |
// cout << l0_tree << endl; |
// cout << l0_tree << endl; |
|
|
|
3381 |
return l0_tree; |
return l0_tree; |
3382 |
|
|
3383 |
} |
} |
3438 |
Int_t answer = 0; |
Int_t answer = 0; |
3439 |
Int_t shift =0; |
Int_t shift =0; |
3440 |
// printf(" siamo qui %i %i \n",shift,prevshift); |
// printf(" siamo qui %i %i \n",shift,prevshift); |
3441 |
Int_t maxshift = 10; |
// Int_t maxshift = 50; // EMILIANO |
3442 |
do{ |
do{ |
3443 |
if(shift>0){ |
if(shift>0){ |
3444 |
cout << " PKTNUM L2 --- "<< pktn << " --- L0 --- "<< GetEventHeader()->GetPscuHeader()->GetCounter()<<endl; |
cout << " PKTNUM L2 --- "<< pktn << " --- L0 --- "<< GetEventHeader()->GetPscuHeader()->GetCounter()<<endl; |