2 |
|
#define FOARGS |
3 |
|
|
4 |
|
#include <iostream> |
5 |
+ |
#include <sstream> |
6 |
|
#include "TString.h" |
7 |
+ |
#include "ParseArgs.h" |
8 |
|
using namespace std; |
9 |
|
|
10 |
|
class FOFlags { |
11 |
|
public : |
12 |
+ |
std::string inputfile; |
13 |
+ |
std::string outputfile; |
14 |
+ |
TString outdir; |
15 |
+ |
bool mc, debug; |
16 |
+ |
unsigned era; |
17 |
|
TString inputdir; |
18 |
< |
TString etabin; |
19 |
< |
TString ptbin; |
20 |
< |
FOFlags():inputdir(""),etabin(""),ptbin(""){}; |
21 |
< |
|
18 |
> |
TString mufakedir; |
19 |
> |
TString elefakedir; |
20 |
> |
TString faketype; |
21 |
> |
TString config; |
22 |
> |
TString efftype; |
23 |
> |
std::string inputfiles; |
24 |
> |
FOFlags(): |
25 |
> |
inputfile(""),outputfile(""),outdir("."),mc(false),debug(false),era(2011),inputdir(""), |
26 |
> |
mufakedir(""),elefakedir(""),faketype(""),config(""),efftype(""),inputfiles(""){}; |
27 |
> |
|
28 |
|
void dump() { |
29 |
< |
cout << "--------options---------" << endl; |
29 |
> |
cout << "--------fo options---------" << endl; |
30 |
> |
cout << "inputfile: " << inputfile << endl; |
31 |
> |
cout << "outputfile: " << outputfile << endl; |
32 |
> |
cout << "outdir: " << outdir << endl; |
33 |
> |
cout << "mc: " << mc << endl; |
34 |
> |
cout << "debug: " << debug << endl; |
35 |
> |
cout << "era: " << era << endl; |
36 |
|
cout << "inputdir: " << inputdir << endl; |
37 |
< |
cout << "etabin: " << etabin << endl; |
38 |
< |
cout << "ptbin: " << ptbin << endl; |
37 |
> |
cout << "mufakedir: " << mufakedir << endl; |
38 |
> |
cout << "elefakedir: " << elefakedir << endl; |
39 |
> |
cout << "faketype: " << faketype << endl; |
40 |
> |
cout << "config: " << config << endl; |
41 |
> |
cout << "efftype: " << efftype << endl; |
42 |
> |
cout << "inputfiles: " << inputfiles << endl; |
43 |
|
cout << "------------------------" << endl; |
44 |
|
}; |
45 |
|
}; |