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

Diff of /YodaProfiler/src/YodaProfiler.cpp

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

revision 1.14 by mocchiut, Tue Nov 28 13:30:39 2006 UTC revision 1.15 by mocchiut, Mon Dec 4 11:32:07 2006 UTC
# Line 46  void usage(){ Line 46  void usage(){
46    printf(" -force          to be used to reprocess a file or to process a file\n");    printf(" -force          to be used to reprocess a file or to process a file\n");
47    printf("                 when already validated the surroundings, it is equivalent to:\n");    printf("                 when already validated the surroundings, it is equivalent to:\n");
48    printf("                 -remove same -validate same -cleanfrag same -nofrag\n");    printf("                 -remove same -validate same -cleanfrag same -nofrag\n");
49      printf(" -check          performs some test on the GL_RUN table to check its consistency\n");
50    printf(" -host           name of the DB host [default = $PAM_DBHOST or mysql://localhost/pamelaprod]\n");    printf(" -host           name of the DB host [default = $PAM_DBHOST or mysql://localhost/pamelaprod]\n");
51    printf(" -user           username for the DB connection [default = $PAM_DBUSER or \"anonymous\"] \n");    printf(" -user           username for the DB connection [default = $PAM_DBUSER or \"anonymous\"] \n");
52    printf(" -psw            password for the DB connection [default = $PAM_DBPSW or \"\"]\n");    printf(" -psw            password for the DB connection [default = $PAM_DBPSW or \"\"]\n");
# Line 104  int main(int numinp, char *inps[]){ Line 105  int main(int numinp, char *inps[]){
105    //    //
106    Bool_t force = false;    Bool_t force = false;
107    //    //
108      Bool_t check = false;
109      //
110    Int_t i = 0;    Int_t i = 0;
111    //    //
112    if ( numinp > 1 ){    if ( numinp > 1 ){
# Line 228  int main(int numinp, char *inps[]){ Line 231  int main(int numinp, char *inps[]){
231        //        //
232        if ( !strcmp(inps[i],"-nofrag") ) nofrag = true;        if ( !strcmp(inps[i],"-nofrag") ) nofrag = true;
233        //        //
234          if ( !strcmp(inps[i],"-check") ) check = true;
235          //
236        i++;        i++;
237      };      };
238    } else {    } else {
# Line 411  int main(int numinp, char *inps[]){ Line 416  int main(int numinp, char *inps[]){
416        if ( beverbose ) printf(" 12 => Insert TLE elements in the GL_TLE table from file %s \n",tlefilename.Data());        if ( beverbose ) printf(" 12 => Insert TLE elements in the GL_TLE table from file %s \n",tlefilename.Data());
417        WAR[10] = pamDB->populateTLE();        WAR[10] = pamDB->populateTLE();
418      }      }
419    
420        if ( check ){
421          //----------------------------------------------
422          //Check GL_RUN table consistency
423          //----------------------------------------------
424          if ( beverbose ) printf(" 13 => Check GL_RUN table consistency\n");
425          UInt_t ch = pamDB->Check();
426          if ( !ch ){
427            printf(" GL_RUN table seems ok!\n");
428          } else {
429            printf(" Problems found in the GL_RUN table!\n");
430          };
431        };
432                    
433    } catch (Int_t exc) {    } catch (Int_t exc) {
434      signal = exc;      signal = exc;

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.23