37 #include "TLorentzVector.h"
64 void endJob()
override;
106 eb_trIsoCut_ = iConfig.
getParameter<
double>(
"eb_trIsoCut");
107 eb_ecalIsoCut_ = iConfig.
getParameter<
double>(
"eb_ecalIsoCut");
108 eb_hcalIsoCut_ = iConfig.
getParameter<
double>(
"eb_hcalIsoCut");
112 ee_trIsoCut_ = iConfig.
getParameter<
double>(
"ee_trIsoCut");
113 ee_ecalIsoCut_ = iConfig.
getParameter<
double>(
"ee_ecalIsoCut");
114 ee_hcalIsoCut_ = iConfig.
getParameter<
double>(
"ee_hcalIsoCut");
119 invMassCut_ = iConfig.
getParameter<
double>(
"invMassCut");
121 electronCollection_ =
124 offlineBSCollection_ =
179 if (eleRef->
pt() < ptCut_)
182 if (eleRef->
isEB()) {
193 }
else if (eleRef->
isEE()) {
224 iEvent.getByLabel(offlineBSCollection_, pBeamSpot);
235 if (!electronSelection(&(*myEle), bspotPosition))
238 if (myEle->pt() >
ptMax) {
240 ptMaxEle = &(*myEle);
244 float maxInv = -999.;
247 v1.SetPtEtaPhiM(ptMaxEle->
pt(), ptMaxEle->
eta(), ptMaxEle->
phi(), 0);
249 for (
unsigned int iEle = 0; iEle <
goodElectrons.size(); ++iEle)
253 if ((v1 + v2).M() > maxInv)
254 maxInv = (v1 + v2).M();