Repository navigation
[PWGCF] Femto pairHistManager: fill the sparse histograms as CompactTHnSparse - #18936
Conversation
…HnSparse Use HistType::kCompactTHnSparseF for the THnSparseF of the pair histogram table. They are filled through the registry as before and written out as THnSparseF, so the output of the tasks using pairHistManager is unchanged; only the in-memory storage differs (about 10 B per filled bin instead of about 70 B, and no 2-3x peak while the bin map grows). In the wagon test of train 813409 (LHC25af_pass2), femto-pair-track-track reaches 1413 MB, 88 % of it in seven 6-7 dimensional THnSparseF with 17.7 M filled bins in total; with the compact storage that is about 0.2 GB instead of 1.24 GB. Needs kCompactTHnSparseF in O2 (DPL Analysis: add CompactTHnSparse).
|
O2 linter results: ❌ 0 errors, |
|
This uses a new kind of compact histogram, introduced in AliceO2Group/AliceO2#16198, which is bin-to-bin and I/O compatible with THnSparse while occupying significantly less memory and space on disk. Would you mind having a look and let me know what you think of it? |
|
Error while checking build/O2Physics/staging for 49ec073 at 2026-11-26 12:09: Full log here. |
|
Error while checking build/O2Physics/code-check for 49ec073 at 2026-11-26 12:13: Full log here. |
|
Error while checking build/O2Physics/o2 for 49ec073 at 2026-11-26 12:16: Full log here. |
|
Hi @ktf , many thanks for implementing this. Large memory consumption has been a recurring problem, especially when running systematics. I will propagate this to other places where we also use THnSparse histograms. |
|
You are welcome. Please, make sure you do proper validation of the results. |
Use HistType::kCompactTHnSparseF for the THnSparseF of the pair histogram
table. They are filled through the registry as before and written out as
THnSparseF, so the output of the tasks using pairHistManager is unchanged;
only the in-memory storage differs (about 10 B per filled bin instead of
about 70 B, and no 2-3x peak while the bin map grows).
In the wagon test of train 813409 (LHC25af_pass2), femto-pair-track-track
reaches 1413 MB, 88 % of it in seven 6-7 dimensional THnSparseF with
17.7 M filled bins in total; with the compact storage that is about
0.2 GB instead of 1.24 GB.
Needs kCompactTHnSparseF in O2 (DPL Analysis: add CompactTHnSparse).