/[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.8 by mocchiut, Fri Nov 20 14:30:26 2009 UTC revision 1.11 by mocchiut, Mon Dec 28 08:39:25 2009 UTC
# Line 391  int main(int numinp, char *inps[]){ Line 391  int main(int numinp, char *inps[]){
391      if ( !dwinput ) dwinput = 1;      if ( !dwinput ) dwinput = 1;
392      staticp = true;      staticp = true;
393      autoboot = false;      autoboot = false;
394        pedantic = false;
395    };    };
396    //    //
397    if ( filerawname == "" && filerootname != "" ){    if ( filerawname == "" && filerootname != "" ){
# Line 417  int main(int numinp, char *inps[]){ Line 418  int main(int numinp, char *inps[]){
418      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);
419      pamDB->CheckConnection();      pamDB->CheckConnection();
420      pamDB->LockTables();      pamDB->LockTables();
421        if ( !pamDB->IsChewbacca() ) pamDB->NotChewbacca(boot,tsync,obt0,gpamela);
422      if ( filerootname != "" ) pamDB->OpenL0File(filerootname);      if ( filerootname != "" ) pamDB->OpenL0File(filerootname);
423      pamDB->SetTag(tag);      pamDB->SetTag(tag);
424      //-------------------------------------------------------------------------------------------      //-------------------------------------------------------------------------------------------
# Line 570  int main(int numinp, char *inps[]){ Line 572  int main(int numinp, char *inps[]){
572      };      };
573                    
574    } catch (Int_t exc) {    } catch (Int_t exc) {
575      signal = exc;      //    signal = exc;
576        signal = 1;
577      switch(exc){      switch(exc){
578      case -1: message += " DB connection failure"; break;      case -1: message += " DB connection failure"; break;
579      case -2: message += " Connection failure"; break;      case -2: message += " Connection failure"; break;
# Line 782  int main(int numinp, char *inps[]){ Line 785  int main(int numinp, char *inps[]){
785      printf("\n");      printf("\n");
786      printf(" WARNING(s):\n%s\n",message.Data());      printf(" WARNING(s):\n%s\n",message.Data());
787      printf("\n");      printf("\n");
788      if ( !signal ) signal = 1;      //    if ( !signal ) signal = 1;
789        if ( !signal ) signal = 255;
790    };    };
791    //    //
792    //---------------------------------------------------------------------------------------    //---------------------------------------------------------------------------------------

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.23