Commit f65b4c83 authored by ldufour's avatar ldufour
Browse files

Fixed bug in reversed??

parent 938ebd00
Pipeline #4349168 failed with stages
in 2 minutes and 31 seconds
......@@ -111,7 +111,6 @@ LHCb::Detector::detail::DeFTModuleObject::DeFTModuleObject( const dd4hep::DetEle
{de.child( "Mat1" ), ctxt, 1, m_id},
{de.child( "Mat2" ), ctxt, 2, m_id},
{de.child( "Mat3" ), ctxt, 3, m_id}}} {
// Is reversed?
const auto firstPoint = this->toGlobal( ROOT::Math::XYZPoint{-1, 0, 0} );
const auto lastPoint = this->toGlobal( ROOT::Math::XYZPoint{1, 0, 0} );
m_reversed = std::abs( firstPoint.x() ) > std::abs( lastPoint.x() );
......
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