ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitHzz4l/NonMCBackground/interface/FOArgs.h
Revision: 1.4
Committed: Tue Jun 19 17:11:27 2012 UTC (12 years, 11 months ago) by dkralph
Content type: text/plain
Branch: MAIN
Changes since 1.3: +4 -1 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
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.4 TString uncert;
26 dkralph 1.2 std::string inputfiles;
27     FOFlags():
28     inputfile(""),outputfile(""),outdir("."),mc(false),debug(false),era(2011),inputdir(""),
29 dkralph 1.4 mufakedir(""),elefakedir(""),faketype(""),config(""),efftype(""),inputfiles(""),
30     uncert(""){};
31 dkralph 1.2
32 dkralph 1.1 void dump() {
33 dkralph 1.2 cout << "--------fo options---------" << endl;
34     cout << "inputfile: " << inputfile << endl;
35     cout << "outputfile: " << outputfile << endl;
36     cout << "outdir: " << outdir << endl;
37     cout << "mc: " << mc << endl;
38     cout << "debug: " << debug << endl;
39     cout << "era: " << era << endl;
40 dkralph 1.1 cout << "inputdir: " << inputdir << endl;
41 dkralph 1.2 cout << "mufakedir: " << mufakedir << endl;
42     cout << "elefakedir: " << elefakedir << endl;
43     cout << "faketype: " << faketype << endl;
44     cout << "config: " << config << endl;
45     cout << "efftype: " << efftype << endl;
46     cout << "inputfiles: " << inputfiles << endl;
47 dkralph 1.3 cout << "muSele: " << muSele << endl;
48     cout << "eleSele: " << eleSele << endl;
49 dkralph 1.4 cout << "uncert: " << uncert << endl;
50 dkralph 1.1 cout << "------------------------" << endl;
51     };
52     };
53    
54     void parse_foargs( int argc, char** argv, FOFlags &flags );
55    
56     #endif