/[PAMELA software]/quicklook/tracker/flight/src/TrackerQLookBasic.cpp
ViewVC logotype

Annotation of /quicklook/tracker/flight/src/TrackerQLookBasic.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 "TrkQLook_BASIC.cpp"
2     #include <TString.h>
3    
4     /**
5     * TrakerQLookBasic.cpp
6     *
7     * autor: D.Fedele
8     * version 1.0
9     * Parameters:
10     * base - the path to the root directory for the specific
11     * Pamela unpack session
12     * fromevent - first event to analyse
13     * toevent - last event to analyse
14     * outdir - total path of output file
15     * outfile - extension of output file (pdf,ps,gif,jpg)
16     *
17     */
18    
19    
20     int main(int argc, char* argv[]){
21    
22     TString FILE,OUTDIR="",OUTFILE="gif";
23     Int_t FROMEVENT=0,TOEVENT=0;
24    
25     if(argc>1){
26     if(!strcmp(argv[1], "-h") || !strcmp(argv[1], "--help") ){
27     printf("Usage: TrackerQLookBasic FILE FROMEVENT TOEVENT OUTDIR OUTFILE \n");
28     printf("\t FILE: path of the root file to analize (give at least this parameter) \n");
29     printf("\t FROMEVENT: first event to analize [default = 0] \n");
30     printf("\t TOEVENT: last event to analize [default = 0] \n");
31     printf("\t OUTDIR: output directory [default = same directory of the root file] \n");
32     printf("\t OUTFILE: type of output file (without . )[default = gif] \n");
33     return(0);
34     }
35    
36     if(argc>=2){
37     for(int i=1; i<argc;i++){
38     if(i==1) FILE = argv[i];
39     else if(i==2) FROMEVENT = atoi(argv[i]);
40     else if(i==3) TOEVENT = atoi(argv[i]);
41     else if(i==4) OUTDIR = argv[i];
42     else if(i==5) OUTFILE = argv[i];
43     }
44     }
45     }
46    
47     else if(argc==1){
48     printf("Usage: TrackerQLookBasic FILE FROMEVENT TOEVENT OUTDIR OUTFILE \n");
49     printf("\t FILE: path of the root file to analize (give at least this parameter) \n");
50     printf("\t FROMEVENT: first event to analize [default = 0] \n");
51     printf("\t TOEVENT: last event to analize [default = 0] \n");
52     printf("\t OUTDIR: output directory [default = same directory of the root file] \n");
53     printf("\t OUTFILE: type of output file (without . )[default = gif] \n");
54     return(0);
55     }
56    
57     TrkQLook_BASIC(FILE,FROMEVENT,TOEVENT,OUTDIR,OUTFILE);
58     }

  ViewVC Help
Powered by ViewVC 1.1.23