Skip to content
Snippets Groups Projects
Commit ffd18c56 authored by Niklas Stefan Nolte's avatar Niklas Stefan Nolte :fire: Committed by Victor Daussy-Renaudin
Browse files

Revert "hack forwardfitted tracks to also give me other entries of the...

Revert "hack forwardfitted tracks to also give me other entries of the covariance matrix, this only works because i fill them from the packers, so don"t use this in hlt1 production or what not"

This reverts commit 5f61aa21.
parent be67e6f6
No related branches found
No related tags found
No related merge requests found
Pipeline #1413116 passed
......@@ -88,13 +88,6 @@ namespace LHCb::Pr::Fitted::Forward {
VEC3_SOA_ACCESSOR( covY, &( m_data[12 * max_tracks].f ), &( m_data[13 * max_tracks].f ),
&( m_data[14 * max_tracks].f ) )
VEC3_SOA_ACCESSOR( cov1, &( m_data[15 * max_tracks].f ), &( m_data[16 * max_tracks].f ),
&( m_data[17 * max_tracks].f ) )
VEC3_SOA_ACCESSOR( cov2, &( m_data[18 * max_tracks].f ), &( m_data[19 * max_tracks].f ),
&( m_data[20 * max_tracks].f ) )
VEC3_SOA_ACCESSOR( cov3, &( m_data[21 * max_tracks].f ), &( m_data[22 * max_tracks].f ),
&( m_data[23 * max_tracks].f ) )
/// Retrieve the momentum
template <typename T>
inline T p( int t ) const {
......@@ -105,7 +98,7 @@ namespace LHCb::Pr::Fitted::Forward {
template <typename simd, typename maskT>
inline void copy_back( const Tracks& from, int at, maskT mask ) {
using intT = typename simd::int_v;
for ( int i = 0; i < 24; i++ ) {
for ( int i = 0; i < 15; i++ ) {
intT( &( from.m_data[i * max_tracks + at].i ) ).compressstore( mask, &( m_data[i * max_tracks + m_size].i ) );
}
m_size += simd::popcount( mask );
......
......@@ -72,26 +72,25 @@ namespace LHCb::Pr::Fitted::Forward {
auto closestToBeamStateCovariance() const {
MatrixSym5x5 cov{ROOT::Math::SMatrixNoInit{}};
auto const qop = qOverP();
auto const covX = this->m_tracks->template covX<FType>( this->offset() );
auto const covY = this->m_tracks->template covY<FType>( this->offset() );
auto const cov1 = this->m_tracks->template cov1<FType>( this->offset() );
auto const cov2 = this->m_tracks->template cov2<FType>( this->offset() );
auto const cov3 = this->m_tracks->template cov3<FType>( this->offset() );
cov( 0, 0 ) = cast( covX.x ); // x error
cov( 0, 2 ) = cast( covX.y ); // x-tx covariance
cov( 2, 2 ) = cast( covX.z ); // tx error
cov( 1, 1 ) = cast( covY.x ); // y error
cov( 1, 3 ) = cast( covY.y ); // y-ty covariance
cov( 3, 3 ) = cast( covY.z ); // ty error
cov( 0, 1 ) = cast( cov1.x ); // x-y covariance
cov( 0, 3 ) = cast( cov1.y ); // x-ty covariance
cov( 0, 4 ) = cast( cov1.z ); // x-qop covariance
cov( 1, 2 ) = cast( cov2.x ); // y-tx covariance
cov( 1, 4 ) = cast( cov2.y ); // y-qop covariance
cov( 2, 3 ) = cast( cov2.z ); // tx-ty covariance
cov( 2, 4 ) = cast( cov3.x ); // tx-qop covariance
cov( 3, 4 ) = cast( cov3.y ); // ty-qop covariance
cov( 4, 4 ) = cast( cov3.z ); // qop-qop covariance
cov( 0, 1 ) = 0.f; // x-y covariance
cov( 0, 3 ) = 0.f; // x-ty covariance
cov( 0, 4 ) = 0.f; // x-qop covariance
cov( 1, 2 ) = 0.f; // y-tx covariance
cov( 1, 4 ) = 0.f; // y-qop covariance
cov( 2, 3 ) = 0.f; // tx-ty covariance
cov( 2, 4 ) = 0.f; // tx-qop covariance
cov( 3, 4 ) = 0.f; // ty-qop covariance
// FIXME this hack should not be hardcoded
cov( 4, 4 ) = .1f * qop * qop; // qop erro
return cov;
}
......
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