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

Contents of /quicklook/tracker/flight/src/TrackerQLookExpert.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (download) (vendor branch)
Tue Mar 14 16:09:29 2006 UTC (18 years, 8 months ago) by pam-fi
Branch: trk-QLook
CVS Tags: R1v00, R1v01
Changes since 1.1: +0 -0 lines
First CVS release of tracker flight quick-look 

1 #include "TrkQLook_EXPERT.cpp"
2 #include <TString.h>
3
4 /**
5 * TrakerQLookExpert.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: TrackerQlookExpert 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
46 else if(argc==1){
47 printf("Usage: TrackerQlookExpert FILE FROMEVENT TOEVENT OUTDIR OUTFILE \n");
48 printf("\t FILE: path of the root file to analize (give at least this parameter) \n");
49 printf("\t FROMEVENT: first event to analize [default = 0] \n");
50 printf("\t TOEVENT: last event to analize [default = 0] \n");
51 printf("\t OUTDIR: output directory [default = same directory of the root file] \n");
52 printf("\t OUTFILE: type of output file (without . )[default = gif] \n");
53 return(0);
54 }
55
56 TrkQLook_EXPERT(FILE,FROMEVENT,TOEVENT,OUTDIR,OUTFILE);
57 }

  ViewVC Help
Powered by ViewVC 1.1.23