12 |
|
#include "SelectionStatus.h" |
13 |
|
#include "SimpleLepton.h" |
14 |
|
|
15 |
– |
|
16 |
– |
|
15 |
|
#define MUON_ISOMVA_CUT_BIN0 -0.615 |
16 |
< |
#define MUON_ISOMVA_CUT_BIN1 0.215 |
17 |
< |
#define MUON_ISOMVA_CUT_BIN2 -0.845 |
18 |
< |
#define MUON_ISOMVA_CUT_BIN3 0.075 |
19 |
< |
#define MUON_ISOMVA_CUT_BIN4 -0.999575 |
20 |
< |
#define MUON_ISOMVA_CUT_BIN5 -0.997775 |
21 |
< |
|
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 |
16 |
> |
#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 |
> |
|
22 |
> |
#define MUON_ISOMVA_FORPFID_CUT_BIN0 -0.5934 |
23 |
> |
#define MUON_ISOMVA_FORPFID_CUT_BIN1 0.3374 |
24 |
> |
#define MUON_ISOMVA_FORPFID_CUT_BIN2 -0.7666 |
25 |
> |
#define MUON_ISOMVA_FORPFID_CUT_BIN3 0.4102 |
26 |
> |
#define MUON_ISOMVA_FORPFID_CUT_BIN4 -0.989 |
27 |
> |
#define MUON_ISOMVA_FORPFID_CUT_BIN5 -0.9946 |
28 |
> |
|
29 |
> |
#define MUON_ISOMVA_LOOSE_FORPFID_CUT_BIN0 -0.5934 |
30 |
> |
#define MUON_ISOMVA_LOOSE_FORPFID_CUT_BIN1 0.3374 |
31 |
> |
#define MUON_ISOMVA_LOOSE_FORPFID_CUT_BIN2 -0.7666 |
32 |
> |
#define MUON_ISOMVA_LOOSE_FORPFID_CUT_BIN3 0.4102 |
33 |
> |
#define MUON_ISOMVA_LOOSE_FORPFID_CUT_BIN4 -0.989 |
34 |
> |
#define MUON_ISOMVA_LOOSE_FORPFID_CUT_BIN5 -0.9946 |
35 |
> |
|
36 |
> |
#define MUON_ISOMVA_TIGHT_FORPFID_CUT_BIN0 -0.5934 |
37 |
> |
#define MUON_ISOMVA_TIGHT_FORPFID_CUT_BIN1 0.3374 |
38 |
> |
#define MUON_ISOMVA_TIGHT_FORPFID_CUT_BIN2 -0.7666 |
39 |
> |
#define MUON_ISOMVA_TIGHT_FORPFID_CUT_BIN3 0.4102 |
40 |
> |
#define MUON_ISOMVA_TIGHT_FORPFID_CUT_BIN4 -0.989 |
41 |
> |
#define MUON_ISOMVA_TIGHT_FORPFID_CUT_BIN5 -0.9946 |
42 |
> |
|
43 |
> |
#define ELECTRON_LOOSE_ISOMVA_CUT_BIN0 0.385 |
44 |
> |
#define ELECTRON_LOOSE_ISOMVA_CUT_BIN1 -0.083 |
45 |
> |
#define ELECTRON_LOOSE_ISOMVA_CUT_BIN2 -0.573 |
46 |
> |
#define ELECTRON_LOOSE_ISOMVA_CUT_BIN3 0.413 |
47 |
> |
#define ELECTRON_LOOSE_ISOMVA_CUT_BIN4 0.271 |
48 |
> |
#define ELECTRON_LOOSE_ISOMVA_CUT_BIN5 0.135 |
49 |
> |
|
50 |
> |
#define ELECTRON_TIGHT_ISOMVA_CUT_BIN0 0.533 |
51 |
> |
#define ELECTRON_TIGHT_ISOMVA_CUT_BIN1 -0.237 |
52 |
> |
#define ELECTRON_TIGHT_ISOMVA_CUT_BIN2 -0.573 |
53 |
> |
#define ELECTRON_TIGHT_ISOMVA_CUT_BIN3 0.521 |
54 |
> |
#define ELECTRON_TIGHT_ISOMVA_CUT_BIN4 0.531 |
55 |
> |
#define ELECTRON_TIGHT_ISOMVA_CUT_BIN5 0.493 |
56 |
> |
|
57 |
> |
#define ELECTRON_REFERENCE_PFISO_CUT 0.25 |
58 |
> |
#define MUON_REFERENCE_PFISO_CUT 0.25 |
59 |
|
|
60 |
|
Float_t computePFMuonIso(const mithep::Muon *muon, |
61 |
|
const mithep::Vertex & vtx, |
81 |
|
mithep::MuonTools::EMuonEffectiveAreaTarget EffectiveAreaVersion, |
82 |
|
vector<const mithep::Muon*> muonsToVeto, |
83 |
|
vector<const mithep::Electron*> electronsToVeto); |
84 |
+ |
double muonPFIso04(ControlFlags &ctrl, |
85 |
+ |
const mithep::Muon * mu, |
86 |
+ |
const mithep::Vertex & vtx, |
87 |
+ |
const mithep::Array<mithep::PFCandidate> * fPFCandidates, |
88 |
+ |
const mithep::Array<mithep::PileupEnergyDensity> * fPUEnergyDensity, |
89 |
+ |
mithep::MuonTools::EMuonEffectiveAreaTarget EffectiveAreaVersion, |
90 |
+ |
vector<const mithep::Muon*> muonsToVeto, |
91 |
+ |
vector<const mithep::Electron*> electronsToVeto); |
92 |
+ |
// hacked version |
93 |
+ |
double muonPFIso04(ControlFlags &ctrl, |
94 |
+ |
const mithep::Muon * mu, |
95 |
+ |
const mithep::Vertex & vtx, |
96 |
+ |
const mithep::Array<mithep::PFCandidate> * fPFCandidates, |
97 |
+ |
float rho, // the hack |
98 |
+ |
mithep::MuonTools::EMuonEffectiveAreaTarget EffectiveAreaVersion, |
99 |
+ |
vector<const mithep::Muon*> muonsToVeto, |
100 |
+ |
vector<const mithep::Electron*> electronsToVeto); |
101 |
+ |
// |
102 |
+ |
SelectionStatus muonReferenceIsoSelection(ControlFlags &ctrl, |
103 |
+ |
const mithep::Muon * mu, |
104 |
+ |
const mithep::Vertex & vtx, |
105 |
+ |
const mithep::Array<mithep::PFCandidate> * fPFCandidates, |
106 |
+ |
const mithep::Array<mithep::PileupEnergyDensity> * fPUEnergyDensity, |
107 |
+ |
mithep::MuonTools::EMuonEffectiveAreaTarget EffectiveAreaVersion, |
108 |
+ |
vector<const mithep::Muon*> muonsToVeto, |
109 |
+ |
vector<const mithep::Electron*> electronsToVeto); |
110 |
+ |
// hacked version |
111 |
+ |
SelectionStatus muonReferenceIsoSelection(ControlFlags &ctrl, |
112 |
+ |
const mithep::Muon * mu, |
113 |
+ |
const mithep::Vertex & vtx, |
114 |
+ |
const mithep::Array<mithep::PFCandidate> * fPFCandidates, |
115 |
+ |
float, |
116 |
+ |
mithep::MuonTools::EMuonEffectiveAreaTarget EffectiveAreaVersion, |
117 |
+ |
vector<const mithep::Muon*> muonsToVeto, |
118 |
+ |
vector<const mithep::Electron*> electronsToVeto); |
119 |
|
|
120 |
|
void initElectronIsoMVA(); |
121 |
|
SelectionStatus electronIsoMVASelection(ControlFlags &ctrl, |
126 |
|
mithep::ElectronTools::EElectronEffectiveAreaTarget EffectiveAreaVersion, |
127 |
|
vector<const mithep::Muon*> muonsToVeto, |
128 |
|
vector<const mithep::Electron*> electronsToVeto); |
129 |
< |
|
129 |
> |
float electronPFIso04(ControlFlags &ctrl, |
130 |
> |
const mithep::Electron * ele, |
131 |
> |
const mithep::Vertex & vtx, |
132 |
> |
const mithep::Array<mithep::PFCandidate> * fPFCandidates, |
133 |
> |
const mithep::Array<mithep::PileupEnergyDensity> * fPUEnergyDensity, |
134 |
> |
mithep::ElectronTools::EElectronEffectiveAreaTarget EffectiveAreaVersion, |
135 |
> |
vector<const mithep::Muon*> muonsToVeto, |
136 |
> |
vector<const mithep::Electron*> electronsToVeto) ; |
137 |
> |
// hacked version |
138 |
> |
float electronPFIso04(ControlFlags &ctrl, |
139 |
> |
const mithep::Electron * ele, |
140 |
> |
const mithep::Vertex & vtx, |
141 |
> |
const mithep::Array<mithep::PFCandidate> * fPFCandidates, |
142 |
> |
float rho, // the hack |
143 |
> |
mithep::ElectronTools::EElectronEffectiveAreaTarget EffectiveAreaVersion, |
144 |
> |
vector<const mithep::Muon*> muonsToVeto, |
145 |
> |
vector<const mithep::Electron*> electronsToVeto) ; |
146 |
> |
// |
147 |
> |
SelectionStatus electronReferenceIsoSelection(ControlFlags &ctrl, |
148 |
> |
const mithep::Electron * ele, |
149 |
> |
const mithep::Vertex & vtx, |
150 |
> |
const mithep::Array<mithep::PFCandidate> * fPFCandidates, |
151 |
> |
const mithep::Array<mithep::PileupEnergyDensity> * fPUEnergyDensity, |
152 |
> |
mithep::ElectronTools::EElectronEffectiveAreaTarget EffectiveAreaVersion, |
153 |
> |
vector<const mithep::Muon*> muonsToVeto, |
154 |
> |
vector<const mithep::Electron*> electronsToVeto); |
155 |
> |
// hacked version |
156 |
> |
SelectionStatus electronReferenceIsoSelection(ControlFlags &ctrl, |
157 |
> |
const mithep::Electron * ele, |
158 |
> |
const mithep::Vertex & vtx, |
159 |
> |
const mithep::Array<mithep::PFCandidate> * fPFCandidates, |
160 |
> |
float, |
161 |
> |
mithep::ElectronTools::EElectronEffectiveAreaTarget EffectiveAreaVersion, |
162 |
> |
vector<const mithep::Muon*> muonsToVeto, |
163 |
> |
vector<const mithep::Electron*> electronsToVeto); |