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();
T getParameter(std::string const &) const
double pt() const final
transverse momentum
~WZInterestingEventSelector() override
const Point & position() const
position
goodElectrons
/ ___|___ / _| ____| | ___ ___| |_ _ __ ___ _ __ | | _/ __| |_| _| | |/ _ \/ __| __| '__/ _ | '_ \...
float sigmaIetaIeta() const
T const * product() const
edm::InputTag pfMetCollection_
ALPAKA_FN_HOST_ACC ALPAKA_FN_INLINE constexpr float charge(ConstView const &tracks, int32_t i)
T getUntrackedParameter(std::string const &, T const &) const
edm::InputTag electronCollection_
float dr03TkSumPt() const
GsfTrackRef gsfTrack() const override
reference to a GsfTrack
ALPAKA_FN_HOST_ACC ALPAKA_FN_INLINE constexpr float phi(ConstView const &tracks, int32_t i)
#define DEFINE_FWK_MODULE(type)
float hcalOverEcal(const ShowerShape &ss, int depth) const
bool electronSelection(const GsfElectron *eleRef, const math::XYZPoint &bspotPosition)
XYZPointD XYZPoint
point in space with cartesian internal representation
float dr03EcalRecHitSumEt() const
WZInterestingEventSelector
float dr03HcalTowerSumEt(int depth=0) const
double phi() const final
momentum azimuthal angle
bool filter(edm::Event &, const edm::EventSetup &) override
edm::InputTag offlineBSCollection_
int charge() const final
electric charge
WZInterestingEventSelector(const edm::ParameterSet &)
double eta() const final
momentum pseudorapidity