9 produces<reco::PFMETCollection>();
20 edm::LogWarning(
"L1TPFMetNoMuProducer") <<
"invalid collection for pfMet" << std::endl;
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.);
34 for (
auto muon = muons->begin();
muon != muons->end(); ++
muon) {
35 if (
muon->isPFMuon()) {
45 thePFMetNoMu.
setP4(pfMetNoMuP4);
void produce(edm::Event &event, const edm::EventSetup &eventSetup) override
SpecificPFMETData getSpecific() const
#define DEFINE_FWK_MODULE(type)
const Point & vertex() const override
vertex position (overwritten by PF...)
std::vector< Muon > MuonCollection
collection of Muon objects
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
double px() const final
x coordinate of momentum vector
double py() const final
y coordinate of momentum vector
T const * product() const
const edm::EDGetTokenT< reco::MuonCollection > theMuonCollection_
const edm::EDGetTokenT< reco::PFMETCollection > thePFMETCollection_
std::vector< reco::PFMET > PFMETCollection
collection of PFMET objects
Log< level::Warning, false > LogWarning
L1TPFMetNoMuProducer(const edm::ParameterSet &ps)
void setP4(const LorentzVector &p4) final
set 4-momentum