123 std::vector<SBPoint*>::iterator itVisitorPt, itObservedPt;
124 for(itVisitorPt = fpSetOfPoints.begin();
125 itVisitorPt != fpSetOfPoints.end();
128 itObservedPt = itVisitorPt;
130 while(itObservedPt != fpSetOfPoints.end() )
133 if(!((*itObservedPt)->HasCluster() && (*itVisitorPt)->HasCluster()))
136 (*itVisitorPt)->GetPosition(),fEps))
139 if(!(*itObservedPt)->HasCluster() && !(*itVisitorPt)->HasCluster())
142 set<SBPoint*> clusterPoints;
143 clusterPoints.insert((*itObservedPt));
144 clusterPoints.insert((*itVisitorPt));
147 fpClusters.push_back(lCluster);
151 (*itObservedPt)->SetCluster(lCluster);
153 (*itVisitorPt)->SetCluster(lCluster);
157 if((*itObservedPt)->HasCluster())
159 (*itObservedPt)->GetCluster()->AddSBPoint((*itVisitorPt));
160 (*itVisitorPt)->SetCluster((*itObservedPt)->GetCluster());
163 if((*itVisitorPt)->HasCluster())
165 (*itVisitorPt)->GetCluster()->AddSBPoint((*itObservedPt));
166 (*itObservedPt)->SetCluster((*itVisitorPt)->GetCluster());
176 IncludeUnassociatedPoints();
define a cluster of SB Points
std::map< G4int, G4int > GetClusterSizeDistribution()
bool AreOnTheSameCluster(const SBPoint *pPt1, const SBPoint *pPt2, G4double pMinDist)