Public Member Functions | |
OneMETShift () | |
OneMETShift (pat::MET::METUncertainty shift_, pat::MET::METCorrectionType level_, const edm::InputTag &baseTag, edm::ConsumesCollector &&cc, bool t0FromMiniAOD_, bool corShift_, bool uncShift_, bool isSmeared_=false) | |
void | readAndSet (const edm::Event &ev, pat::MET &met) const |
Private Attributes | |
const bool | corShift |
const bool | isSmeared |
const pat::MET::METCorrectionType | level |
const pat::MET::METUncertainty | shift |
const bool | t0FromMiniAOD |
edm::EDGetTokenT< pat::METCollection > | token |
const bool | uncShift |
Definition at line 27 of file PATMETSlimmer.cc.
|
inline |
Definition at line 29 of file PATMETSlimmer.cc.
References ev, RazorAnalyzer::met, and readAndSet().
pat::PATMETSlimmer::OneMETShift::OneMETShift | ( | pat::MET::METUncertainty | shift_, |
pat::MET::METCorrectionType | level_, | ||
const edm::InputTag & | baseTag, | ||
edm::ConsumesCollector && | cc, | ||
bool | t0FromMiniAOD_, | ||
bool | corShift_, | ||
bool | uncShift_, | ||
bool | isSmeared_ = false |
||
) |
Definition at line 111 of file PATMETSlimmer.cc.
References pat::MET::ElectronEnDown, pat::MET::ElectronEnUp, edm::InputTag::encode(), Exception, pat::MET::JetEnDown, pat::MET::JetEnUp, pat::MET::JetResDown, pat::MET::JetResUp, pat::MET::MuonEnDown, pat::MET::MuonEnUp, pat::MET::NoShift, pat::MET::PhotonEnDown, pat::MET::PhotonEnUp, shift, AlCaHLTBitMon_QueryRunRegistry::string, pat::MET::TauEnDown, pat::MET::TauEnUp, token, pat::MET::UnclusteredEnDown, and pat::MET::UnclusteredEnUp.
void pat::PATMETSlimmer::OneMETShift::readAndSet | ( | const edm::Event & | ev, |
pat::MET & | met | ||
) | const |
Definition at line 162 of file PATMETSlimmer.cc.
References pat::MET::corPx(), pat::MET::corPy(), corShift, pat::MET::corSumEt(), DEFINE_FWK_MODULE, edm::Event::getByToken(), isSmeared, level, reco::LeafCandidate::px(), reco::LeafCandidate::py(), pat::MET::setCorShift(), pat::MET::setUncShift(), shift, pat::MET::shiftedPx(), pat::MET::shiftedPy(), pat::MET::shiftedSumEt(), TrackRefitter_38T_cff::src, reco::MET::sumEt(), t0FromMiniAOD, token, pat::MET::Type01, and uncShift.
Referenced by OneMETShift().
|
private |
Definition at line 38 of file PATMETSlimmer.cc.
Referenced by readAndSet().
|
private |
Definition at line 40 of file PATMETSlimmer.cc.
Referenced by readAndSet().
|
private |
Definition at line 35 of file PATMETSlimmer.cc.
Referenced by readAndSet().
|
private |
Definition at line 34 of file PATMETSlimmer.cc.
Referenced by OneMETShift(), pat::PATMETSlimmer::produce(), and readAndSet().
|
private |
Definition at line 37 of file PATMETSlimmer.cc.
Referenced by readAndSet().
|
private |
Definition at line 36 of file PATMETSlimmer.cc.
Referenced by OneMETShift(), and readAndSet().
|
private |
Definition at line 39 of file PATMETSlimmer.cc.
Referenced by readAndSet().