Skip to content

Commit

Permalink
DPL Analysis: explicit slicing methods for Partition
Browse files Browse the repository at this point in the history
  • Loading branch information
aalkin authored and ktf committed Jan 16, 2024
1 parent d444399 commit 2af2d97
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Framework/Core/include/Framework/AnalysisHelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,28 @@ struct Partition {
return mFiltered.get();
}

template <typename T1>
[[nodiscard]] auto rawSliceBy(o2::framework::Preslice<T1> const& container, int value) const
{
return mFiltered->rawSliceBy(container, value);
}

[[nodiscard]] auto sliceByCached(framework::expressions::BindingNode const& node, int value, o2::framework::SliceCache& cache) const
{
return mFiltered->sliceByCached(node, value, cache);
}

[[nodiscard]] auto sliceByCachedUnsorted(framework::expressions::BindingNode const& node, int value, o2::framework::SliceCache& cache) const
{
return mFiltered->sliceByCachedUnsorted(node, value, cache);
}

template <typename T1, bool OPT, bool SORTED>
[[nodiscard]] auto sliceBy(o2::framework::PresliceBase<T1, OPT, SORTED> const& container, int value) const
{
return mFiltered->sliceBy(container, value);
}

expressions::Filter filter;
std::unique_ptr<o2::soa::Filtered<T>> mFiltered = nullptr;
gandiva::NodePtr tree = nullptr;
Expand Down

0 comments on commit 2af2d97

Please sign in to comment.