Go to the documentation of this file.
47 double pt2 =
w2.getMuon().pt();
82 produces<WMuNuCandidateCollection>();
98 LogError(
"") <<
">>> Muon collection does not exist !!!";
106 LogError(
"") <<
">>> MET collection does not exist !!!";
112 if (muonCollectionSize < 1)
119 for (
int indx = 0; indx < muonCollectionSize; indx++) {
121 if (!
muon->isGlobalMuon())
123 if (
muon->globalTrack().isNull())
125 if (
muon->innerTrack().isNull())
129 LogTrace(
"") <<
"Building WMuNu Candidate!";
131 LogTrace(
"") <<
"\t... W mass, W_et: " << WCand->
massT() <<
", " << WCand->
eT() <<
"[GeV]";
132 LogTrace(
"") <<
"\t... W_px, W_py: " << WCand->
px() <<
", " << WCand->
py() <<
"[GeV]";
138 WMuNuCandidates->push_back(*WCand);
141 std::sort(WMuNuCandidates->begin(), WMuNuCandidates->end(),
ptComparator);
common ppss p3p6s2 common epss epspn46 common const1 w2
edm::EDGetTokenT< edm::View< reco::Muon > > muonToken_
~WMuNuProducer() override
bool operator()(reco::WMuNuCandidate w1, reco::WMuNuCandidate w2) const
double pt() const final
transverse momentum
std::vector< reco::WMuNuCandidate > WMuNuCandidateCollection
#define DEFINE_FWK_MODULE(type)
double py() const final
y coordinate of momentum vector
const reco::Muon & getMuon() const
WMuNuProducer(const edm::ParameterSet &)
const reco::MET & getNeutrino() const
edm::EDGetTokenT< edm::View< reco::MET > > metToken_
Log< level::Error, false > LogError
void produce(edm::Event &, const edm::EventSetup &) override
double px() const final
x coordinate of momentum vector
double pz() const final
z coordinate of momentum vector