/[PAMELA software]/DarthVader/AnticounterLevel2/src/AcCore.cpp
ViewVC logotype

Diff of /DarthVader/AnticounterLevel2/src/AcCore.cpp

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

revision 1.17 by mocchiut, Sun Sep 9 18:57:23 2007 UTC revision 1.18 by mocchiut, Wed Oct 10 16:01:28 2007 UTC
# Line 388  int AcCore(UInt_t run, TFile *file, GL_T Line 388  int AcCore(UInt_t run, TFile *file, GL_T
388      TString psw = glt->CGetPsw();      TString psw = glt->CGetPsw();
389      TSQLServer *dbc = TSQLServer::Connect(host.Data(),user.Data(),psw.Data());        TSQLServer *dbc = TSQLServer::Connect(host.Data(),user.Data(),psw.Data());  
390      if ( !dbc->IsConnected() ) throw -705;      if ( !dbc->IsConnected() ) throw -705;
391        stringstream myquery;
392        myquery.str("");
393        myquery << "SET time_zone='+0:00'";
394        dbc->Query(myquery.str().c_str());
395    
396      dbtime = new GL_TIMESYNC(runinfo->ID_ROOT_L0,"ID",dbc);      dbtime = new GL_TIMESYNC(runinfo->ID_ROOT_L0,"ID",dbc);
397      //      //
398      // 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 482  int AcCore(UInt_t run, TFile *file, GL_T Line 487  int AcCore(UInt_t run, TFile *file, GL_T
487        // paranoid check        // paranoid check
488        //        //
489        if ( atime > runinfo->RUNTRAILER_TIME || atime < runinfo->RUNHEADER_TIME  ) {        if ( atime > runinfo->RUNTRAILER_TIME || atime < runinfo->RUNHEADER_TIME  ) {
490          if ( verbose ) printf(" ANTICOUNTER - WARNING: event at time outside the run time window, skipping it\n");          if ( verbose ) printf(" ANTICOUNTER - WARNING: event at time outside the run time window, skipping it atime %u HE %u TR %u \n",atime,runinfo->RUNTRAILER_TIME,runinfo->RUNHEADER_TIME);
491            if ( verbose ) printf(" %u %u %u %u \n",dbtime->GetTimesync(),dbtime->GetObt0(),dbtime->GetT0(),dbtime->GetType());
492          goto jumpev;          goto jumpev;
493        };        };
494        //        //

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

  ViewVC Help
Powered by ViewVC 1.1.23