/[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.6 by mocchiut, Mon Jan 12 18:23:38 2009 UTC revision 1.10 by mocchiut, Wed Dec 23 07:22:04 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      pamDB->OpenL0File(filerootname);      if ( filerootname != "" ) pamDB->OpenL0File(filerootname);
422      pamDB->SetTag(tag);      pamDB->SetTag(tag);
423      //-------------------------------------------------------------------------------------------      //-------------------------------------------------------------------------------------------
424      //      //
# Line 544  int main(int numinp, char *inps[]){ Line 545  int main(int numinp, char *inps[]){
545        //Validate runs        //Validate runs
546        //-------------------------------------------------------------------------------------------        //-------------------------------------------------------------------------------------------
547        if ( beverbose ) printf(" 11 => Validate runs (earlier than %s)\n",pamDB->GetCleanTime());        if ( beverbose ) printf(" 11 => Validate runs (earlier than %s)\n",pamDB->GetCleanTime());
548        WAR[9] = pamDB->ValidateRuns();        WAR[9] = pamDB->ValidateRuns();
549        //-------------------------------------------------------------------------------------------            //-------------------------------------------------------------------------------------------    
550      };      };
551    
# Line 570  int main(int numinp, char *inps[]){ Line 571  int main(int numinp, char *inps[]){
571      };      };
572                    
573    } catch (Int_t exc) {    } catch (Int_t exc) {
574      signal = exc;      //    signal = exc;
575        signal = 1;
576      switch(exc){      switch(exc){
577      case -1: message += " DB connection failure"; break;      case -1: message += " DB connection failure"; break;
578      case -2: message += " Connection failure"; break;      case -2: message += " Connection failure"; break;
# Line 782  int main(int numinp, char *inps[]){ Line 784  int main(int numinp, char *inps[]){
784      printf("\n");      printf("\n");
785      printf(" WARNING(s):\n%s\n",message.Data());      printf(" WARNING(s):\n%s\n",message.Data());
786      printf("\n");      printf("\n");
787      if ( !signal ) signal = 1;      //    if ( !signal ) signal = 1;
788        if ( !signal ) signal = 255;
789    };    };
790    //    //
791    //---------------------------------------------------------------------------------------    //---------------------------------------------------------------------------------------

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.23