Repository navigation
[PWGEM] Use kCompactTHnSparseF for the dilepton polarization histograms - #19034
Merged
Merged
Conversation
In polarization mode each Dilepton task books six 7-dimensional THnSparseD with Sumw2 (same/mix x uls/lspp/lsmm). With the binning of train 818088 (12 dielectron wagons, EM_LHC26_PbPb_pass1_Dielectron) the 10-20% wagon fills 20.5 M bins on two test inputs, and on the grid its end-of-stream output (444 MB) no longer fits in the 2.68 GB shared memory segment of 1-core jobs: "shmem: could not create a message of size 444563472". kCompactTHnSparseF keeps the bins in compact blocks while filling and is written out as a THnSparseF, so downstream code reads the same class family. The histograms are only filled here. Measured with the 818088 configuration on two of its test inputs: - outputs identical: 72 histograms, 89 M filled bins, 0 differences in bin contents, errors, entries and sums of weights; - histograms of the 10-20% wagon in memory: 2352 MB -> 395 MB; - end-of-stream output of that wagon: 431 MB -> 349 MB, all 12 wagons 1873 MB -> 1516 MB; AnalysisResults.root 528 MB -> 362 MB; - wall time unchanged (2:21).
ktf
requested review from
alibuild,
dsekihat,
feisenhu,
hscheid,
jokonig,
mikesas and
rbailhac
as code owners
December 1, 2026 16:44
|
O2 linter results: ❌ 0 errors, |
dsekihat
approved these changes
Dec 1, 2026
dsekihat
enabled auto-merge (squash)
December 1, 2026 16:52
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In polarization mode each Dilepton task books six 7-dimensional
THnSparseD with Sumw2 (same/mix x uls/lspp/lsmm). With the binning of
train 818088 (12 dielectron wagons, EM_LHC26_PbPb_pass1_Dielectron) the
10-20% wagon fills 20.5 M bins on two test inputs, and on the grid its
end-of-stream output (444 MB) no longer fits in the 2.68 GB shared
memory segment of 1-core jobs: "shmem: could not create a message of
size 444563472".
kCompactTHnSparseF keeps the bins in compact blocks while filling and is
written out as a THnSparseF, so downstream code reads the same class
family. The histograms are only filled here.
Measured with the 818088 configuration on two of its test inputs:
bin contents, errors, entries and sums of weights;
1873 MB -> 1516 MB; AnalysisResults.root 528 MB -> 362 MB;