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