Skip to content
Snippets Groups Projects
Commit 672926dd authored by Patrick Scholer's avatar Patrick Scholer Committed by Duc Ta
Browse files

introduce shift in as built model for the QL3 modules

introduce shift in as built model for the QL3 modules
parent 569e1ee0
No related branches found
No related tags found
2 merge requests!784022025-03-10: merge of 24.0 into main,!78374introduce shift in as built model for the QL3 modules
......@@ -19,7 +19,12 @@ Amg::Vector2D sTGCAsBuiltData2::correctPosition(const Identifier& channelId, con
Amg::Vector2D correctedPos = pos;
Parameters pars = par_itr->second;
constexpr double convScale = 1.e-3; // parameters are stored in um and mrad therefore dividing by 1000
correctedPos.x() = pos.x() + (pars.offset * convScale + pars.rotation *convScale * pos.y() + pars.scale*convScale*pos.x() + pars.nonPara * convScale * convScale * pos.x()*pos.y());
// For the QL3 modules described by the legacy (Run 3) geometry EDM the origin of the local frame is shifted with respect to the actual center of the gap.
// Therefore a shift is introduced which stabilizes the as built fit which must also be applied here since the parameters are expressed using the actual center of the gap.
float shift = (std::fabs(m_idHelperSvc->stationEta(channelId)) == 3 && m_idHelperSvc->stationNameString(channelId) == "STL" ? 24.74 : 0.0);
correctedPos.x() = pos.x() + (pars.offset * convScale + pars.rotation *convScale * pos.y() + pars.scale*convScale*(pos.x() + shift ) + pars.nonPara * convScale * convScale * (pos.x() + shift )*pos.y());
return correctedPos;
}
......@@ -34,4 +39,4 @@ StatusCode sTGCAsBuiltData2::setParameters(const Identifier& channelId, const Pa
}
return StatusCode::SUCCESS;
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment