14 |
#include <unistd.h> |
#include <unistd.h> |
15 |
#include <stdio.h> |
#include <stdio.h> |
16 |
// |
// |
17 |
extern void FCaloQLOOK(TString, int, int, TString, TString); |
extern void FCaloQLOOK(TString, int, int, TString, TString, Bool_t, Bool_t); |
18 |
extern void info(); |
extern void info(); |
19 |
using namespace std; |
using namespace std; |
20 |
// |
// |
42 |
int toev = 0; |
int toev = 0; |
43 |
int nul = 0; |
int nul = 0; |
44 |
bool beverbose = false; |
bool beverbose = false; |
45 |
|
Bool_t iactive = false; |
46 |
|
Bool_t w4i = false; |
47 |
// |
// |
48 |
if ( numinp > 1 ){ |
if ( numinp > 1 ){ |
49 |
name = (TString)inps[1]; |
name = (TString)inps[1]; |
93 |
}; |
}; |
94 |
toev = atoi(inps[i+1]); |
toev = atoi(inps[i+1]); |
95 |
}; |
}; |
96 |
|
if ( !strcmp(inps[i],"-interactive") ) { |
97 |
|
iactive = true; |
98 |
|
}; |
99 |
|
if ( !strcmp(inps[i],"-wait") ) { |
100 |
|
w4i = true; |
101 |
|
}; |
102 |
if ( !strcmp(inps[i],"-v") || !strcmp(inps[i],"--verbose") ) beverbose = true; |
if ( !strcmp(inps[i],"-v") || !strcmp(inps[i],"--verbose") ) beverbose = true; |
103 |
}; |
}; |
104 |
} else { |
} else { |
119 |
}; |
}; |
120 |
printf("\n Welcome to FCaloQLOOK! \n"); |
printf("\n Welcome to FCaloQLOOK! \n"); |
121 |
// |
// |
122 |
FCaloQLOOK(name,fromev,toev,outdir,format); |
FCaloQLOOK(name,fromev,toev,outdir,format,iactive,w4i); |
123 |
// |
// |
124 |
if ( !beverbose ) close(nul); |
if ( !beverbose ) close(nul); |
125 |
// |
// |