/[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.9 by mocchiut, Thu Nov 9 17:05:48 2006 UTC revision 1.10 by mocchiut, Fri Nov 17 10:08:11 2006 UTC
# Line 400  int ToFCore(UInt_t run, TFile *file, TSQ Line 400  int ToFCore(UInt_t run, TFile *file, TSQ
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("");
# Line 483  int ToFCore(UInt_t run, TFile *file, TSQ Line 485  int ToFCore(UInt_t run, TFile *file, TSQ
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        // ----------------------------        // ----------------------------
# Line 496  int ToFCore(UInt_t run, TFile *file, TSQ Line 499  int ToFCore(UInt_t run, TFile *file, TSQ
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;

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.23