64 |
// CORE ROUTINE |
// CORE ROUTINE |
65 |
// |
// |
66 |
// |
// |
67 |
int ToFCore(UInt_t run, TFile *file, TSQLServer *dbc, Int_t ToFargc, char *ToFargv[]){ |
int ToFCore(UInt_t run, TFile *file, GL_TABLES *glt, Int_t ToFargc, char *ToFargv[]){ |
68 |
// |
// |
69 |
// |
// |
70 |
// Set these to true to have a very verbose output. |
// Set these to true to have a very verbose output. |
410 |
// |
// |
411 |
// prepare the timesync for the db |
// prepare the timesync for the db |
412 |
// |
// |
413 |
// if ( !dbc->IsConnected() ) throw -314; |
TString host = glt->CGetHost(); |
414 |
|
TString user = glt->CGetUser(); |
415 |
|
TString psw = glt->CGetPsw(); |
416 |
|
TSQLServer *dbc = TSQLServer::Connect(host.Data(),user.Data(),psw.Data()); |
417 |
|
if ( !dbc->IsConnected() ) throw -314; |
418 |
dbtime = new GL_TIMESYNC(runinfo->ID_ROOT_L0,"ID",dbc); |
dbtime = new GL_TIMESYNC(runinfo->ID_ROOT_L0,"ID",dbc); |
419 |
// |
// |
420 |
// 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. |
540 |
// |
// |
541 |
if ( dbc ){ |
if ( dbc ){ |
542 |
dbc->Close(); |
dbc->Close(); |
543 |
// delete dbc; |
delete dbc; |
544 |
}; |
}; |
545 |
// |
// |
546 |
jumped = 0; |
jumped = 0; |