/[PAMELA software]/quicklook/tracker/flight/src/FTrkScanQLook_EXPERT.cc
ViewVC logotype

Diff of /quicklook/tracker/flight/src/FTrkScanQLook_EXPERT.cc

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

revision 1.4 by pam-fi, Thu Jun 8 17:03:11 2006 UTC revision 1.8 by pam-fi, Thu Jul 20 11:09:34 2006 UTC
# Line 2  Line 2 
2   * FTrkScanQLook_EXPERT.cc   * FTrkScanQLook_EXPERT.cc
3   *   *
4   * autor: D.Fedele   * autor: D.Fedele
5   * version 3.0   * version v1r07
6   * Parameters:   * Parameters:
7   *      file - the path to the root file to analyze   *      file - the path to the root file to analyze
8   *      outdir - total path of output file   *      outDir - total path of output file
9   *      event - the number of the single event to analyze   *      event - the number of the single event to analyze
10   *      DSPprint - the number of a particular DSP to draw (0 don't draw)   *      DSPprint - the number of a particular DSP to draw (0 don't draw)
11   *      format - extension of output file (pdf,ps,gif,jpg)   *      format - extension of output file (pdf,ps,gif,jpg)
# Line 24  void usage(){   Line 24  void usage(){  
24    printf("\t file:         path of the root file to analyze (give at least this parameter)  \n");    printf("\t file:         path of the root file to analyze (give at least this parameter)  \n");
25    printf("\nOPTIONS:\n");    printf("\nOPTIONS:\n");
26    printf("\t -v            be verbose \n");      printf("\t -v            be verbose \n");  
27    printf("\t -outdir:      output directory [default = ./] \n");    printf("\t -outDir:      path of the output directory [default = ./] (with or without final '/')\n");
28    printf("\t -format:      format of the output file (without .) [default = pdf] \n");    printf("\t -format:      format of the output file (without .) [default = pdf] (accepted formats: pdf, ps, png, jpg, gif)\n");
29    printf("\nExamples:\n\tFTrkScanQLook_EXPERT /home/pamela/filesfromyoda/DW_xxxxxx_yyyy.root \n\n");    printf("\nExamples:\n\tFTrkScanQLook_EXPERT /home/pamela/filesfromyoda/DW_xxxxxx_yyyy.root \n\n");
30    printf("\tFTrkScanQLook_EXPERT /home/pamela/filesfromyoda/DW_xxxxxx_yyyy.root -v -outdir ~/tmp/\n\n");    printf("\tFTrkScanQLook_EXPERT /home/pamela/filesfromyoda/DW_xxxxxx_yyyy.root -v -outDir ~/tmp/\n\n");
31  }  }
32    
33  int main(int argc, char* argv[]){  int main(int argc, char* argv[]){
# Line 62  int main(int argc, char* argv[]){ Line 62  int main(int argc, char* argv[]){
62          if ( !strcmp(argv[i],"-v") || !strcmp(argv[i],"--verbose") )          if ( !strcmp(argv[i],"-v") || !strcmp(argv[i],"--verbose") )
63            beverbose = true;            beverbose = true;
64                    
65          if (!strcmp(argv[i], "-outdir")){          if (!strcmp(argv[i], "-outDir")){
66            if (++i >= argc || !strcmp(argv[i],"-v") || !strcmp(argv[i], "-format")){            if (++i >= argc || !strcmp(argv[i],"-v") || !strcmp(argv[i], "-format")){
67              printf( "\n-outdir needs arguments. \n");              printf( "\n-outDir needs arguments. \n");
68              usage();              usage();
69              return(0);              return(0);
70            }            }
# Line 74  int main(int argc, char* argv[]){ Line 74  int main(int argc, char* argv[]){
74            }            }
75          }          }
76          if (!strcmp(argv[i], "-format")){          if (!strcmp(argv[i], "-format")){
77            if (++i >= argc || !strcmp(argv[i],"-v") || !strcmp(argv[i], "-outdir")){            if (++i >= argc || !strcmp(argv[i],"-v") || !strcmp(argv[i], "-outDir")){
78              printf( "\n-format needs arguments. \n");              printf( "\n-format needs arguments. \n");
79              usage();              usage();
80              return(0);              return(0);
# Line 84  int main(int argc, char* argv[]){ Line 84  int main(int argc, char* argv[]){
84              continue;              continue;
85            }            }
86          }          }
87            
88            if( strcmp(argv[i], "-format") && strcmp(argv[i], "-outDir") && strcmp(argv[i],"-v") && strcmp(argv[i],"--verbose")){
89              printf( "\n------>Warning: WRONG OPTIONS!\n");
90              usage();
91              return(0);
92            }
93        }        }
94      }      }
95    }    }

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

  ViewVC Help
Powered by ViewVC 1.1.23