diff --git a/ALICE3/Core/FlatLutEntry.h b/ALICE3/Core/FlatLutEntry.h index c7cc6b7c508..6bf78dea6b1 100644 --- a/ALICE3/Core/FlatLutEntry.h +++ b/ALICE3/Core/FlatLutEntry.h @@ -122,6 +122,14 @@ class FlatLutData */ void initialize(const lutHeader_t& header); + /** + * @brief the number of entries in the LUT, based on the cached dimensions. + */ + [[nodiscard]] size_t lutSize() const { return mNchBins * mRadBins * mEtaBins * mPtBins; } + + /** + * @brief Calculate the linear index of a LUT entry based on its bin indices. + */ [[nodiscard]] size_t getEntryIndex(int nch_bin, int rad_bin, int eta_bin, int pt_bin) const { // Linear index: nch varies slowest, pt varies fastest