Skip to content
Snippets Groups Projects
Commit cc959f75 authored by Volker Friese's avatar Volker Friese
Browse files

Make arguments to Lambda function for the sorting of clusters constant. Refs #1808 @30min.

parent 292f5bea
No related branches found
No related tags found
No related merge requests found
......@@ -115,12 +115,12 @@ void CbmStsRecoModule::Reconstruct() {
// --- Sort clusters by time
std::sort(fClustersF.begin(),
fClustersF.end(),
[](CbmStsCluster& cluster1, CbmStsCluster& cluster2) {
[](const CbmStsCluster& cluster1, const CbmStsCluster& cluster2) {
return (cluster1.GetTime() < cluster2.GetTime());
});
std::sort(fClustersB.begin(),
fClustersB.end(),
[](CbmStsCluster& cluster1, CbmStsCluster& cluster2) {
[](const CbmStsCluster& cluster1, const CbmStsCluster& cluster2) {
return (cluster1.GetTime() < cluster2.GetTime());
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment