7 if (
std::distance(digiRange.second, digiRange.first) == 0 )
return finalCluster;
10 for (
auto digi = digiRange.first; digi != digiRange.second; ++digi ) {
12 initialCluster.insert(
cl);
14 if ( initialCluster.empty() )
return finalCluster;
21 for (
auto cl =
std::next(initialCluster.begin());
cl != initialCluster.end(); ++
cl ) {
28 finalCluster.insert(prev);
34 finalCluster.insert(prev);
std::set< GEMCluster > GEMClusterContainer
GEMClusterContainer doAction(const GEMDigiCollection::Range &digiRange)
void merge(const GEMCluster &cl)
std::pair< const_iterator, const_iterator > Range
bool isAdjacent(const GEMCluster &cl) const