ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitHzz4l/Efficiency/interface/FitArgs.h
Revision: 1.1
Committed: Tue Jun 12 21:31:43 2012 UTC (12 years, 11 months ago) by dkralph
Content type: text/plain
Branch: MAIN
CVS Tags: compiled, HEAD
Log Message:
First commit: A tag and probe selector for id, iso, or trigger efficiencies and a port of Kevin's fitting code.

File Contents

# Content
1 #ifndef FITARGS
2 #define FITARGS
3
4 #include <iostream>
5 #include <sstream>
6 #include "TString.h"
7 #include "ParseArgs.h"
8 using namespace std;
9
10 class FitFlags {
11 public :
12 TString conf;
13 Int_t sigModPass;
14 Int_t bkgModPass;
15 Int_t sigModFail;
16 Int_t bkgModFail;
17 TString infilename;
18 TString outputDir;
19 TString format;
20 Bool_t doAbsEta;
21 Int_t doPU;
22 Int_t charge;
23 TString mcfilename;
24 UInt_t runNumLo;
25 UInt_t runNumHi;
26
27 FitFlags():
28 conf(""),sigModPass(0),bkgModPass(0),sigModFail(0),bkgModFail(0),infilename(""),outputDir(""),
29 format(""),doAbsEta(true),doPU(2),charge(0),mcfilename(""),runNumLo(0),runNumHi(999999) {};
30
31 void dump() {
32 cout << "--------fit options---------" << endl;
33 cout << "conf: " << conf << endl;
34 cout << "sigModPass: " << sigModPass << endl;
35 cout << "bkgModPass: " << bkgModPass << endl;
36 cout << "sigModFail: " << sigModFail << endl;
37 cout << "bkgModFail: " << bkgModFail << endl;
38 cout << "infilename: " << infilename << endl;
39 cout << "outputDir: " << outputDir << endl;
40 cout << "format: " << format << endl;
41 cout << "doAbsEta: " << doAbsEta << endl;
42 cout << "doPU: " << doPU << endl;
43 cout << "charge: " << charge << endl;
44 cout << "mcfilename: " << mcfilename << endl;
45 cout << "runNumLo: " << runNumLo << endl;
46 cout << "runNumHi: " << runNumHi << endl;
47 cout << "------------------------" << endl;
48 };
49 };
50
51 void parse_fitargs( int argc, char** argv, FitFlags &flags );
52
53 #endif