7 if (
std::distance(digiRange.second, digiRange.first) == 0 )
return finalCluster;
10 for (
auto digi = digiRange.first; digi != digiRange.second; ++digi ) {
12 if ( digi->hasTime() )
cl.addTime(digi->time());
13 if ( digi->hasY() )
cl.addY(digi->coordinateY());
14 initialCluster.insert(
cl);
16 if ( initialCluster.empty() )
return finalCluster;
23 for (
auto cl =
std::next(initialCluster.begin());
cl != initialCluster.end(); ++
cl ) {
30 finalCluster.insert(prev);
36 finalCluster.insert(prev);
void merge(const RPCCluster &cl)
RPCClusterContainer doAction(const RPCDigiCollection::Range &digiRange)
std::pair< const_iterator, const_iterator > Range
std::set< RPCCluster > RPCClusterContainer
bool isAdjacent(const RPCCluster &cl) const