Skip to content

Commit

Permalink
Merge pull request #28187 from Dr15Jones/fixRecoBTagCombined
Browse files Browse the repository at this point in the history
Explicitly use std::isinf in DeepCMVATagInfoProducer
  • Loading branch information
cmsbuild committed Oct 17, 2019
2 parents 00a00fe + e02c86c commit 5164213
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions RecoBTag/Combined/plugins/DeepCMVATagInfoProducer.cc
Expand Up @@ -174,10 +174,10 @@ void DeepCMVATagInfoProducer::produce(edm::Event& iEvent, const edm::EventSetup&

//if jetPt larger than cMVAPtThreshold_ --> default these taggers for easier SF measurements
if ((nnInfo.jet().get())->pt() < cMVAPtThreshold_) {
vars.insert(reco::btau::Jet_SoftMu, !(isinf(softmu_discr)) ? softmu_discr : -0.2, true);
vars.insert(reco::btau::Jet_SoftEl, !(isinf(softel_discr)) ? softel_discr : -0.2, true);
vars.insert(reco::btau::Jet_JBP, !(isinf(jpb_discr)) ? jpb_discr : -0.2, true);
vars.insert(reco::btau::Jet_JP, !(isinf(jp_discr)) ? jp_discr : -0.2, true);
vars.insert(reco::btau::Jet_SoftMu, !(std::isinf(softmu_discr)) ? softmu_discr : -0.2, true);
vars.insert(reco::btau::Jet_SoftEl, !(std::isinf(softel_discr)) ? softel_discr : -0.2, true);
vars.insert(reco::btau::Jet_JBP, !(std::isinf(jpb_discr)) ? jpb_discr : -0.2, true);
vars.insert(reco::btau::Jet_JP, !(std::isinf(jp_discr)) ? jp_discr : -0.2, true);
}

vars.finalize();
Expand Down

0 comments on commit 5164213

Please sign in to comment.