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

Annotation of /quicklook/tracker/flight/src/TrkCalibQLookBasic.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, 10 months ago) by pam-fi
Branch: MAIN
Branch point for: trk-QLook
Initial revision

1 pam-fi 1.1 #include "TrkCalibQLook_BASIC.cpp"
2     #include <TString.h>
3    
4     /**
5     * TrkCalibQLookBasic.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     int main(int argc, char* argv[]){
20    
21     TString FILE,OUTDIR="",OUTFILE="gif";
22     Int_t FROMEVENT=0,TOEVENT=0;
23    
24     if(argc>1){
25     if (!strcmp(argv[1], "-h")||!strcmp(argv[1], "--help")){
26     printf("Usage: TrkCalibQLookBasic FILE FROMEVENT TOEVENT OUTDIR OUTFILE \n");
27     printf("\t FILE: path of the root file to analize (give at least this parameter) \n");
28     printf("\t FROMEVENT: first event to analize [default = 0] \n");
29     printf("\t TOEVENT: last event to analize [default = 0] \n");
30     printf("\t OUTDIR: output directory [default = same directory of the root file] \n");
31     printf("\t OUTFILE: type of output file (without . )[default = gif] \n");
32     return(0);
33     }
34    
35     if(argc>=2){
36     for(int i=1; i<argc;i++){
37     if(i==1) FILE = argv[i];
38     else if(i==2) FROMEVENT = atoi(argv[i]);
39     else if(i==3) TOEVENT = atoi(argv[i]);
40     else if(i==4) OUTDIR = argv[i];
41     else if(i==5) OUTFILE = argv[i];
42     }
43     }
44     }
45     else if(argc==1){
46     printf("Usage: TrkCalibQLookBasic FILE FROMEVENT TOEVENT OUTDIR OUTFILE \n");
47     printf("\t FILE: path of the root file to analize (give at least this parameter) \n");
48     printf("\t FROMEVENT: first event to analize [default = 0] \n");
49     printf("\t TOEVENT: last event to analize [default = 0] \n");
50     printf("\t OUTDIR: output directory [default = same directory of the root file] \n");
51     printf("\t OUTFILE: type of output file (without . )[default = gif] \n");
52     return(0);
53     }
54    
55     TrkCalibQLook_BASIC(FILE,FROMEVENT,TOEVENT,OUTDIR,OUTFILE);
56     }
57    

  ViewVC Help
Powered by ViewVC 1.1.23