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 mufakefile2011; |
19 |
> |
TString elefakefile2011; |
20 |
> |
TString faketype; |
21 |
> |
TString config; |
22 |
> |
TString efftype; |
23 |
> |
TString muSele; |
24 |
> |
TString eleSele; |
25 |
> |
TString uncert; |
26 |
> |
std::string inputfiles; |
27 |
> |
TString mufakefile2012; |
28 |
> |
TString elefakefile2012; |
29 |
> |
FOFlags(): |
30 |
> |
inputfile(""),outputfile(""),outdir("."),mc(false),debug(false),era(2011),inputdir(""), |
31 |
> |
mufakefile2011(""),elefakefile2011(""),faketype(""),config(""),efftype(""),inputfiles(""), |
32 |
> |
uncert(""),mufakefile2012(""),elefakefile2012(""){}; |
33 |
> |
|
34 |
|
void dump() { |
35 |
< |
cout << "--------options---------" << endl; |
35 |
> |
cout << "--------fo options---------" << endl; |
36 |
> |
cout << "inputfile: " << inputfile << endl; |
37 |
> |
cout << "outputfile: " << outputfile << endl; |
38 |
> |
cout << "outdir: " << outdir << endl; |
39 |
> |
cout << "mc: " << mc << endl; |
40 |
> |
cout << "debug: " << debug << endl; |
41 |
> |
cout << "era: " << era << endl; |
42 |
|
cout << "inputdir: " << inputdir << endl; |
43 |
< |
cout << "etabin: " << etabin << endl; |
44 |
< |
cout << "ptbin: " << ptbin << endl; |
43 |
> |
cout << "mufakefile2011: " << mufakefile2011 << endl; |
44 |
> |
cout << "elefakefile2011: " << elefakefile2011 << endl; |
45 |
> |
cout << "faketype: " << faketype << endl; |
46 |
> |
cout << "config: " << config << endl; |
47 |
> |
cout << "efftype: " << efftype << endl; |
48 |
> |
cout << "inputfiles: " << inputfiles << endl; |
49 |
> |
cout << "muSele: " << muSele << endl; |
50 |
> |
cout << "eleSele: " << eleSele << endl; |
51 |
> |
cout << "uncert: " << uncert << endl; |
52 |
> |
cout << "mufakefile2012: " << mufakefile2012 << endl; |
53 |
> |
cout << "elefakefile2012: " << elefakefile2012 << endl; |
54 |
|
cout << "------------------------" << endl; |
55 |
|
}; |
56 |
|
}; |