1 |
#ifndef FOARGS
|
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 |
TString config;
|
13 |
TString inputfile;
|
14 |
TString outdir;
|
15 |
bool debug;
|
16 |
TString mufakefile2011;
|
17 |
TString elefakefile2011;
|
18 |
TString mufakefile2012;
|
19 |
TString elefakefile2012;
|
20 |
TString faketype;
|
21 |
TString efftype;
|
22 |
TString uncert;
|
23 |
TString extraArgs;
|
24 |
bool plotWholeSample;
|
25 |
bool heavyFlavor;
|
26 |
bool ssof;
|
27 |
bool writessofratio;
|
28 |
bool plotAllCats;
|
29 |
bool makeFakeTuples;
|
30 |
bool hiStatFakes;
|
31 |
FOFlags():
|
32 |
config(""),
|
33 |
inputfile(""),
|
34 |
outdir("."),
|
35 |
debug(false),
|
36 |
mufakefile2011(""),
|
37 |
elefakefile2011(""),
|
38 |
mufakefile2012(""),
|
39 |
elefakefile2012(""),
|
40 |
faketype(""),
|
41 |
efftype(""),
|
42 |
uncert(""),
|
43 |
extraArgs(""),
|
44 |
plotWholeSample(false),
|
45 |
heavyFlavor(false),
|
46 |
ssof(false),
|
47 |
writessofratio(false),
|
48 |
plotAllCats(false),
|
49 |
makeFakeTuples(false),
|
50 |
hiStatFakes(false)
|
51 |
{};
|
52 |
|
53 |
void dump() {
|
54 |
cout << "--------fo options---------" << endl;
|
55 |
cout << "config : " << config << endl;
|
56 |
cout << "inputfile : " << inputfile << endl;
|
57 |
cout << "outdir : " << outdir << endl;
|
58 |
cout << "debug : " << debug << endl;
|
59 |
cout << "mufakefile2011 : " << mufakefile2011 << endl;
|
60 |
cout << "elefakefile2011 : " << elefakefile2011 << endl;
|
61 |
cout << "mufakefile2012 : " << mufakefile2012 << endl;
|
62 |
cout << "elefakefile2012 : " << elefakefile2012 << endl;
|
63 |
cout << "faketype : " << faketype << endl;
|
64 |
cout << "efftype : " << efftype << endl;
|
65 |
cout << "uncert : " << uncert << endl;
|
66 |
cout << "extraArgs : " << extraArgs << endl;
|
67 |
cout << "plotWholeSample : " << plotWholeSample << endl;
|
68 |
cout << "heavyFlavor : " << heavyFlavor << endl;
|
69 |
cout << "ssof : " << ssof << endl;
|
70 |
cout << "writessofratio : " << writessofratio << endl;
|
71 |
cout << "plotAllCats : " << plotAllCats << endl;
|
72 |
cout << "makeFakeTuples : " << makeFakeTuples << endl;
|
73 |
cout << "hiStatFakes : " << hiStatFakes << endl;
|
74 |
cout << "------------------------" << endl;
|
75 |
};
|
76 |
};
|
77 |
|
78 |
void parse_foargs( int argc, char** argv, FOFlags &flags );
|
79 |
|
80 |
#endif
|