ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitHzz4l/NonMCBackground/interface/FOArgs.h
Revision: 1.2
Committed: Tue Jun 12 22:04:07 2012 UTC (12 years, 11 months ago) by dkralph
Content type: text/plain
Branch: MAIN
Changes since 1.1: +30 -7 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     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 dkralph 1.1 void dump() {
29 dkralph 1.2 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 dkralph 1.1 cout << "inputdir: " << inputdir << endl;
37 dkralph 1.2 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 dkralph 1.1 cout << "------------------------" << endl;
44     };
45     };
46    
47     void parse_foargs( int argc, char** argv, FOFlags &flags );
48    
49     #endif