Skip to content
Snippets Groups Projects

Fix wrong DeUTSector cache of p0 parameter

Merged Hangyi Wu requested to merge ut/fix-firstStrip-dd4hep into master
Files
4
@@ -97,6 +97,12 @@ namespace LHCb::Detector::UT {
return ( strip >= firstStrip() ) && strip < nStrip() + firstStrip();
}
LineTraj<double> trajectory( unsigned int strip, double offset ) const {
if ( dd4hep::_toInt( "WithCorrectedP0Parameter" ) && !isStrip( strip ) ) {
throw std::out_of_range(
fmt::format( "DeUTSector::createTraj: strip out of range, given {strip}, expect [{first}, {last}]",
fmt::arg( "strip", strip ), fmt::arg( "first", firstStrip() ),
fmt::arg( "last", firstStrip() + nStrip() - 1 ) ) );
}
const double arclen =
( ( xInverted() && getStripflip() ) ? ( nStrip() - offset - strip - ( firstStrip() + 1 ) % 2 )
: ( offset + strip - firstStrip() ) ) *
Loading