/[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.2 by pam-fi, Tue Nov 29 13:42:18 2011 UTC revision 1.3 by mocchiut, Tue May 15 14:04:41 2012 UTC
# Line 619  int main(int numinp, char *inps[]){ Line 619  int main(int numinp, char *inps[]){
619    //    //
620    if ( strcmp(l2filename.Data(),"") ){    if ( strcmp(l2filename.Data(),"") ){
621      // ----------------      // ----------------
622      Bool_t found = false;      //    Bool_t found = false;
623      Int_t ID = 0;      Int_t ID = 0;
624      Int_t ID_RAW = 0;      //    Int_t ID_RAW = 0;
625      //          //    
626      const char *rawpath = "";      const char *rawpath = "";
627      const char *rawname = "";      const char *rawname = "";
# Line 639  int main(int numinp, char *inps[]){ Line 639  int main(int numinp, char *inps[]){
639        if( Row == NULL ) break;        if( Row == NULL ) break;
640        for( t = 0; t < pResult->GetFieldCount(); t++){        for( t = 0; t < pResult->GetFieldCount(); t++){
641          if(t==0) ID     = atoi(Row->GetField(t));          if(t==0) ID     = atoi(Row->GetField(t));
642          if(t==1) ID_RAW = atoi(Row->GetField(t));          //      if(t==1) ID_RAW = atoi(Row->GetField(t));
643        };        };
644      };      };
645      delete pResult;        delete pResult;  
# Line 656  int main(int numinp, char *inps[]){ Line 656  int main(int numinp, char *inps[]){
656        for( r=0; r < pResult->GetRowCount(); r++){        for( r=0; r < pResult->GetRowCount(); r++){
657          Row = pResult->Next();                Row = pResult->Next();      
658          if( Row == NULL ) break;          if( Row == NULL ) break;
659          found = true;          //      found = true;
660          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());
661          printf(" %u ",(UInt_t)atoll(Row->GetField(0)));          printf(" %u ",(UInt_t)atoll(Row->GetField(0)));
662          if ( r < (pResult->GetRowCount()-1) ){          if ( r < (pResult->GetRowCount()-1) ){

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.23