11 |
#include <TSystem.h> |
#include <TSystem.h> |
12 |
#include <iostream> |
#include <iostream> |
13 |
#include <sys/types.h> |
#include <sys/types.h> |
14 |
|
#include <sys/stat.h> |
15 |
#include <unistd.h> |
#include <unistd.h> |
16 |
#include <stdio.h> |
#include <stdio.h> |
17 |
|
#include <cstdlib> |
18 |
|
|
19 |
// |
// |
20 |
|
|
28 |
printf( " if in the first position \"-name\" can be omitted. \n"); |
printf( " if in the first position \"-name\" can be omitted. \n"); |
29 |
printf("\n OPTIONS: \n"); |
printf("\n OPTIONS: \n"); |
30 |
printf("\n -v be verbose \n"); |
printf("\n -v be verbose \n"); |
31 |
printf( " -entry entry calibration entry to analyze [default = 0, all] \n"); |
// printf( " -entry entry calibration entry to analyze [default = 0, all] \n"); |
32 |
printf( " -interactive shows figures on the screen [default = non-interactive] \n"); |
printf( " -interactive shows figures on the screen [default = non-interactive] \n"); |
33 |
printf( " -wait wait for canvas to be closed before going on [default = don't wait] \n"); |
printf( " -wait wait for canvas to be closed before going on [default = don't wait] \n"); |
34 |
printf( " -matra draw the strip rms in a box plot [default: do not draw] \n"); |
// printf( " -matra draw the strip rms in a box plot [default: do not draw] \n"); |
35 |
printf( " -oudDir output_dir path of the output directory [default = ./] (with or without final '/') \n"); |
printf( " -oudDir output_dir path of the output directory [default = ./] (with or without final '/') \n"); |
36 |
printf( " -format format format for output file (without . )[default = png] \n"); |
printf( " -format format format for output file (without . )[default = png] \n"); |
37 |
printf("\nExamples: "); |
printf("\nExamples: "); |
45 |
TString name; |
TString name; |
46 |
TString outdir = "./"; |
TString outdir = "./"; |
47 |
TString format = "png"; |
TString format = "png"; |
48 |
int matra = 0; |
// int matra = 0; |
49 |
Long64_t calibno = 0; |
// Long64_t calibno = 0; |
50 |
char *pEnd; |
// char *pEnd; |
51 |
int nul = 0; |
int nul = 0; |
52 |
bool beverbose = false; |
bool beverbose = false; |
53 |
Bool_t iactive = false; |
Bool_t iactive = false; |
87 |
format = (TString)inps[i+1]; |
format = (TString)inps[i+1]; |
88 |
}; |
}; |
89 |
|
|
90 |
if ( !strcmp(inps[i],"-entry") ) { |
/* if ( !strcmp(inps[i],"-entry") ) { |
91 |
if ( numinp-1 < i+1 ){ |
if ( numinp-1 < i+1 ){ |
92 |
usage(); |
usage(); |
93 |
exit(-3); |
exit(-3); |
96 |
}; |
}; |
97 |
if ( !strcmp(inps[i],"-matra") ) { |
if ( !strcmp(inps[i],"-matra") ) { |
98 |
matra = 1; |
matra = 1; |
99 |
}; |
};*/ |
100 |
if ( !strcmp(inps[i],"-interactive") ) { |
if ( !strcmp(inps[i],"-interactive") ) { |
101 |
iactive = true; |
iactive = true; |
102 |
}; |
}; |