Update RICH tables and PID QA task#101
Merged
Merged
Conversation
Comment on lines
+148
to
+155
| histos.add(rich "/TrackSelection", "", kTH1F, {{10, 0.5, 10.5}}); \ | ||
| histos.get<TH1>(HIST(rich "/TrackSelection"))->GetXaxis()->SetBinLabel(1, "Tracks read"); \ | ||
| histos.get<TH1>(HIST(rich "/TrackSelection"))->GetXaxis()->SetBinLabel(2, "Passed RICH"); \ | ||
| histos.get<TH1>(HIST(rich "/TrackSelection"))->GetXaxis()->SetBinLabel(3, "Passed TOF"); \ | ||
| histos.get<TH1>(HIST(rich "/TrackSelection"))->GetXaxis()->SetBinLabel(4, "Passed minLength"); \ | ||
| histos.get<TH1>(HIST(rich "/TrackSelection"))->GetXaxis()->SetBinLabel(5, "Passed maxLength"); \ | ||
| histos.get<TH1>(HIST(rich "/TrackSelection"))->GetXaxis()->SetBinLabel(6, "Passed eta"); \ | ||
| histos.get<TH1>(HIST(rich "/TrackSelection"))->GetXaxis()->SetBinLabel(7, "Passed PDG"); \ |
Member
There was a problem hiding this comment.
fyi
the add() functions of the histogram registry now also return a pointer to the respective histogram
so one could simplify this part a bit (in case you find it more readable) by using
{
auto trackSelHist = std::get<std::shared_ptr<TH1>>(histos.add(rich "/TrackSelection", "", kTH1F, {{10, 0.5, 10.5}}));
trackSelHist->GetXaxis()->...
...
}
Collaborator
Author
There was a problem hiding this comment.
Thanks Mario, indeed thanks a lot, however I personally don't find it particularly more elegant as I still have to cast it to TH1. I might consider it for the future, thanks a lot!
2ca8407 to
1612a85
Compare
jgrosseo
approved these changes
Sep 21, 2021
njacazio
pushed a commit
that referenced
this pull request
Apr 20, 2023
* Add option to process only tracked cascades * Please consider the following formatting changes (#101) --------- Co-authored-by: ALICE Builder <alibuild@users.noreply.github.com>
alibuild
pushed a commit
to alibuild/O2Physics
that referenced
this pull request
Dec 30, 2024
[PWGLF] Update spectraTOF.cxx
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.
No description provided.