410 |
// |
// |
411 |
// prepare the timesync for the db |
// prepare the timesync for the db |
412 |
// |
// |
413 |
if ( !dbc->IsConnected() ) throw -314; |
// if ( !dbc->IsConnected() ) throw -314; |
414 |
dbtime = new GL_TIMESYNC(runinfo->ID_ROOT_L0,"ID",dbc); |
dbtime = new GL_TIMESYNC(runinfo->ID_ROOT_L0,"ID",dbc); |
415 |
// |
// |
416 |
// Search in the DB the path and name of the LEVEL0 file to be processed. |
// Search in the DB the path and name of the LEVEL0 file to be processed. |
417 |
// |
// |
418 |
if ( !dbc->IsConnected() ) throw -314; |
// if ( !dbc->IsConnected() ) throw -314; |
419 |
glroot->Query_GL_ROOT(runinfo->ID_ROOT_L0,dbc); |
glroot->Query_GL_ROOT(runinfo->ID_ROOT_L0,dbc); |
420 |
// |
// |
421 |
ftmpname.str(""); |
ftmpname.str(""); |
495 |
if ( trkpar1 || ( tttrkpar1 != 0 && tttrkpar1 < runinfo->RUNHEADER_TIME ) ){ |
if ( trkpar1 || ( tttrkpar1 != 0 && tttrkpar1 < runinfo->RUNHEADER_TIME ) ){ |
496 |
trkpar1 = false; |
trkpar1 = false; |
497 |
// read from DB infos about Magnetic filed maps |
// read from DB infos about Magnetic filed maps |
498 |
if ( !dbc->IsConnected() ) throw -314; |
// if ( !dbc->IsConnected() ) throw -314; |
499 |
glparam->Query_GL_PARAM(runinfo->RUNHEADER_TIME,1,dbc); // parameters stored in DB in GL_PRAM table |
glparam->Query_GL_PARAM(runinfo->RUNHEADER_TIME,1,dbc); // parameters stored in DB in GL_PRAM table |
500 |
tttrkpar1 = glparam->TO_TIME; |
tttrkpar1 = glparam->TO_TIME; |
501 |
// ---------------------------- |
// ---------------------------- |
513 |
if ( tofpar1 || ( tttofpar1 != 0 && tttofpar1 < runinfo->RUNHEADER_TIME ) ){ |
if ( tofpar1 || ( tttofpar1 != 0 && tttofpar1 < runinfo->RUNHEADER_TIME ) ){ |
514 |
tofpar1 = false; |
tofpar1 = false; |
515 |
// |
// |
516 |
if ( !dbc->IsConnected() ) throw -314; |
// if ( !dbc->IsConnected() ) throw -314; |
517 |
Int_t error=glparam->Query_GL_PARAM(runinfo->RUNHEADER_TIME,201,dbc); // parameters stored in DB in GL_PRAM table |
Int_t error=glparam->Query_GL_PARAM(runinfo->RUNHEADER_TIME,201,dbc); // parameters stored in DB in GL_PRAM table |
518 |
if ( error<0 ) { |
if ( error<0 ) { |
519 |
code = error; |
code = error; |
534 |
// |
// |
535 |
if ( verbose ) printf("\n Ready to start! \n\n Processed events: \n\n"); |
if ( verbose ) printf("\n Ready to start! \n\n Processed events: \n\n"); |
536 |
// |
// |
537 |
|
if ( dbc ){ |
538 |
|
dbc->Close(); |
539 |
|
// delete dbc; |
540 |
|
}; |
541 |
|
// |
542 |
jumped = 0; |
jumped = 0; |
543 |
// |
// |
544 |
for ( re = runinfo->EV_FROM; re < (runinfo->EV_FROM+runinfo->NEVENTS); re++){ |
for ( re = runinfo->EV_FROM; re < (runinfo->EV_FROM+runinfo->NEVENTS); re++){ |