Go to the documentation of this file.
9 produces<reco::PFMETCollection>();
19 if (!
pfMet.isValid()) {
20 edm::LogWarning(
"L1TPFMetNoMuProducer") <<
"invalid collection for pfMet" << std::endl;
23 if (!
muons.isValid()) {
24 edm::LogWarning(
"L1TPFMetNoMuProducer") <<
"invalid collection for muons" << std::endl;
29 double pfMetNoMuPx = thePFMetNoMu.
px();
30 double pfMetNoMuPy = thePFMetNoMu.
py();
32 double muPx(0.), muPy(0.);
35 if (
muon->isPFMuon()) {
45 thePFMetNoMu.
setP4(pfMetNoMuP4);
std::vector< reco::PFMET > PFMETCollection
collection of PFMET objects
SpecificPFMETData getSpecific() const
L1TPFMetNoMuProducer(const edm::ParameterSet &ps)
#define DEFINE_FWK_MODULE(type)
double py() const final
y coordinate of momentum vector
std::vector< Muon > MuonCollection
collection of Muon objects
const edm::EDGetTokenT< reco::MuonCollection > theMuonCollection_
const LorentzVector & p4() const final
four-momentum Lorentz vector
const Point & vertex() const override
vertex position (overwritten by PF...)
void setP4(const LorentzVector &p4) final
set 4-momentum
void produce(edm::Event &event, const edm::EventSetup &eventSetup) override
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
const edm::EDGetTokenT< reco::PFMETCollection > thePFMETCollection_
double px() const final
x coordinate of momentum vector