1 #ifndef PhysicsTools_FWLite_WSelector_h 2 #define PhysicsTools_FWLite_WSelector_h 29 if (
params.exists(
"cutsToIgnore")) {
30 setIgnoredCuts(
params.getParameter<std::vector<std::string> >(
"cutsToIgnore"));
32 retInternal_ = getBitTemplate();
54 if (
met_->
pt() >
cut(
"MET",
double()) || ignoreCut(
"MET"))
59 if (!ignoreCut(
"Muon Pt")) {
60 if (!
muons->empty()) {
62 if (
wMuon_->
pt() >
cut(
"Muon Pt",
double()) || ignoreCut(
"Muon Pt"))
63 passCut(
ret,
"Muon Pt");
66 passCut(
ret,
"Muon Pt");
83 #endif // PhysicsTools_FWLite_WSelector_h Analysis-level MET class.
double pt() const final
transverse momentum
ret
prodAgent to be discontinued
pat::Muon const & wMuon() const
return muon candidate of W boson
edm::InputTag muonSrc_
muon input
muons
the two sets of parameters below are mutually exclusive, depending if RECO or ALCARECO is used the us...
edm::InputTag metSrc_
met input
WSelector(edm::ParameterSet const ¶ms)
constructor
~WSelector() override
destructor
pat::MET const * met_
MET from W boson.
bool operator()(edm::EventBase const &event, pat::strbitset &ret) override
here is where the selection occurs
deadvectors [0] push_back({0.0175431, 0.538005, 6.80997, 13.29})
pat::MET const & met() const
return MET of W boson
pat::Muon const * wMuon_
muon candidate from W boson
Example class of an EventSelector to apply a simple W Boson selection.
Analysis-level muon class.