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

Diff of /chewbacca/YodaProfiler/src/YodaProfiler.cpp

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

revision 1.7 by mocchiut, Tue Jan 13 13:38:17 2009 UTC revision 1.9 by mocchiut, Mon Dec 21 14:16:22 2009 UTC
# Line 417  int main(int numinp, char *inps[]){ Line 417  int main(int numinp, char *inps[]){
417      pamDB = new PamelaDBOperations(host,user,password,filerawname,filerootname,boot,tsync,obt0,debug,tlefilename,dwinput,staticp,gpamela,keepenv);      pamDB = new PamelaDBOperations(host,user,password,filerawname,filerootname,boot,tsync,obt0,debug,tlefilename,dwinput,staticp,gpamela,keepenv);
418      pamDB->CheckConnection();      pamDB->CheckConnection();
419      pamDB->LockTables();      pamDB->LockTables();
420      pamDB->OpenL0File(filerootname);      if ( filerootname != "" ) pamDB->OpenL0File(filerootname);
421      pamDB->SetTag(tag);      pamDB->SetTag(tag);
422      //-------------------------------------------------------------------------------------------      //-------------------------------------------------------------------------------------------
423      //      //
# Line 570  int main(int numinp, char *inps[]){ Line 570  int main(int numinp, char *inps[]){
570      };      };
571                    
572    } catch (Int_t exc) {    } catch (Int_t exc) {
573      signal = exc;      //    signal = exc;
574        signal = 1;
575      switch(exc){      switch(exc){
576      case -1: message += " DB connection failure"; break;      case -1: message += " DB connection failure"; break;
577      case -2: message += " Connection failure"; break;      case -2: message += " Connection failure"; break;
# Line 782  int main(int numinp, char *inps[]){ Line 783  int main(int numinp, char *inps[]){
783      printf("\n");      printf("\n");
784      printf(" WARNING(s):\n%s\n",message.Data());      printf(" WARNING(s):\n%s\n",message.Data());
785      printf("\n");      printf("\n");
786      if ( !signal ) signal = 1;      //    if ( !signal ) signal = 1;
787        if ( !signal ) signal = 255;
788    };    };
789    //    //
790    //---------------------------------------------------------------------------------------    //---------------------------------------------------------------------------------------

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

  ViewVC Help
Powered by ViewVC 1.1.23