1 |
dkralph |
1.1 |
#ifndef FOARGS
|
2 |
|
|
#define FOARGS
|
3 |
|
|
|
4 |
|
|
#include <iostream>
|
5 |
dkralph |
1.2 |
#include <sstream>
|
6 |
dkralph |
1.1 |
#include "TString.h"
|
7 |
dkralph |
1.2 |
#include "ParseArgs.h"
|
8 |
dkralph |
1.1 |
using namespace std;
|
9 |
|
|
|
10 |
|
|
class FOFlags {
|
11 |
|
|
public :
|
12 |
dkralph |
1.2 |
std::string inputfile;
|
13 |
|
|
std::string outputfile;
|
14 |
|
|
TString outdir;
|
15 |
|
|
bool mc, debug;
|
16 |
|
|
unsigned era;
|
17 |
dkralph |
1.1 |
TString inputdir;
|
18 |
dkralph |
1.2 |
TString mufakedir;
|
19 |
|
|
TString elefakedir;
|
20 |
|
|
TString faketype;
|
21 |
|
|
TString config;
|
22 |
|
|
TString efftype;
|
23 |
dkralph |
1.3 |
TString muSele;
|
24 |
|
|
TString eleSele;
|
25 |
dkralph |
1.2 |
std::string inputfiles;
|
26 |
|
|
FOFlags():
|
27 |
|
|
inputfile(""),outputfile(""),outdir("."),mc(false),debug(false),era(2011),inputdir(""),
|
28 |
|
|
mufakedir(""),elefakedir(""),faketype(""),config(""),efftype(""),inputfiles(""){};
|
29 |
|
|
|
30 |
dkralph |
1.1 |
void dump() {
|
31 |
dkralph |
1.2 |
cout << "--------fo options---------" << endl;
|
32 |
|
|
cout << "inputfile: " << inputfile << endl;
|
33 |
|
|
cout << "outputfile: " << outputfile << endl;
|
34 |
|
|
cout << "outdir: " << outdir << endl;
|
35 |
|
|
cout << "mc: " << mc << endl;
|
36 |
|
|
cout << "debug: " << debug << endl;
|
37 |
|
|
cout << "era: " << era << endl;
|
38 |
dkralph |
1.1 |
cout << "inputdir: " << inputdir << endl;
|
39 |
dkralph |
1.2 |
cout << "mufakedir: " << mufakedir << endl;
|
40 |
|
|
cout << "elefakedir: " << elefakedir << endl;
|
41 |
|
|
cout << "faketype: " << faketype << endl;
|
42 |
|
|
cout << "config: " << config << endl;
|
43 |
|
|
cout << "efftype: " << efftype << endl;
|
44 |
|
|
cout << "inputfiles: " << inputfiles << endl;
|
45 |
dkralph |
1.3 |
cout << "muSele: " << muSele << endl;
|
46 |
|
|
cout << "eleSele: " << eleSele << endl;
|
47 |
dkralph |
1.1 |
cout << "------------------------" << endl;
|
48 |
|
|
};
|
49 |
|
|
};
|
50 |
|
|
|
51 |
|
|
void parse_foargs( int argc, char** argv, FOFlags &flags );
|
52 |
|
|
|
53 |
|
|
#endif
|