diff --git a/PWGJE/TableProducer/emcalCorrectionTask.cxx b/PWGJE/TableProducer/emcalCorrectionTask.cxx index 8a002bdf1a3..35e95e06c7f 100644 --- a/PWGJE/TableProducer/emcalCorrectionTask.cxx +++ b/PWGJE/TableProducer/emcalCorrectionTask.cxx @@ -177,7 +177,7 @@ struct EmcalCorrectionTask { auto pos = cluster.getGlobalPosition(); pos = pos - math_utils::Point3D{collision.posX(), collision.posY(), collision.posZ()}; // Normalize the vector and rescale by energy. - pos /= (cluster.E() / std::sqrt(pos.Mag2())); + pos *= (cluster.E() / std::sqrt(pos.Mag2())); // We have our necessary properties. Now we store outputs //LOG(debug) << "Cluster E: " << cluster.E();