Skip to content
Merged
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
4 changes: 4 additions & 0 deletions HLTrigger/JetMET/plugins/HLTScoutingPFProducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,10 @@ void HLTScoutingPFProducer::produce(edm::StreamID sid, edm::Event &iEvent, edm::
std::vector<int> candIndices;
if (doCandidates) {
for (auto &cand : jet.getPFConstituents()) {
if (not(cand.isNonnull() and cand.isAvailable())) {
throw cms::Exception("HLTScoutingPFProducer")
<< "invalid reference to reco::PFCandidate from reco::PFJet::getPFConstituents()";
}
if (cand->pt() > pfCandidatePtCut && std::abs(cand->eta()) < pfCandidateEtaCut) {
//search for the candidate in the collection
float minDR2 = 0.0001;
Expand Down