Skip to content

Commit

Permalink
Apply code-checks.
Browse files Browse the repository at this point in the history
  • Loading branch information
hqucms committed Sep 11, 2018
1 parent 099d92a commit d4c3946
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion PhysicsTools/MXNet/src/MXNetPredictor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ std::vector<float> MXNetPredictor::predict(const std::vector<std::vector<mx_floa
throw cms::Exception("RuntimeError") << "Error running forward!";
}

mx_uint *shape = 0;
mx_uint *shape = nullptr;
mx_uint shape_len = 0;

// Get Output Result
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ void DeepBoostedJetTagInfoProducer::fillParticleFeatures(DeepBoostedJetFeatures
}
}

fts.fill("pfcand_drsubjet1", subjets.size()>0 ? reco::deltaR(*cand, *subjets.at(0)) : -1);
fts.fill("pfcand_drsubjet1", !subjets.empty() ? reco::deltaR(*cand, *subjets.at(0)) : -1);
fts.fill("pfcand_drsubjet2", subjets.size()>1 ? reco::deltaR(*cand, *subjets.at(1)) : -1);

const reco::Track *trk = nullptr;
Expand Down

0 comments on commit d4c3946

Please sign in to comment.