Commit 98060d03 authored by Paul Schuetze's avatar Paul Schuetze
Browse files

Enhance method to get the multiplet position at the scatterer:

If the z position equals the scatterer position, the up- and downstream arm are averaged
parent 33c99215
......@@ -50,7 +50,8 @@ void Multiplet::fit() {
}
ROOT::Math::XYZPoint Multiplet::intercept(double z) const {
return z <= m_scattererPosition ? m_upstream->intercept(z) : m_downstream->intercept(z);
return z == m_scattererPosition ? m_positionAtScatterer
: (z < m_scattererPosition ? m_upstream->intercept(z) : m_downstream->intercept(z));
}
ROOT::Math::XYZPoint Multiplet::state(std::string detectorID) const {
......
Supports Markdown
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