Skip to content

Commit

Permalink
DPL: forward declaration of fill functions
Browse files Browse the repository at this point in the history
  • Loading branch information
ktf committed Mar 8, 2024
1 parent 473b958 commit b98dafc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Framework/Core/include/Framework/HistogramRegistry.h
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,10 @@ void HistogramRegistry::fill(const HistName& histName, Ts&&... positionAndWeight
std::visit([&positionAndWeight...](auto&& hist) { HistFiller::fillHistAny(hist, std::forward<Ts>(positionAndWeight)...); }, mRegistryValue[getHistIndex(histName)]);
}

extern template void HistogramRegistry::fill(const HistName& histName, double);
extern template void HistogramRegistry::fill(const HistName& histName, float);
extern template void HistogramRegistry::fill(const HistName& histName, int);

template <typename... Cs, typename T>
void HistogramRegistry::fill(const HistName& histName, const T& table, const o2::framework::expressions::Filter& filter)
{
Expand Down
4 changes: 4 additions & 0 deletions Framework/Core/src/HistogramRegistry.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
namespace o2::framework
{

template void HistogramRegistry::fill(const HistName& histName, const double&);
template void HistogramRegistry::fill(const HistName& histName, const float&);
template void HistogramRegistry::fill(const HistName& histName, const int&);

constexpr HistogramRegistry::HistName::HistName(char const* const name)
: str(name),
hash(runtime_hash(name)),
Expand Down

0 comments on commit b98dafc

Please sign in to comment.