144 |
|
#define MUON_ISOMVA_LOOSE_FORPFID_CUT_OPT_BIN5 -0.9946 |
145 |
|
#endif |
146 |
|
|
147 |
< |
#define ELECTRON_REFERENCE_PFISO_CUT 0.25 |
148 |
< |
#define MUON_REFERENCE_PFISO_CUT 0.25 |
149 |
< |
/* #define ELECTRON_REFERENCE_PFISO_CUT 0.4 */ |
150 |
< |
/* #define MUON_REFERENCE_PFISO_CUT 0.4 */ |
147 |
> |
/* #define ELECTRON_REFERENCE_PFISO_CUT 0.25 */ |
148 |
> |
/* #define MUON_REFERENCE_PFISO_CUT 0.25 */ |
149 |
> |
#define ELECTRON_REFERENCE_PFISO_CUT 0.4 |
150 |
> |
#define MUON_REFERENCE_PFISO_CUT 0.4 |
151 |
|
|
152 |
|
Float_t computePFMuonIso(const mithep::Muon *muon, |
153 |
< |
const mithep::Vertex & vtx, |
153 |
> |
const mithep::Vertex * vtx, |
154 |
|
const mithep::Array<mithep::PFCandidate> * fPFCandidates, |
155 |
|
const Double_t dRMax); |
156 |
|
|
157 |
|
Float_t computePFEleIso(const mithep::Electron *electron, |
158 |
< |
const mithep::Vertex & fVertex, |
158 |
> |
const mithep::Vertex * fVertex, |
159 |
|
const mithep::Array<mithep::PFCandidate> * fPFCandidates, |
160 |
|
const Double_t dRMax); |
161 |
|
|
162 |
|
SelectionStatus electronIsoSelection(ControlFlags &, const mithep::Electron *, const mithep::Vertex &, const mithep::Array<mithep::PFCandidate> * fPFCandidateCol ); |
163 |
< |
SelectionStatus muonIsoSelection(ControlFlags &, const mithep::Muon *, const mithep::Vertex &, const mithep::Array<mithep::PFCandidate> * fPFCandidateCol ); |
163 |
> |
SelectionStatus muonIsoSelection(ControlFlags &, const mithep::Muon *, const mithep::Vertex *, const mithep::Array<mithep::PFCandidate> * fPFCandidateCol ); |
164 |
|
bool pairwiseIsoSelection( ControlFlags &, vector<SimpleLepton> &, float rho ); |
165 |
|
bool noIso(ControlFlags &, vector<SimpleLepton> &, float rho); |
166 |
|
|
167 |
|
void initMuonIsoMVA(); |
168 |
|
SelectionStatus muonIsoMVASelection(ControlFlags &ctrl, |
169 |
|
const mithep::Muon * mu, |
170 |
< |
const mithep::Vertex & vtx, |
170 |
> |
const mithep::Vertex * vtx, |
171 |
|
const mithep::Array<mithep::PFCandidate> * fPFCandidates, |
172 |
|
const mithep::Array<mithep::PileupEnergyDensity> * fPUEnergyDensity, |
173 |
|
mithep::MuonTools::EMuonEffectiveAreaTarget EffectiveAreaVersion, |
176 |
|
//hacked version |
177 |
|
SelectionStatus muonIsoMVASelection(ControlFlags &ctrl, |
178 |
|
const mithep::Muon * mu, |
179 |
< |
const mithep::Vertex & vtx, |
179 |
> |
const mithep::Vertex * vtx, |
180 |
|
const mithep::Array<mithep::PFCandidate> * fPFCandidates, |
181 |
|
float rho, |
182 |
|
mithep::MuonTools::EMuonEffectiveAreaTarget EffectiveAreaVersion, |
184 |
|
vector<const mithep::Electron*> electronsToVeto); |
185 |
|
double muonPFIso04(ControlFlags &ctrl, |
186 |
|
const mithep::Muon * mu, |
187 |
< |
const mithep::Vertex & vtx, |
187 |
> |
const mithep::Vertex * vtx, |
188 |
|
const mithep::Array<mithep::PFCandidate> * fPFCandidates, |
189 |
|
const mithep::Array<mithep::PileupEnergyDensity> * fPUEnergyDensity, |
190 |
|
mithep::MuonTools::EMuonEffectiveAreaTarget EffectiveAreaVersion, |
193 |
|
// hacked version |
194 |
|
double muonPFIso04(ControlFlags &ctrl, |
195 |
|
const mithep::Muon * mu, |
196 |
< |
const mithep::Vertex & vtx, |
196 |
> |
const mithep::Vertex * vtx, |
197 |
|
const mithep::Array<mithep::PFCandidate> * fPFCandidates, |
198 |
|
float rho, // the hack |
199 |
|
mithep::MuonTools::EMuonEffectiveAreaTarget EffectiveAreaVersion, |
202 |
|
// |
203 |
|
SelectionStatus muonReferenceIsoSelection(ControlFlags &ctrl, |
204 |
|
const mithep::Muon * mu, |
205 |
< |
const mithep::Vertex & vtx, |
205 |
> |
const mithep::Vertex * vtx, |
206 |
|
const mithep::Array<mithep::PFCandidate> * fPFCandidates, |
207 |
|
const mithep::Array<mithep::PileupEnergyDensity> * fPUEnergyDensity, |
208 |
|
mithep::MuonTools::EMuonEffectiveAreaTarget EffectiveAreaVersion, |
211 |
|
// hacked version |
212 |
|
SelectionStatus muonReferenceIsoSelection(ControlFlags &ctrl, |
213 |
|
const mithep::Muon * mu, |
214 |
< |
const mithep::Vertex & vtx, |
214 |
> |
const mithep::Vertex * vtx, |
215 |
|
const mithep::Array<mithep::PFCandidate> * fPFCandidates, |
216 |
|
float, |
217 |
|
mithep::MuonTools::EMuonEffectiveAreaTarget EffectiveAreaVersion, |
221 |
|
void initElectronIsoMVA(); |
222 |
|
SelectionStatus electronIsoMVASelection(ControlFlags &ctrl, |
223 |
|
const mithep::Electron * ele, |
224 |
< |
const mithep::Vertex & vtx, |
224 |
> |
const mithep::Vertex * vtx, |
225 |
|
const mithep::Array<mithep::PFCandidate> * fPFCandidates, |
226 |
|
const mithep::Array<mithep::PileupEnergyDensity> * fPUEnergyDensity, |
227 |
|
mithep::ElectronTools::EElectronEffectiveAreaTarget EffectiveAreaVersion, |
230 |
|
//hacked version |
231 |
|
SelectionStatus electronIsoMVASelection(ControlFlags &ctrl, |
232 |
|
const mithep::Electron * ele, |
233 |
< |
const mithep::Vertex & vtx, |
233 |
> |
const mithep::Vertex * vtx, |
234 |
|
const mithep::Array<mithep::PFCandidate> * fPFCandidates, |
235 |
|
float rho, |
236 |
|
mithep::ElectronTools::EElectronEffectiveAreaTarget EffectiveAreaVersion, |
247 |
|
// hacked version |
248 |
|
float electronPFIso04(ControlFlags &ctrl, |
249 |
|
const mithep::Electron * ele, |
250 |
< |
const mithep::Vertex & vtx, |
250 |
> |
const mithep::Vertex * vtx, |
251 |
|
const mithep::Array<mithep::PFCandidate> * fPFCandidates, |
252 |
|
float rho, // the hack |
253 |
|
mithep::ElectronTools::EElectronEffectiveAreaTarget EffectiveAreaVersion, |
256 |
|
// |
257 |
|
SelectionStatus electronReferenceIsoSelection(ControlFlags &ctrl, |
258 |
|
const mithep::Electron * ele, |
259 |
< |
const mithep::Vertex & vtx, |
259 |
> |
const mithep::Vertex * vtx, |
260 |
|
const mithep::Array<mithep::PFCandidate> * fPFCandidates, |
261 |
|
const mithep::Array<mithep::PileupEnergyDensity> * fPUEnergyDensity, |
262 |
|
mithep::ElectronTools::EElectronEffectiveAreaTarget EffectiveAreaVersion, |
265 |
|
// hacked version |
266 |
|
SelectionStatus electronReferenceIsoSelection(ControlFlags &ctrl, |
267 |
|
const mithep::Electron * ele, |
268 |
< |
const mithep::Vertex & vtx, |
268 |
> |
const mithep::Vertex * vtx, |
269 |
|
const mithep::Array<mithep::PFCandidate> * fPFCandidates, |
270 |
|
float, |
271 |
|
mithep::ElectronTools::EElectronEffectiveAreaTarget EffectiveAreaVersion, |