Commit fd9348c2 authored by snuverink_j's avatar snuverink_j

peakfinder bugfix: dont use z in radius calculation

parent 52dce53c
......@@ -20,7 +20,7 @@ PeakFinder::PeakFinder(std::string elem, double min, double max, double binWidth
void PeakFinder::addParticle(const Vector_t& R) {
double radius = std::sqrt( dot(R, R) );
double radius = std::hypot(R(0),R(1));
radius_m.push_back(radius);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment