| 71 |
// |
// |
| 72 |
GL_S4_CALIB *glS4calib = new GL_S4_CALIB(); |
GL_S4_CALIB *glS4calib = new GL_S4_CALIB(); |
| 73 |
// |
// |
| 74 |
if ( !dbc->IsConnected() ) throw -504; |
// if ( !dbc->IsConnected() ) throw -504; |
| 75 |
Int_t s4sig = glS4calib->Query_GL_S4_CALIB(atime, dbc); |
Int_t s4sig = glS4calib->Query_GL_S4_CALIB(atime, dbc); |
| 76 |
if ( s4sig != -57 && s4sig < 0 ){ |
if ( s4sig != -57 && s4sig < 0 ){ |
| 77 |
parametri->AddAt(0.,0); |
parametri->AddAt(0.,0); |
| 81 |
if ( s4sig < 0 ) throw s4sig; |
if ( s4sig < 0 ) throw s4sig; |
| 82 |
// |
// |
| 83 |
GL_ROOT *glroot = new GL_ROOT(); |
GL_ROOT *glroot = new GL_ROOT(); |
| 84 |
if ( !dbc->IsConnected() ) throw -504; |
// if ( !dbc->IsConnected() ) throw -504; |
| 85 |
glroot->Query_GL_ROOT(glS4calib->ID_ROOT_L0,dbc); |
glroot->Query_GL_ROOT(glS4calib->ID_ROOT_L0,dbc); |
| 86 |
// |
// |
| 87 |
stringstream ftmpname; |
stringstream ftmpname; |
| 478 |
// |
// |
| 479 |
// prepare the timesync for the db |
// prepare the timesync for the db |
| 480 |
// |
// |
| 481 |
if ( !dbc->IsConnected() ) throw -504; |
// if ( !dbc->IsConnected() ) throw -504; |
| 482 |
dbtime = new GL_TIMESYNC(runinfo->ID_ROOT_L0,"ID",dbc); |
dbtime = new GL_TIMESYNC(runinfo->ID_ROOT_L0,"ID",dbc); |
| 483 |
// |
// |
| 484 |
// 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. |
| 485 |
// |
// |
| 486 |
if ( !dbc->IsConnected() ) throw -504; |
// if ( !dbc->IsConnected() ) throw -504; |
| 487 |
glroot->Query_GL_ROOT(runinfo->ID_ROOT_L0,dbc); |
glroot->Query_GL_ROOT(runinfo->ID_ROOT_L0,dbc); |
| 488 |
// |
// |
| 489 |
ftmpname.str(""); |
ftmpname.str(""); |
| 568 |
// |
// |
| 569 |
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"); |
| 570 |
// |
// |
| 571 |
|
if ( dbc ){ |
| 572 |
|
dbc->Close(); |
| 573 |
|
// delete dbc; |
| 574 |
|
}; |
| 575 |
|
// |
| 576 |
for ( re = runinfo->EV_FROM; re < (runinfo->EV_FROM+runinfo->NEVENTS); re++){ |
for ( re = runinfo->EV_FROM; re < (runinfo->EV_FROM+runinfo->NEVENTS); re++){ |
| 577 |
// |
// |
| 578 |
if ( procev%1000 == 0 && procev > 0 && verbose ) printf(" %iK \n",procev/1000); |
if ( procev%1000 == 0 && procev > 0 && verbose ) printf(" %iK \n",procev/1000); |