Skip to content
Snippets Groups Projects
Commit d30722a8 authored by Christopher Rob Jones's avatar Christopher Rob Jones
Browse files

RichSIMDPhotonPredictedPixelSignal: Use cached SIMD pixel region info

parent ea1ffa16
No related branches found
No related tags found
2 merge requests!3788Draft: Update SciFi cluster monitoring,!3753RICH Add detector regions to pixel objects
......@@ -143,9 +143,6 @@ namespace Rich::Future::Rec {
/// cached min exp(arg) factor
alignas( LHCb::SIMD::VectorAlignment ) RadiatorArray<SIMDFP> m_minExpArgF = {{}};
/// SIMD time windows
alignas( LHCb::SIMD::VectorAlignment ) DetectorArray<SIMDFP> m_timeWindowSIMD = {{}};
private:
/// The minimum expected track Cherenkov angle to be considered 'Above Threshold'
Gaudi::Property<RadiatorArray<float>> m_minExpCKT{
......@@ -169,10 +166,6 @@ namespace Rich::Future::Rec {
/// Enable 4D time window
Gaudi::Property<DetectorArray<bool>> m_enable4D{this, "Enable4D", {false, false}, "Enable 4D reconstruction"};
/// time window size for each RICH
Gaudi::Property<DetectorArray<float>> m_timeWindow{
this, "TimeWindow", {1.0 * Gaudi::Units::ns, 1.0 * Gaudi::Units::ns}, "Time window to apply in each RICH"};
};
} // namespace Rich::Future::Rec
......@@ -208,10 +201,7 @@ StatusCode SIMDPhotonPredictedPixelSignal::initialize() {
// loop over RICHes
for ( const auto rich : activeDetectors() ) {
m_timeWindowSIMD[rich] = SIMDFP( m_timeWindow[rich] );
if ( m_enable4D[rich] ) {
info() << "4D signals enabled for " << rich << " | Window = " << ( 2.0 * m_timeWindow[rich] ) << " ns" << endmsg;
}
if ( m_enable4D[rich] ) { info() << "4D signals enabled for " << rich << endmsg; }
}
// loop over radiators
......@@ -312,7 +302,7 @@ OutData SIMDPhotonPredictedPixelSignal::operator()( const SIMDPixelSummaries&
// Get time prediction for this mass hypo
const auto timePred = SIMDFP( segment.timeToRadEntry( id ) ) + phot.radTransitTime();
// Apply time window to mask
mask &= ( abs( pix.hitTime() - timePred ) < m_timeWindowSIMD[det] );
mask &= pix.isInTime( timePred );
}
// If any are OK continue
......
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