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

Diff of /quicklook/tracker/flight/macros/fillpedsig-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.2 by pam-fi, Tue Mar 21 15:54:05 2006 UTC
# Line 16  int main(int argc, char* argv[]){ Line 16  int main(int argc, char* argv[]){
16    
17    TString FILE,OUTDIR="";    TString FILE,OUTDIR="";
18    
19    if (!strcmp(argv[1], "-h") || !strcmp(argv[1], "--help") || argc==1){    if(argc>1){
20        if (!strcmp(argv[1], "-h") || !strcmp(argv[1], "--help")){
21          printf("Usage: fillpedsig  FILE OUTDIR \n");
22          printf("\t FILE:         path of the root file to analize (give at least this parameter)  \n");
23          printf("\t OUTDIR:       output directory [default = same directory of the root file] \n");
24          exit(1);
25        }
26        
27        if(argc>=2){
28          for(int i=1; i<argc;i++){
29            if(i==1) FILE = argv[i];
30            else if(i==2) OUTDIR = argv[i];
31          }
32        }
33      }
34      else if(argc==1){
35      printf("Usage: fillpedsig  FILE OUTDIR \n");      printf("Usage: fillpedsig  FILE OUTDIR \n");
36      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");
37      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");
38      exit(1);      exit(1);
39    }    }
40        
   if(argc>=2){  
     for(int i=1; i<argc;i++){  
       if(i==1) FILE = argv[i];  
       else if(i==2) OUTDIR = argv[i];  
     }  
   }  
     
41    fillpedsig(FILE,OUTDIR);    fillpedsig(FILE,OUTDIR);
42  }  }

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

  ViewVC Help
Powered by ViewVC 1.1.23