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

Diff of /DarthVader/src/R2-D2.cpp

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

revision 1.5 by mocchiut, Thu Sep 7 08:50:39 2006 UTC revision 1.7 by mocchiut, Fri Sep 8 08:12:28 2006 UTC
# Line 71  int main(int numinp, char *inps[]){ Line 71  int main(int numinp, char *inps[]){
71    if ( strcmp(pamdbuser,"") ) user = pamdbuser;    if ( strcmp(pamdbuser,"") ) user = pamdbuser;
72    if ( strcmp(pamdbpsw,"") ) psw = pamdbpsw;    if ( strcmp(pamdbpsw,"") ) psw = pamdbpsw;
73    //    //
74    printf(" host %s user %s psw %s \n",host.Data(),user.Data(),psw.Data());    //  printf(" host %s user %s psw %s \n",host.Data(),user.Data(),psw.Data());
75    //    //
76    TString tzone = "MSK";    TString tzone = "MSK";
77    TString tzone2 = "MSK";    TString tzone2 = "MSK";
# Line 268  int main(int numinp, char *inps[]){ Line 268  int main(int numinp, char *inps[]){
268      error = glrun->Query_GL_RUN(run,dbc);      error = glrun->Query_GL_RUN(run,dbc);
269      glroot->Clear();      glroot->Clear();
270      error = glroot->Query_GL_ROOT(glrun->ID_ROOT_L0,dbc);      error = glroot->Query_GL_ROOT(glrun->ID_ROOT_L0,dbc);
271      if ( error ){      if ( !glrun->ID_ROOT_L0 ){
       printf(" Error querying the DB! \n");  
       exit(-4);  
     };  
     if ( !glrun->ID ){  
272        printf("\n No run with ID=%u in the DB!\n",run);        printf("\n No run with ID=%u in the DB!\n",run);
273      } else {      } else {
274          if ( error ){
275            printf(" Error querying the DB! \n");
276            exit(-4);
277          };
278        printf("\n Run %u belongs to file %s \n",run,(glroot->PATH+glroot->NAME).Data());        printf("\n Run %u belongs to file %s \n",run,(glroot->PATH+glroot->NAME).Data());
279      };      };
280    };    };

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

  ViewVC Help
Powered by ViewVC 1.1.23