/[PAMELA software]/chewbacca/YodaProfiler/src/R2-D2.cpp
ViewVC logotype

Diff of /chewbacca/YodaProfiler/src/R2-D2.cpp

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

revision 1.1 by mocchiut, Tue Sep 23 07:20:33 2008 UTC revision 1.5 by mocchiut, Tue Oct 14 13:19:34 2014 UTC
# Line 297  int main(int numinp, char *inps[]){ Line 297  int main(int numinp, char *inps[]){
297    };        };    
298    //    //
299    myquery.str("");    myquery.str("");
300    myquery << "SET time_zone='+0:00'";    myquery << "SET time_zone='+0:00';";
301    dbc->Query(myquery.str().c_str());    delete dbc->Query(myquery.str().c_str());
302      delete dbc->Query("SET sql_mode = 'NO_UNSIGNED_SUBTRACTION';");
303    //    //
304    GL_ROOT *glroot = new GL_ROOT();    GL_ROOT *glroot = new GL_ROOT();
305    GL_RUN *glrun = new GL_RUN();    GL_RUN *glrun = new GL_RUN();
# Line 619  int main(int numinp, char *inps[]){ Line 620  int main(int numinp, char *inps[]){
620    //    //
621    if ( strcmp(l2filename.Data(),"") ){    if ( strcmp(l2filename.Data(),"") ){
622      // ----------------      // ----------------
623      Bool_t found = false;      //    Bool_t found = false;
624      Int_t ID = 0;      Int_t ID = 0;
625      Int_t ID_RAW = 0;      //    Int_t ID_RAW = 0;
626      //          //    
627      const char *rawpath = "";      const char *rawpath = "";
628      const char *rawname = "";      const char *rawname = "";
# Line 639  int main(int numinp, char *inps[]){ Line 640  int main(int numinp, char *inps[]){
640        if( Row == NULL ) break;        if( Row == NULL ) break;
641        for( t = 0; t < pResult->GetFieldCount(); t++){        for( t = 0; t < pResult->GetFieldCount(); t++){
642          if(t==0) ID     = atoi(Row->GetField(t));          if(t==0) ID     = atoi(Row->GetField(t));
643          if(t==1) ID_RAW = atoi(Row->GetField(t));          //      if(t==1) ID_RAW = atoi(Row->GetField(t));
644        };        };
645      };      };
646      delete pResult;        delete pResult;  
# Line 656  int main(int numinp, char *inps[]){ Line 657  int main(int numinp, char *inps[]){
657        for( r=0; r < pResult->GetRowCount(); r++){        for( r=0; r < pResult->GetRowCount(); r++){
658          Row = pResult->Next();                Row = pResult->Next();      
659          if( Row == NULL ) break;          if( Row == NULL ) break;
660          found = true;          //      found = true;
661          if ( !r ) printf("\n File %s contains the following runs: \n\n",l2filename.Data());          if ( !r ) printf("\n File %s contains the following runs: \n\n",l2filename.Data());
662          printf(" %u ",(UInt_t)atoll(Row->GetField(0)));          printf(" %u ",(UInt_t)atoll(Row->GetField(0)));
663          if ( r < (pResult->GetRowCount()-1) ){          if ( r < (pResult->GetRowCount()-1) ){
# Line 964  int main(int numinp, char *inps[]){ Line 965  int main(int numinp, char *inps[]){
965    //    //
966    // Close the DB connection    // Close the DB connection
967    //    //
968    if ( dbc ) dbc->Close();    if ( dbc ){
969        dbc->Close();
970        delete dbc;
971        dbc = 0;
972      }
973    //    //
974    if ( !neat ) printf("\n");    if ( !neat ) printf("\n");
975    //    //

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.23