-
Notifications
You must be signed in to change notification settings - Fork 625
[PWGHF] Fix vector error in candidateSelectorOmegac0ToOmegaPi.cxx #11286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
O2 linter results: ❌ 1 errors, |
|
Can you please explain the error that is fixed by this PR? |
Hi Vit. The reason is that if we don't apply ML, std::vector outputMlOmegac would be an empty vector. If I fill outputMlOmegac[0] with other variables(such as Invmass). This will result in out-of-bounds access on a null vector. |
|
fgrosa
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @FDUEnrich @vkucera I would suggest to store directly the vector with BDT scores as done for the other channels (see
O2Physics/PWGHF/DataModel/CandidateSelectionTables.h
Lines 47 to 61 in 4ec9c7a
| DECLARE_SOA_COLUMN(MlProbD0, mlProbD0, std::vector<float>); //! | |
| DECLARE_SOA_COLUMN(MlProbD0bar, mlProbD0bar, std::vector<float>); //! | |
| } // namespace hf_sel_candidate_d0 | |
| DECLARE_SOA_TABLE(HfSelD0, "AOD", "HFSELD0", //! | |
| hf_sel_candidate_d0::IsSelD0, | |
| hf_sel_candidate_d0::IsSelD0bar, | |
| hf_sel_candidate_d0::IsRecoHfFlag, | |
| hf_sel_candidate_d0::IsRecoTopol, | |
| hf_sel_candidate_d0::IsRecoCand, | |
| hf_sel_candidate_d0::IsRecoPid); | |
| DECLARE_SOA_TABLE(HfMlD0, "AOD", "HFMLD0", //! | |
| hf_sel_candidate_d0::MlProbD0, | |
| hf_sel_candidate_d0::MlProbD0bar); |
|
Hi @FDUEnrich do the last commits include everything you wanted to implement, or will you still add the ML table? |
|
Please consider the following formatting changes to AliceO2Group#11286
…iceO2Group#11286) Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
…iceO2Group#11286) Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
…iceO2Group#11286) Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
…iceO2Group#11286) Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
…iceO2Group#11286) Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
…iceO2Group#11286) Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
…iceO2Group#11286) Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
…iceO2Group#11286) Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
…iceO2Group#11286) Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
No description provided.