ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitHzz4l/LeptonSelection/interface/IsolationSelection.h
Revision: 1.5
Committed: Mon Apr 30 21:42:16 2012 UTC (13 years ago) by khahn
Content type: text/plain
Branch: MAIN
CVS Tags: synched
Changes since 1.4: +5 -7 lines
Log Message:
synched ...

File Contents

# User Rev Content
1 khahn 1.4 #include "Electron.h"
2     #include "Muon.h"
3     #include "Vertex.h"
4     #include "PFCandidate.h"
5     #include "PFCandidateCol.h"
6     #include "PileupEnergyDensity.h"
7    
8     #include "MuonTools.h"
9     #include "ElectronTools.h"
10 khahn 1.1
11     #include "ParseArgs.h"
12     #include "SelectionStatus.h"
13 khahn 1.2 #include "SimpleLepton.h"
14 khahn 1.1
15 khahn 1.4 #define MUON_ISOMVA_CUT_BIN0 -0.615
16 khahn 1.5 #define MUON_ISOMVA_CUT_BIN1 0.235
17     #define MUON_ISOMVA_CUT_BIN2 -0.825
18     #define MUON_ISOMVA_CUT_BIN3 0.155
19     #define MUON_ISOMVA_CUT_BIN4 -0.965
20     #define MUON_ISOMVA_CUT_BIN5 -0.989
21 khahn 1.4
22     #define ELECTRON_ISOMVA_CUT_BIN0 0.385
23     #define ELECTRON_ISOMVA_CUT_BIN1 -0.083
24     #define ELECTRON_ISOMVA_CUT_BIN2 -0.573
25     #define ELECTRON_ISOMVA_CUT_BIN3 0.413
26     #define ELECTRON_ISOMVA_CUT_BIN4 0.271
27     #define ELECTRON_ISOMVA_CUT_BIN5 0.135
28    
29     Float_t computePFMuonIso(const mithep::Muon *muon,
30     const mithep::Vertex & vtx,
31     const mithep::Array<mithep::PFCandidate> * fPFCandidates,
32     const Double_t dRMax);
33    
34     Float_t computePFEleIso(const mithep::Electron *electron,
35     const mithep::Vertex & fVertex,
36     const mithep::Array<mithep::PFCandidate> * fPFCandidates,
37     const Double_t dRMax);
38    
39     SelectionStatus electronIsoSelection(ControlFlags &, const mithep::Electron *, const mithep::Vertex &, const mithep::Array<mithep::PFCandidate> * fPFCandidateCol );
40     SelectionStatus muonIsoSelection(ControlFlags &, const mithep::Muon *, const mithep::Vertex &, const mithep::Array<mithep::PFCandidate> * fPFCandidateCol );
41 khahn 1.2 bool pairwiseIsoSelection( ControlFlags &, vector<SimpleLepton> &, float rho );
42 anlevin 1.3 bool noIso(ControlFlags &, vector<SimpleLepton> &, float rho);
43 khahn 1.4
44     void initMuonIsoMVA();
45     SelectionStatus muonIsoMVASelection(ControlFlags &ctrl,
46     const mithep::Muon * mu,
47     const mithep::Vertex & vtx,
48     const mithep::Array<mithep::PFCandidate> * fPFCandidates,
49     const mithep::Array<mithep::PileupEnergyDensity> * fPUEnergyDensity,
50     mithep::MuonTools::EMuonEffectiveAreaTarget EffectiveAreaVersion,
51     vector<const mithep::Muon*> muonsToVeto,
52     vector<const mithep::Electron*> electronsToVeto);
53    
54     void initElectronIsoMVA();
55     SelectionStatus electronIsoMVASelection(ControlFlags &ctrl,
56     const mithep::Electron * ele,
57     const mithep::Vertex & vtx,
58     const mithep::Array<mithep::PFCandidate> * fPFCandidates,
59     const mithep::Array<mithep::PileupEnergyDensity> * fPUEnergyDensity,
60     mithep::ElectronTools::EElectronEffectiveAreaTarget EffectiveAreaVersion,
61     vector<const mithep::Muon*> muonsToVeto,
62     vector<const mithep::Electron*> electronsToVeto);
63