| 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 |
} |
} |