#include "MStarList.h" #include using namespace std; void MStarList::RemoveTwins(Double_t radius) { MStarList stars; Int_t numfirst=0; while (1) { int idx; MStar *first=NULL; for (idx=numfirst; idxGetX(); my += pos->GetY(); fStars.Remove(pos); cnt++; } mx /= cnt; my /= cnt; AddAt(idx, mx, my, cnt); numfirst = idx+1; } }