[PWGHF] Fix vector error in candidateSelectorOmegac0ToOmegaPi.cxx#11286
[PWGHF] Fix vector error in candidateSelectorOmegac0ToOmegaPi.cxx#11286fgrosa merged 10 commits intoAliceO2Group:masterfrom
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.
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
|
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.