ClusterRecoCoG introduces NaN in cluster energies
For tw == 0
the following lines introduce a NaN
:
if (tw == 0.) {
warning() << "zero total weights encountered, you may want to adjust your weighting parameter." << endmsg;
}
cl.setPosition(v / tw);