Skip to content

Commit

Permalink
Merge pull request #5606 from mmarionncern/CMSSW_7_3_X_2014-09-29-020…
Browse files Browse the repository at this point in the history
…0_metCodeFix

add JECpayload protection in PhysicsTools/PatUtils/interface/ShiftedJetProducerT.h
  • Loading branch information
davidlange6 committed Sep 29, 2014
2 parents abf12ba + 0d56044 commit cf1f312
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PhysicsTools/PatUtils/interface/ShiftedJetProducerT.h
Expand Up @@ -133,7 +133,7 @@ class ShiftedJetProducerT : public edm::EDProducer
std::cout << "shift = " << shift << std::endl;
}

if ( addResidualJES_ ) {
if ( evt.isRealData() && addResidualJES_ ) {
const static SmearedJetProducer_namespace::RawJetExtractorT<T> rawJetExtractor;
reco::Candidate::LorentzVector rawJetP4 = rawJetExtractor(*originalJet);
if ( rawJetP4.E() > 1.e-1 ) {
Expand Down

0 comments on commit cf1f312

Please sign in to comment.