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

Annotation of /quicklook/tracker/flight/macros/fillpedsig-main.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Tue Mar 14 16:09:30 2006 UTC (18 years, 9 months ago) by pam-fi
Branch: MAIN
Branch point for: trk-QLook
Initial revision

1 pam-fi 1.1 #include "fillpedsig.cpp"
2     #include <TString.h>
3    
4     /**
5     * fillpedsig-main --> is the main program that call the filpedsig function
6     *
7     * autor: D.Fedele
8     * version 1.0
9     * Parameters:
10     * file - the path to the root file to analyse
11     * outdir - total path of output file
12     *
13     */
14    
15     int main(int argc, char* argv[]){
16    
17     TString FILE,OUTDIR="";
18    
19     if (!strcmp(argv[1], "-h") || !strcmp(argv[1], "--help") || argc==1){
20     printf("Usage: fillpedsig FILE OUTDIR \n");
21     printf("\t FILE: path of the root file to analize (give at least this parameter) \n");
22     printf("\t OUTDIR: output directory [default = same directory of the root file] \n");
23     exit(1);
24     }
25    
26     if(argc>=2){
27     for(int i=1; i<argc;i++){
28     if(i==1) FILE = argv[i];
29     else if(i==2) OUTDIR = argv[i];
30     }
31     }
32    
33     fillpedsig(FILE,OUTDIR);
34     }

  ViewVC Help
Powered by ViewVC 1.1.23