From ec37ea7f0d8869ea7962fe30f1960d704181d132 Mon Sep 17 00:00:00 2001 From: YoungKwon Jo Date: Thu, 13 Feb 2014 13:26:33 +0100 Subject: [PATCH] fixed bug of max(int, double) --- RecoSelectorTools/plugins/KJetUncProducer.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/RecoSelectorTools/plugins/KJetUncProducer.cc b/RecoSelectorTools/plugins/KJetUncProducer.cc index 29b335e51d2a2..30382ded584d6 100644 --- a/RecoSelectorTools/plugins/KJetUncProducer.cc +++ b/RecoSelectorTools/plugins/KJetUncProducer.cc @@ -142,9 +142,9 @@ void KJetUncProducer::produce(edm::Event& event, const edm::EventSetup& eventSet double cJER, cJERUp, cJERDn; getJERFactor(jetEta, cJER, cJERUp, cJERDn); - fJER = max(0, (genJetPt+dPt*cJER )/jetPt); - fJERUp = max(0, (genJetPt+dPt*cJERUp)/jetPt); - fJERDn = max(0, (genJetPt+dPt*cJERDn)/jetPt); + fJER = max(0., (genJetPt+dPt*cJER )/jetPt); + fJERUp = max(0., (genJetPt+dPt*cJERUp)/jetPt); + fJERDn = max(0., (genJetPt+dPt*cJERDn)/jetPt); const double metDx = rawPx*(1-fJER ); const double metDxUp = rawPx*(1-fJERUp);