20 muonSrc_(params.getParameter<
edm::InputTag>(
"muonSrc")),
21 metSrc_ (params.getParameter<
edm::InputTag>(
"metSrc"))
25 push_back(
"Muon Pt", muonPtMin );
26 push_back(
"MET" , metMin );
27 set(
"Muon Pt");
set(
"MET");
29 if ( params.
exists(
"cutsToIgnore") ){
30 setIgnoredCuts( params.
getParameter<std::vector<std::string> >(
"cutsToIgnore") );
32 retInternal_ = getBitTemplate();
49 bool gotMuons =
event.getByLabel(
muonSrc_, muons);
50 bool gotMET =
event.getByLabel(
metSrc_, met );
60 if( muons->size() > 0 ){
Analysis-level MET class.
T getParameter(std::string const &) const
virtual double pt() const final
transverse momentum
index_type metIndex_
index for MET cut
bool exists(std::string const ¶meterName) const
checks if a parameter exists
edm::InputTag muonSrc_
muon input
edm::InputTag metSrc_
met input
pat::Muon const & wMuon() const
return muon candidate of W boson
WSelector(edm::ParameterSet const ¶ms)
constructor
pat::MET const & met() const
return MET of W boson
strbitset & set(bool val=true)
set method of all bits
virtual ~WSelector()
destructor
virtual bool operator()(edm::EventBase const &event, pat::strbitset &ret)
here is where the selection occurs
pat::MET const * met_
MET from W boson.
index_type muonPtIndex_
index for muon Pt cut
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.