/[PAMELA software]/quicklook/tracker/flight/macros/readpedsig-main.cpp
ViewVC logotype

Diff of /quicklook/tracker/flight/macros/readpedsig-main.cpp

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

revision 1.1.1.1 by pam-fi, Tue Mar 14 16:09:30 2006 UTC revision 1.3 by pam-fi, Wed May 10 10:05:57 2006 UTC
# Line 18  int main(int argc, char* argv[]){ Line 18  int main(int argc, char* argv[]){
18    
19    TString FILE,OUTDIR="";    TString FILE,OUTDIR="";
20    
21    if (!strcmp(argv[1], "-h") || !strcmp(argv[1], "--help") || argc==1){    if(argc>1){
22        if (!strcmp(argv[1], "-h") || !strcmp(argv[1], "--help") || argc==1){
23          printf("Usage: readpedsig  FILE OUTDIR \n");
24          printf("\t FILE:         path of the root file to analize (give at least this parameter)  \n");
25          printf("\t OUTDIR:       output directory [default = same directory of the root file] \n");
26          exit(1);
27        }
28        
29        if(argc>=2){
30          for(int i=1; i<argc;i++){
31            if(i==1) FILE = argv[i];
32            else if(i==2) OUTDIR = argv[i];
33          }
34        }
35      }
36      else if(argc==1){
37      printf("Usage: readpedsig  FILE OUTDIR \n");      printf("Usage: readpedsig  FILE OUTDIR \n");
38      printf("\t FILE:         path of the root file to analize (give at least this parameter)  \n");      printf("\t FILE:         path of the root file to analize (give at least this parameter)  \n");
39      printf("\t OUTDIR:       output directory [default = same directory of the root file] \n");      printf("\t OUTDIR:       output directory [default = same directory of the root file] \n");
40      exit(1);      exit(1);
41    }    }
42        
   if(argc>=2){  
     for(int i=1; i<argc;i++){  
       if(i==1) FILE = argv[i];  
       else if(i==2) OUTDIR = argv[i];  
     }  
   }  
     
43    readpedsig(FILE,OUTDIR);    readpedsig(FILE,OUTDIR);
44    readpedsiglimits(FILE,OUTDIR);    readpedsiglimits(FILE,OUTDIR);
45  }  }

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.23