Skip to content
Snippets Groups Projects
Commit 0e30231e authored by Rosen Matev's avatar Rosen Matev :sunny:
Browse files

Fix CaloHypo accuracy check

extending !3524 and !3564
parent 245cb190
No related branches found
No related tags found
1 merge request!3795Fix CaloHypo packing accuracy check
Pipeline #4545428 passed
......@@ -299,13 +299,13 @@ StatusCode CaloHypoPacker::check( const DataVector& dataA, const DataVector& dat
if ( oPos == 0 && tPos != 0 ) errors.push_back( ErrorCode::pos_mismatch );
if ( oPos != 0 && tPos == 0 ) errors.push_back( ErrorCode::pos_mismatch );
if ( oPos != 0 && tPos != 0 ) {
if ( 5.e-5 < std::abs( oPos->z() - tPos->z() ) ) errors.push_back( ErrorCode::pos_z );
if ( 5.e-5 < std::abs( oPos->x() - tPos->x() ) ) errors.push_back( ErrorCode::pos_x );
if ( 5.01e-5 < std::abs( oPos->z() - tPos->z() ) ) errors.push_back( ErrorCode::pos_z );
if ( 5.01e-5 < std::abs( oPos->x() - tPos->x() ) ) errors.push_back( ErrorCode::pos_x );
if ( 5.01e-5 < std::abs( oPos->y() - tPos->y() ) ) errors.push_back( ErrorCode::pos_y );
if ( 5.01e-3 < std::abs( oPos->e() - tPos->e() ) ) errors.push_back( ErrorCode::pos_e );
if ( 5.e-5 < std::abs( oPos->center()( 0 ) - tPos->center()( 0 ) ) ) errors.push_back( ErrorCode::center0 );
if ( 5.e-5 < std::abs( oPos->center()( 1 ) - tPos->center()( 1 ) ) ) errors.push_back( ErrorCode::center1 );
if ( 5.01e-5 < std::abs( oPos->center()( 0 ) - tPos->center()( 0 ) ) ) errors.push_back( ErrorCode::center0 );
if ( 5.01e-5 < std::abs( oPos->center()( 1 ) - tPos->center()( 1 ) ) ) errors.push_back( ErrorCode::center1 );
auto oDiag = std::array{safe_sqrt( oPos->covariance()( 0, 0 ) ), safe_sqrt( oPos->covariance()( 1, 1 ) ),
safe_sqrt( oPos->covariance()( 2, 2 ) ), safe_sqrt( oPos->spread()( 0, 0 ) ),
......
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