ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitHzz4l/LeptonSelection/interface/ElectronSelection.h
Revision: 1.5
Committed: Tue May 22 22:31:17 2012 UTC (12 years, 11 months ago) by anlevin
Content type: text/plain
Branch: MAIN
Changes since 1.4: +6 -6 lines
Log Message:
made changes for new round of synchronization

File Contents

# User Rev Content
1 khahn 1.4 #ifndef ELECTRON_SELECTION
2     #define ELECTRON_SELECTION
3 khahn 1.1
4     #include <vector>
5     #include <cassert>
6     #include <math.h>
7     #include <map>
8    
9     #include "Vertex.h"
10     #include "Electron.h"
11     #include "ElectronCol.h"
12     #include "PFCandidate.h"
13    
14     #include "TMath.h"
15    
16     #include "TMVA/Factory.h"
17     #include "TMVA/Tools.h"
18     #include "TMVA/Reader.h"
19     #include "TMVA/MethodCuts.h"
20    
21     #include "ParseArgs.h"
22     #include "SelectionStatus.h"
23    
24     #define ELE_IDMVA_CUT_BIN0 0.369
25     #define ELE_IDMVA_CUT_BIN1 -0.025
26     #define ELE_IDMVA_CUT_BIN2 0.531
27     #define ELE_IDMVA_CUT_BIN3 0.735
28     #define ELE_IDMVA_CUT_BIN4 0.467
29     #define ELE_IDMVA_CUT_BIN5 0.795
30    
31 khahn 1.3 #define ELE_REFERENCE_IDMVA_CUT_BIN0 0.470 // eta<0.8, pt<10
32     #define ELE_REFERENCE_IDMVA_CUT_BIN1 0.004 // 0.8<eta<1.479, pt<10
33     #define ELE_REFERENCE_IDMVA_CUT_BIN2 0.295 // eta>1.478, pt<10
34     #define ELE_REFERENCE_IDMVA_CUT_BIN3 0.500 // eta<0.8, pt>10
35     #define ELE_REFERENCE_IDMVA_CUT_BIN4 0.120 // 0.8<eta<1.479, pt>10
36     #define ELE_REFERENCE_IDMVA_CUT_BIN5 0.600 // eta>1.478, pt>10
37    
38     #define ELE_LOOSE_IDMVA_CUT_BIN0 0.369
39     #define ELE_LOOSE_IDMVA_CUT_BIN1 -0.025
40     #define ELE_LOOSE_IDMVA_CUT_BIN2 0.531
41     #define ELE_LOOSE_IDMVA_CUT_BIN3 0.735
42     #define ELE_LOOSE_IDMVA_CUT_BIN4 0.467
43     #define ELE_LOOSE_IDMVA_CUT_BIN5 0.795
44    
45     #define ELE_TIGHT_IDMVA_CUT_BIN0 0.093
46     #define ELE_TIGHT_IDMVA_CUT_BIN1 0.451
47     #define ELE_TIGHT_IDMVA_CUT_BIN2 0.595
48     #define ELE_TIGHT_IDMVA_CUT_BIN3 0.881
49     #define ELE_TIGHT_IDMVA_CUT_BIN4 0.731
50     #define ELE_TIGHT_IDMVA_CUT_BIN5 0.891
51    
52 khahn 1.1 using namespace std;
53 khahn 1.2
54 anlevin 1.5 SelectionStatus electronDummyVeto(ControlFlags &, const mithep::Electron*, const mithep::Vertex *);
55     SelectionStatus electronCutBasedVeto(ControlFlags &, const mithep::Electron*, const mithep::Vertex *);
56 khahn 1.1
57 anlevin 1.5 SelectionStatus electronPreSelection(ControlFlags &, const mithep::Electron *, const mithep::Vertex *);
58     SelectionStatus electronReferencePreSelection(ControlFlags &, const mithep::Electron *, const mithep::Vertex *);
59 khahn 1.1
60     SelectionStatus electronIDMVASelection(ControlFlags &ctrl,
61     const mithep::Electron *ele,
62 anlevin 1.5 const mithep::Vertex * vtx );
63 khahn 1.3 SelectionStatus electronReferenceIDMVASelection(ControlFlags &ctrl,
64     const mithep::Electron *ele,
65 anlevin 1.5 const mithep::Vertex * vtx );
66 khahn 1.1 void initElectronIDMVA();
67    
68     #endif
69