/[PAMELA software]/DarthVader/ToFLevel2/src/ToFCore.cpp
ViewVC logotype

Diff of /DarthVader/ToFLevel2/src/ToFCore.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.26 by mocchiut, Fri Sep 7 21:14:20 2007 UTC revision 1.27 by mocchiut, Sun Sep 9 18:57:33 2007 UTC
# Line 64  using namespace std; Line 64  using namespace std;
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.
# Line 410  int ToFCore(UInt_t run, TFile *file, TSQ Line 410  int ToFCore(UInt_t run, TFile *file, TSQ
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.
# Line 536  int ToFCore(UInt_t run, TFile *file, TSQ Line 540  int ToFCore(UInt_t run, TFile *file, TSQ
540      //      //
541      if ( dbc ){      if ( dbc ){
542        dbc->Close();        dbc->Close();
543        //      delete dbc;        delete dbc;
544      };      };
545      //      //
546      jumped = 0;      jumped = 0;

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27

  ViewVC Help
Powered by ViewVC 1.1.23