Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix crash in case Limit on the number of clusters is really exceeded. #14662

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -175,6 +175,7 @@
// Fatal error! TO DO: throw an exception!
assert(0);
}
{
// Produce clusters for this DetUnit and store them in
// a DetSet
edmNew::DetSetVector<SiPixelCluster>::FastFiller spc(output, DSViter->detId());
Expand All @@ -184,7 +185,7 @@
} else {
numberOfClusters += spc.size();
}

} // spc is not deleted and detsetvector updated
if ((maxTotalClusters_ >= 0) && (numberOfClusters > maxTotalClusters_)) {
edm::LogError("TooManyClusters") << "Limit on the number of clusters exceeded. An empty cluster collection will be produced instead.\n";
edmNew::DetSetVector<SiPixelCluster> empty;
Expand Down