Example class of an EventSelector to apply a simple W Boson selection. More...
#include "PhysicsTools/FWLite/interface/WSelector.h"
Public Member Functions | |
pat::MET const & | met () const |
return MET of W boson More... | |
pat::MET const & | met () const |
return MET of W boson More... | |
virtual bool | operator() (edm::EventBase const &event, pat::strbitset &ret) |
here is where the selection occurs More... | |
bool | operator() (edm::EventBase const &event, pat::strbitset &ret) override |
here is where the selection occurs More... | |
pat::Muon const & | wMuon () const |
return muon candidate of W boson More... | |
pat::Muon const & | wMuon () const |
return muon candidate of W boson More... | |
WSelector (edm::ParameterSet const ¶ms) | |
constructor More... | |
WSelector (edm::ParameterSet const ¶ms) | |
constructor More... | |
virtual | ~WSelector () |
destructor More... | |
~WSelector () override | |
destructor More... | |
Public Member Functions inherited from EventSelector | |
const std::vector< std::string > & | description () |
EventSelector () | |
EventSelector (const edm::ParameterSet &iConfig, edm::ConsumesCollector &&iC) | |
EventSelector (const edm::ParameterSet &iConfig, edm::ConsumesCollector &iC) | |
const std::string & | name () const |
name of the module (from configuration) More... | |
virtual bool | select (const edm::Event &) const =0 |
decision of the selector module More... | |
virtual | ~EventSelector () |
Protected Attributes | |
pat::MET const * | met_ |
MET from W boson. More... | |
index_type | metIndex_ |
index for MET cut More... | |
edm::InputTag | metSrc_ |
met input More... | |
index_type | muonPtIndex_ |
index for muon Pt cut More... | |
edm::InputTag | muonSrc_ |
muon input More... | |
pat::Muon const * | wMuon_ |
muon candidate from W boson More... | |
Protected Attributes inherited from EventSelector | |
std::vector< std::string > | description_ |
std::string | name_ |
Example class of an EventSelector to apply a simple W Boson selection.
Example class for of an EventSelector as defined in the SelectorUtils package. EventSelectors may be used to facilitate cutflows and to implement selections independent from the event loop in FWLite or full framework.
Definition at line 16 of file WSelector.h.
|
inline |
constructor
Definition at line 19 of file WSelector.h.
References met_, wplusjetsAnalysis_cfi::metMin, mhtProducer_cfi::muonPtMin, CalibrationSummaryClient_cfi::params, and wMuon_.
|
inlineoverride |
|
inline |
constructor
Definition at line 21 of file WSelectorFast.h.
References met_, wplusjetsAnalysis_cfi::metMin, mhtProducer_cfi::muonPtMin, CalibrationSummaryClient_cfi::params, and wMuon_.
|
inlinevirtual |
|
inline |
return MET of W boson
Definition at line 39 of file WSelector.h.
References met_.
Referenced by objects.METAnalyzer.METAnalyzer::applyDeltaMet(), and operator()().
|
inline |
return MET of W boson
Definition at line 41 of file WSelectorFast.h.
References met_.
Referenced by objects.METAnalyzer.METAnalyzer::applyDeltaMet().
|
inlinevirtual |
here is where the selection occurs
Definition at line 44 of file WSelectorFast.h.
References TkAlMuonSelectors_cfi::cut, met(), met_, metIndex_, metSrc_, muonPtIndex_, PDWG_BPHSkim_cff::muons, muonSrc_, reco::LeafCandidate::pt(), runTheMatrix::ret, and wMuon_.
|
inlineoverride |
here is where the selection occurs
Definition at line 42 of file WSelector.h.
References TkAlMuonSelectors_cfi::cut, met(), met_, metSrc_, PDWG_BPHSkim_cff::muons, muonSrc_, reco::LeafCandidate::pt(), runTheMatrix::ret, and wMuon_.
|
inline |
|
inline |
|
protected |
MET from W boson.
Definition at line 81 of file WSelector.h.
Referenced by met(), operator()(), and WSelector().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
muon candidate from W boson
Definition at line 79 of file WSelector.h.
Referenced by operator()(), wMuon(), and WSelector().