/[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.25 by mocchiut, Thu Sep 6 12:49:35 2007 UTC revision 1.26 by mocchiut, Fri Sep 7 21:14:20 2007 UTC
# 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;      //    if ( !dbc->IsConnected() ) throw -314;
414      dbtime = new GL_TIMESYNC(runinfo->ID_ROOT_L0,"ID",dbc);      dbtime = new GL_TIMESYNC(runinfo->ID_ROOT_L0,"ID",dbc);
415      //      //
416      // 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.
417      //      //
418      if ( !dbc->IsConnected() ) throw -314;      //    if ( !dbc->IsConnected() ) throw -314;
419      glroot->Query_GL_ROOT(runinfo->ID_ROOT_L0,dbc);      glroot->Query_GL_ROOT(runinfo->ID_ROOT_L0,dbc);
420      //      //
421      ftmpname.str("");      ftmpname.str("");
# Line 495  int ToFCore(UInt_t run, TFile *file, TSQ Line 495  int ToFCore(UInt_t run, TFile *file, TSQ
495      if ( trkpar1 || ( tttrkpar1 != 0 && tttrkpar1 < runinfo->RUNHEADER_TIME ) ){      if ( trkpar1 || ( tttrkpar1 != 0 && tttrkpar1 < runinfo->RUNHEADER_TIME ) ){
496        trkpar1 = false;        trkpar1 = false;
497        // read from DB infos about Magnetic filed maps        // read from DB infos about Magnetic filed maps
498        if ( !dbc->IsConnected() ) throw -314;        //      if ( !dbc->IsConnected() ) throw -314;
499        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
500        tttrkpar1 = glparam->TO_TIME;          tttrkpar1 = glparam->TO_TIME;  
501        // ----------------------------        // ----------------------------
# Line 513  int ToFCore(UInt_t run, TFile *file, TSQ Line 513  int ToFCore(UInt_t run, TFile *file, TSQ
513      if ( tofpar1 || ( tttofpar1 != 0 && tttofpar1 < runinfo->RUNHEADER_TIME ) ){      if ( tofpar1 || ( tttofpar1 != 0 && tttofpar1 < runinfo->RUNHEADER_TIME ) ){
514        tofpar1 = false;        tofpar1 = false;
515        //        //
516        if ( !dbc->IsConnected() ) throw -314;        //      if ( !dbc->IsConnected() ) throw -314;
517        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
518        if ( error<0 ) {        if ( error<0 ) {
519          code = error;          code = error;
# Line 534  int ToFCore(UInt_t run, TFile *file, TSQ Line 534  int ToFCore(UInt_t run, TFile *file, TSQ
534      //      //
535      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");
536      //      //
537        if ( dbc ){
538          dbc->Close();
539          //      delete dbc;
540        };
541        //
542      jumped = 0;      jumped = 0;
543      //      //
544      for ( re = runinfo->EV_FROM; re < (runinfo->EV_FROM+runinfo->NEVENTS); re++){      for ( re = runinfo->EV_FROM; re < (runinfo->EV_FROM+runinfo->NEVENTS); re++){

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

  ViewVC Help
Powered by ViewVC 1.1.23