Skip to content

Commit

Permalink
fixed bug of max(int, double)
Browse files Browse the repository at this point in the history
  • Loading branch information
YoungKwonJo committed Feb 13, 2014
1 parent 0a7ec5a commit ec37ea7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions RecoSelectorTools/plugins/KJetUncProducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ec37ea7

Please sign in to comment.