[PWGCF/FemtoUniverse] Efficiency correction in 3D - #11270
Merged
Conversation
davkk
requested review from
alibuild,
ariedel-cern,
glromane,
lauraser,
lgraczykCern,
otonvd,
prchakra,
saganatt,
shouqiye,
victor-gonzalez and
zchochul
as code owners
May 20, 2025 20:34
|
O2 linter results: ❌ 48 errors, |
zchochul
approved these changes
May 21, 2025
ariedel-cern
pushed a commit
to ariedel-cern/O2Physics
that referenced
this pull request
May 23, 2025
jinhyunni
pushed a commit
to jinhyunni/O2Physics
that referenced
this pull request
Jun 11, 2025
prottayCMT
pushed a commit
to prottayCMT/O2Physics2024
that referenced
this pull request
Jun 12, 2025
ddobrigk
pushed a commit
to ddobrigk/O2Physics
that referenced
this pull request
Jun 14, 2025
smaff92
pushed a commit
to smaff92/O2Physics
that referenced
this pull request
Jun 17, 2025
alibuild
pushed a commit
to alibuild/O2Physics
that referenced
this pull request
Aug 11, 2025
jloemker
pushed a commit
to jloemker/O2Physics
that referenced
this pull request
Nov 11, 2025
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.
Changes summary:
fillTruthHistandfillRecoHistmethodsconfEffCorVariables), based on which histograms are loaded from CCDBEfficiencyCorrectionclassComplete workflow guide
1. Add the
FemtoUniverseEfficiencyCorrectionclass to your task.First, add it as a top-level field to the task struct:
Here,
EffCorConfigurableGroupacts as a container with all the necessary configurable variables, which get added to the task's configuration.2. Initialize the class in the
init()method of your task.As the first parameter, pass a reference to the registry you want the histograms to live. Then, pass a list of$p_T$ , $\eta$ , multiplicity/centrality.
AxisSpecs, always in order of:3. Add filling of the histograms to your task.
4. Add weights to your histograms.
You can then use that weight, by passing it to
fillmethod of the histogram5. Run the task.
In the results file, the histograms will be stored under the
EfficiencyCorrectiondirectory.6. Run the
calculateEfficiencyCorrection.cxxmacro.The easiest way to run the macro is to first compile it. Compiled macro comes with helpful CLI flags:
Exemplary usage:
Remember to enable histogram filling in the configuration:
7. Upload to CCDB
To upload the resulting weights to CCDB, you can use
o2-ccdb-uploadtool, available in the O2 environment.In this case, to view the uploaded object, you can navigate to:
http://alice-ccdb.cern.ch/browse/Users/d/dkarpins/Correction.8. Apply the corrections in the analysis.
Once the ROOT object is uploaded, you can use it in your task. To do so, add its timestamp to
confEffCorCCDBTimestamps("Valid from" column).Exemplary configuration for applying the correction: