Skip to content

Commit

Permalink
Merge pull request #32236 from perrotta/patch-2
Browse files Browse the repository at this point in the history
Trivial update to PFClusterFromHGCalMultiCluster.cc
  • Loading branch information
cmsbuild authored Nov 24, 2020
2 parents 4f5e0db + 3bb3cc9 commit 5f302f2
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,26 +26,23 @@ void PFClusterFromHGCalMultiCluster::buildClusters(const edm::Handle<reco::PFRec
}

int iMultiClus = -1;

for (const auto& mcl : hgcalMultiClusters) {
iMultiClus++;

// Skip empty multiclusters
if (mcl.hitsAndFractions().empty()) {
continue;
}
// Filter using trackster PID
if (filterByTracksterPID_) {
float probTotal = 0.0f;

for (int cat : filter_on_categories_) {
probTotal += tracksters[iMultiClus].id_probabilities(cat);
}

if (probTotal < pid_threshold_) {
continue;
}
}

if (mcl.hitsAndFractions().empty()) {
continue;
}
DetId seed;
double energy = 0.0, highest_energy = 0.0;
output.emplace_back();
Expand Down

0 comments on commit 5f302f2

Please sign in to comment.