Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add JECpayload protection in PhysicsTools/PatUtils/interface/ShiftedJetProducerT.h #5604

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion PhysicsTools/PatAlgos/test/runtests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ cmsRun ${LOCAL_TEST_DIR}/patTuple_addVertexInfo_cfg.py || die 'Failure using pat

# cmsRun ${LOCAL_TEST_DIR}/patTuple_userData_cfg.py || die 'Failure using patTuple_userData_cfg.py' $?

#cmsRun ${LOCAL_TEST_DIR}/patTuple_metUncertainties_cfg.py || die 'Failure using patTuple_metUncertainties_cfg.py' $?
cmsRun ${LOCAL_TEST_DIR}/patTuple_metUncertainties_cfg.py || die 'Failure using patTuple_metUncertainties_cfg.py' $?

# Not needed in IBs
# cmsRun ${LOCAL_TEST_DIR}/patTuple_onlyElectrons_cfg.py || die 'Failure using patTuple_onlyElectrons_cfg.py' $?
Expand Down
2 changes: 1 addition & 1 deletion PhysicsTools/PatUtils/interface/ShiftedJetProducerT.h
Original file line number Diff line number Diff line change
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