#include <AddCorrectionsToGenericMET.h>
Public Member Functions | |
AddCorrectionsToGenericMET () | |
reco::CaloMET | getCorrectedCaloMET (const reco::CaloMET &srcMET, edm::Event &evt, const edm::EventSetup &es) |
reco::MET | getCorrectedMET (const reco::MET &srcMET, edm::Event &evt, const edm::EventSetup &es) |
reco::PFMET | getCorrectedPFMET (const reco::PFMET &srcMET, edm::Event &evt, const edm::EventSetup &es) |
void | setCorTokens (std::vector< edm::EDGetTokenT< CorrMETData > > const &corrTokens) |
~AddCorrectionsToGenericMET () | |
Private Member Functions | |
reco::Candidate::LorentzVector | constructP4From (const reco::MET &met, const CorrMETData &correction) |
CorrMETData | getCorrection (const reco::MET &srcMET, edm::Event &evt, const edm::EventSetup &es) |
Private Attributes | |
std::vector< edm::EDGetTokenT < CorrMETData > > | corrTokens_ |
generic class for MET corrections
Definition at line 27 of file AddCorrectionsToGenericMET.h.
|
inline |
Definition at line 30 of file AddCorrectionsToGenericMET.h.
|
inline |
Definition at line 31 of file AddCorrectionsToGenericMET.h.
|
private |
Definition at line 9 of file AddCorrectionsToGenericMET.cc.
References CorrMETData::mex, CorrMETData::mey, EnergyCorrector::pt, reco::LeafCandidate::px(), reco::LeafCandidate::py(), and mathSSE::sqrt().
Referenced by getCorrectedCaloMET(), getCorrectedMET(), and getCorrectedPFMET().
reco::CaloMET AddCorrectionsToGenericMET::getCorrectedCaloMET | ( | const reco::CaloMET & | srcMET, |
edm::Event & | evt, | ||
const edm::EventSetup & | es | ||
) |
Definition at line 52 of file AddCorrectionsToGenericMET.cc.
References constructP4From(), corr, getCorrection(), reco::CaloMET::getSpecific(), CorrMETData::sumet, reco::MET::sumEt(), and reco::LeafCandidate::vertex().
Referenced by CorrectedCaloMETProducer::produce().
reco::MET AddCorrectionsToGenericMET::getCorrectedMET | ( | const reco::MET & | srcMET, |
edm::Event & | evt, | ||
const edm::EventSetup & | es | ||
) |
Definition at line 32 of file AddCorrectionsToGenericMET.cc.
References constructP4From(), corr, getCorrection(), CorrMETData::sumet, reco::MET::sumEt(), and reco::LeafCandidate::vertex().
Referenced by CorrectedPATMETProducer::produce(), and runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties::toolCode().
reco::PFMET AddCorrectionsToGenericMET::getCorrectedPFMET | ( | const reco::PFMET & | srcMET, |
edm::Event & | evt, | ||
const edm::EventSetup & | es | ||
) |
Definition at line 42 of file AddCorrectionsToGenericMET.cc.
References constructP4From(), corr, getCorrection(), reco::PFMET::getSpecific(), CorrMETData::sumet, reco::MET::sumEt(), and reco::LeafCandidate::vertex().
Referenced by CorrectedPFMETProducer::produce().
|
private |
Definition at line 19 of file AddCorrectionsToGenericMET.cc.
References corr, corrTokens_, and edm::Event::getByToken().
Referenced by JetReCalibrator.JetReCalibrator::correct(), getCorrectedCaloMET(), getCorrectedMET(), and getCorrectedPFMET().
void AddCorrectionsToGenericMET::setCorTokens | ( | std::vector< edm::EDGetTokenT< CorrMETData > > const & | corrTokens | ) |
Definition at line 4 of file AddCorrectionsToGenericMET.cc.
References corrTokens_.
Referenced by CorrectedCaloMETProducer::CorrectedCaloMETProducer(), CorrectedPATMETProducer::CorrectedPATMETProducer(), and CorrectedPFMETProducer::CorrectedPFMETProducer().
|
private |
Definition at line 43 of file AddCorrectionsToGenericMET.h.
Referenced by getCorrection(), and setCorTokens().