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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Mar 21 15:54:05 2006 UTC (18 years, 8 months ago) by pam-fi
Branch: MAIN
CVS Tags: R1v01
Changes since 1.1: +16 -8 lines
*** empty log message ***

1 #include "readpedsig.cpp"
2 #include "readpedsig-limits.cpp"
3 #include <TString.h>
4
5 /**
6 * readpedsig-main --> is the main program that call the function
7 * readpedsig and readpedsig-limits
8 *
9 * autor: D.Fedele
10 * version 1.0
11 * Parameters:
12 * file - the path to the root file to analyse
13 * outdir - total path of output file
14 *
15 */
16
17 int main(int argc, char* argv[]){
18
19 TString FILE,OUTDIR="";
20
21 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");
38 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");
40 exit(1);
41 }
42
43 readpedsig(FILE,OUTDIR);
44 readpedsiglimits(FILE,OUTDIR);
45 }

  ViewVC Help
Powered by ViewVC 1.1.23