Skip to content
Snippets Groups Projects
Commit bded8072 authored by Olli Lupton's avatar Olli Lupton
Browse files

Remove duplicated (VertexCut/VertexCutSIMD) properties in CombineTracksSIMD.

parent 28ef2a4a
No related branches found
No related tags found
1 merge request!2141Improve ThOr functor testing with different SIMD backends
Pipeline #1814385 passed
......@@ -52,7 +52,7 @@ namespace SelAlgorithms::CombineTracksSIMD {
// Get the name of the Mth combination cut of an N-particle combiner
// Very ugly, but not worth the effort to do something beautiful and constexpr
template <std::size_t N, std::size_t M, bool simd_suffix = false>
template <std::size_t N, std::size_t M>
std::string combinationCutName() {
static_assert( N >= 2 );
static_assert( M + 1 < N );
......@@ -65,7 +65,6 @@ namespace SelAlgorithms::CombineTracksSIMD {
for ( auto i = 0ul; i < M; ++i ) { name += std::to_string( i + 3 ); }
}
name += "Cut";
if ( simd_suffix ) { name += "SIMD"; }
return name;
}
......@@ -89,7 +88,7 @@ namespace SelAlgorithms::CombineTracksSIMD {
Combination<M + 2> const& );
constexpr static auto Compilation =
is_simd ? Functors::IFactory::QuietCacheOnly : Functors::IFactory::DefaultCompilationBehaviour;
inline static auto PropertyName = combinationCutName<N, M, is_simd>();
inline static auto PropertyName = combinationCutName<N, M>();
constexpr static auto ExtraHeaders = LHCb::header_map_v<Combination<M + 2>>;
};
};
......@@ -102,7 +101,7 @@ namespace SelAlgorithms::CombineTracksSIMD {
constexpr static bool is_simd = Backend != SIMDWrapper::Scalar;
constexpr static auto Compilation =
is_simd ? Functors::IFactory::QuietCacheOnly : Functors::IFactory::DefaultCompilationBehaviour;
constexpr static auto PropertyName = is_simd ? "VertexCutSIMD" : "VertexCut";
constexpr static auto PropertyName = "VertexCut";
constexpr static auto ExtraHeaders = LHCb::header_map_v<particle_t>;
};
......
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