26 :
src_(cfg.getParameter<edm::InputTag>(
"src")),
27 srcCorrections_(cfg.getParameter<std::vector<edm::InputTag> >(
"srcCorrections"))
29 produces<METCollection>(
"");
53 product->push_back(outMET);
77 double px = met.
px() + correction.
mex;
78 double py = met.
py() + correction.
mey;
79 double pt =
sqrt(px*px + py*py);
SpecificPFMETData getSpecific() const
std::vector< reco::PFMET > METCollection
virtual const Point & vertex() const
vertex position
#define DEFINE_FWK_MODULE(type)
reco::PFMET applyCorrection(const reco::PFMET &srcMET, const CorrMETData &correction)
CorrectedPFMETProducer2(const edm::ParameterSet &cfg)
~CorrectedPFMETProducer2()
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual double px() const
x coordinate of momentum vector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
CorrMETData readAndSumCorrections(edm::Event &evt, const edm::EventSetup &es)
void produce(edm::Event &evt, const edm::EventSetup &es)
reco::Candidate::LorentzVector constructP4From(const reco::PFMET &met, const CorrMETData &correction)
virtual double py() const
y coordinate of momentum vector
std::vector< edm::InputTag > srcCorrections_