400 |
// |
// |
401 |
// prepare the timesync for the db |
// prepare the timesync for the db |
402 |
// |
// |
403 |
|
if ( !dbc->IsConnected() ) throw -314; |
404 |
dbtime = new GL_TIMESYNC(runinfo->ID_ROOT_L0,"ID",dbc); |
dbtime = new GL_TIMESYNC(runinfo->ID_ROOT_L0,"ID",dbc); |
405 |
// |
// |
406 |
// 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. |
407 |
// |
// |
408 |
|
if ( !dbc->IsConnected() ) throw -314; |
409 |
glroot->Query_GL_ROOT(runinfo->ID_ROOT_L0,dbc); |
glroot->Query_GL_ROOT(runinfo->ID_ROOT_L0,dbc); |
410 |
// |
// |
411 |
ftmpname.str(""); |
ftmpname.str(""); |
485 |
if ( trkpar1 || ( tttrkpar1 != 0 && tttrkpar1 < runinfo->RUNHEADER_TIME ) ){ |
if ( trkpar1 || ( tttrkpar1 != 0 && tttrkpar1 < runinfo->RUNHEADER_TIME ) ){ |
486 |
trkpar1 = false; |
trkpar1 = false; |
487 |
// read from DB infos about Magnetic filed maps |
// read from DB infos about Magnetic filed maps |
488 |
|
if ( !dbc->IsConnected() ) throw -314; |
489 |
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 |
490 |
tttrkpar1 = glparam->TO_TIME; |
tttrkpar1 = glparam->TO_TIME; |
491 |
// ---------------------------- |
// ---------------------------- |
499 |
if ( tofpar1 || ( tttofpar1 != 0 && tttofpar1 < runinfo->RUNHEADER_TIME ) ){ |
if ( tofpar1 || ( tttofpar1 != 0 && tttofpar1 < runinfo->RUNHEADER_TIME ) ){ |
500 |
tofpar1 = false; |
tofpar1 = false; |
501 |
// |
// |
502 |
|
if ( !dbc->IsConnected() ) throw -314; |
503 |
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 |
504 |
if ( error<0 ) { |
if ( error<0 ) { |
505 |
code = error; |
code = error; |