Code for analyzing particles in clusters