Skip to content

Commit

Permalink
Fix mask production for empty seeding region
Browse files Browse the repository at this point in the history
  • Loading branch information
felicepantaleo committed Nov 15, 2024
1 parent 20f1fce commit 6c65e58
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions RecoHGCal/TICL/plugins/TrackstersProducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -202,21 +202,20 @@ void TrackstersProducer::produce(edm::Event& evt, const edm::EventSetup& es) {
inferenceAlgo_->runInference(*initialResult);
myAlgo_->filter(*result, *initialResult, input, seedToTrackstersAssociation);
}
// Now update the global mask and put it into the event
output_mask->reserve(original_layerclusters_mask.size());
// Copy over the previous state
std::copy(std::begin(original_layerclusters_mask),
std::end(original_layerclusters_mask),
std::back_inserter(*output_mask));

for (auto& trackster : *result) {
trackster.setIteration(iterIndex_);
// Mask the used elements, accordingly
for (auto const v : trackster.vertices()) {
// TODO(rovere): for the moment we mask the layer cluster completely. In
// the future, properly compute the fraction of usage.
(*output_mask)[v] = 0.;
}
}
// Now update the global mask and put it into the event
output_mask->reserve(original_layerclusters_mask.size());
// Copy over the previous state
std::copy(
std::begin(original_layerclusters_mask), std::end(original_layerclusters_mask), std::back_inserter(*output_mask));

for (auto& trackster : *result) {
trackster.setIteration(iterIndex_);
// Mask the used elements, accordingly
for (auto const v : trackster.vertices()) {
// TODO(rovere): for the moment we mask the layer cluster completely. In
// the future, properly compute the fraction of usage.
(*output_mask)[v] = 0.;
}
}

Expand Down

0 comments on commit 6c65e58

Please sign in to comment.