Implements edm::EDProducer.
Definition at line 113 of file WMuNuProducer.cc.
References reco::WMuNuCandidate::acop(), reco::WMuNuCandidate::eT(), edm::Event::getByLabel(), reco::WMuNuCandidate::getMuon(), reco::WMuNuCandidate::getNeutrino(), edm::Ptr< T >::isNull(), LogTrace, reco::WMuNuCandidate::massT(), CaloMET_cfi::met, metTag_, metsig::muon, muonTag_, reco::LeafCandidate::pt(), ptComparator, edm::Event::put(), reco::LeafCandidate::px(), reco::LeafCandidate::py(), reco::LeafCandidate::pz(), and python.multivaluedict::sort().
Referenced by JSONExport.JsonExport::export(), HTMLExport.HTMLExport::export(), and HTMLExport.HTMLExportStatic::export().
118 LogError(
"") <<
">>> Muon collection does not exist !!!";
121 int muonCollectionSize = muonCollection->size();
126 LogError(
"") <<
">>> MET collection does not exist !!!";
133 if (muonCollectionSize<1)
return;
140 for (
int indx=0; indx<muonCollectionSize; indx++){
142 if (!
muon->isGlobalMuon())
continue;
143 if (
muon->globalTrack().isNull())
continue;
144 if (
muon->innerTrack().isNull())
continue;
147 LogTrace(
"")<<
"Building WMuNu Candidate!";
149 LogTrace(
"") <<
"\t... W mass, W_et: "<<WCand->
massT()<<
", "<<WCand->
eT()<<
"[GeV]";
150 LogTrace(
"") <<
"\t... W_px, W_py: "<<WCand->
px()<<
", "<< WCand->
py() <<
"[GeV]";
154 WMuNuCandidates->push_back(*WCand);
159 ev.
put(WMuNuCandidates);
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
std::vector< reco::WMuNuCandidate > WMuNuCandidateCollection
virtual double px() const
x coordinate of momentum vector
virtual double pt() const
transverse momentum
virtual double pz() const
z coordinate of momentum vector
const reco::Muon & getMuon() const
const reco::MET & getNeutrino() const
virtual double py() const
y coordinate of momentum vector