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
......@@ -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());
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment