Repository navigation
[DPG] tpcSkimsTableCreator: develop adaptive downsampling - #18902
Merged
Merged
Conversation
lubynets
requested review from
alcaliva,
alibuild,
catalinristea and
chiarazampolli
as code owners
November 24, 2026 16:09
|
O2 linter results: ❌ 0 errors, |
Collaborator
|
Error while checking build/O2Physics/code-check for d9d3e1d at 2026-11-24 17:34: Full log here. |
Collaborator
|
Error while checking build/O2Physics/code-check for d740a76 at 2026-11-24 17:46: Full log here. |
alcaliva
approved these changes
Nov 25, 2026
5 of 8 tasks
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.
1. Adaptive downsampling
Adaptive means "such that adapts for expected particles distribution (both shape and yield)".
Preparation of calibration histogram

$p$ -distribution.
Each time when the
tpcSkimsTableCreatoris run withsaveMomentumHistogramsconfigurable set to true, it will create a 2D histogram with momentum's logarithm for each (anti)particle species. This histogram is filled with the full available statistics, i.e. w/o downsampling, however with all cuts applied to the tree's entries. An example of such histogram is attached.For later we call this histogram a "calibration" one with expected
Applying adaptive downsampling
⚠️ When two workflows are run,
-- The user needs to upload the file with calibration histogram(s) to CCDB and set path, file name and histogram name in the configuration.
TreeWriterTpcV0andTreeWriterTpcTof, there should be provided two distinct files even if they are identical. Otherwise a conflict between two workflows happens in some rate of jobs. This issue is planned to be fixed by merging the two mentioned workflows into a single one.-- The user sets
adaptDwnsplHistoScaleFactorconfigurable to a value which is a ratio between the size of the dataset to be processed and the size of the dataset used for preparation of the calibration histogram.-- The user sets the requested yield
adaptDwnsplTargetYieldof each (anti)particle species per unity of log10(p).Then the particles' distribution looks like in the attached file (5 M particles per unity log10(p) were requested).
histograms.pdf
2. Removed old-style downsampling
(Tsallis-spectrum and momentum-common coefficient)
3. Code refactory
--
maxMomHardCutOnlycut introduced for protons and pions inTreeWriterTpcTof(before it was missing for 2 out of 5 particle species)-- Configurables, common for
TreeWriterTpcV0andTreeWriterTpcToffactored out into aConfigurableGroup.Tagging @amaringarcia