Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
aalkin committed Nov 8, 2024
1 parent 4c14c27 commit 6701988
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Framework/Core/include/Framework/AnalysisHelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ struct WritingCursor {
};

/// Helper to define output for a Table
template <o2::soa::with_originals T>
template <o2::soa::is_table T>
struct OutputForTable {
using table_t = T;
using metadata = aod::MetadataTrait<o2::aod::Hash<T::ref.desc_hash>>::metadata;
Expand Down Expand Up @@ -352,22 +352,22 @@ struct IndexBuilder {
return std::array{
[&idx, &columnBuilders]() {
using T = typename framework::pack_element_t<Is, framework::pack<Cs...>>;
return std::static_pointer_cast<typename Reduction<Key, T>::type>(columnBuilders[Is])->template find<T>(idx);
return std::static_pointer_cast<reduced_t<Key, T>>(columnBuilders[Is])->template find<T>(idx);
}()...};
}(sq);
if constexpr (std::is_same_v<Kind, Sparse>) {
[&idx, &columnBuilders]<size_t... Is>(std::index_sequence<Is...>) {
([&idx, &columnBuilders]() {
using T = typename framework::pack_element_t<Is, framework::pack<Cs...>>;
return std::static_pointer_cast<typename Reduction<Key, T>::type>(columnBuilders[Is])->template fill<T>(idx); }(), ...);
return std::static_pointer_cast<reduced_t<Key, T>>(columnBuilders[Is])->template fill<T>(idx); }(), ...);
}(sq);
self.fill<C1>(counter);
} else if constexpr (std::is_same_v<Kind, Exclusive>) {
if (std::none_of(finds.begin(), finds.end(), [](bool const x) { return x == false; })) {
[&idx, &columnBuilders]<size_t... Is>(std::index_sequence<Is...>) {
([&idx, &columnBuilders]() {
using T = typename framework::pack_element_t<Is, framework::pack<Cs...>>;
return std::static_pointer_cast<typename Reduction<Key, T>::type>(columnBuilders[Is])->template fill<T>(idx);
return std::static_pointer_cast<reduced_t<Key, T>>(columnBuilders[Is])->template fill<T>(idx);
}(),
...);
}(sq);
Expand All @@ -380,11 +380,11 @@ struct IndexBuilder {
return makeArrowTable(label,
{self.template result<C1>(), [&columnBuilders]() {
using T = typename framework::pack_element_t<Is, framework::pack<Cs...>>;
return std::static_pointer_cast<typename Reduction<Key, T>::type>(columnBuilders[Is])->template result<T>();
return std::static_pointer_cast<reduced_t<Key, T>>(columnBuilders[Is])->template result<T>();
}()...},
{self.field(), [&columnBuilders]() {
using T = typename framework::pack_element_t<Is, framework::pack<Cs...>>;
return std::static_pointer_cast<typename Reduction<Key, T>::type>(columnBuilders[Is])->field();
return std::static_pointer_cast<reduced_t<Key, T>>(columnBuilders[Is])->field();
}()...});
}(sq);
}
Expand Down

0 comments on commit 6701988

Please sign in to comment.