ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitHzz4l/NonMCBackground/interface/FOArgs.h
Revision: 1.5
Committed: Thu Jul 12 15:10:54 2012 UTC (12 years, 10 months ago) by dkralph
Content type: text/plain
Branch: MAIN
Changes since 1.4: +10 -6 lines
Log Message:
Added a PlotHeader that my plot exe's use heavily, and cleaned up the plotters.

Cleaned up my fake rate code so it almost all runs off of ntuples made by applyZPlusX in one of either ZPlusF or ZPlusFF mode, rather than different selectors.

Added a plotter for their fakes, NonMCBackground/src/plotTheirFakes.cc

Made some adjustments to fake selector to be in sync tih ZPlusX and vice versa.

Removed all the json_spirit and RunLumiRangeMap stuff from Util -- it was only there because we were compiling without MitCommon, now that we pick up MitCommon, it just causes problems to have this in two different places.

File Contents

# Content
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 std::string inputfile;
13 std::string outputfile;
14 TString outdir;
15 bool mc, debug;
16 unsigned era;
17 TString inputdir;
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 << "--------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 << "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 };
57
58 void parse_foargs( int argc, char** argv, FOFlags &flags );
59
60 #endif