[PWGCF] Generic Framework: PID v2#8651
Conversation
4ed650e to
24db179
Compare
|
Error while checking build/O2Physics/o2 for 24db179 at 2024-11-25 21:18: Full log here. |
victor-gonzalez
left a comment
There was a problem hiding this comment.
Please, don't use the GenericFramework directory. It is for the own GFW
This task was already created in the Flow directory which is where it should be placed
Why is not the one there updated?
|
This task uses the GFW and so the GenericFramework directory was being used.
However, since the same task is in the Flow directory, I will modify it to
use the GFW.
…On Mon, Nov 25, 2024 at 9:27 PM Victor Gonzalez ***@***.***> wrote:
***@***.**** requested changes on this pull request.
Please, don't use the GenericFramework directory. It is for the own GFW
This task was already created in the Flow directory which is where it
should be placed
Why is not the one there updated?
—
Reply to this email directly, view it on GitHub
<#8651 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BKFU3W6VNCK5UQS7RNGJIE32COB2JAVCNFSM6AAAAABSOPMD62VHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDINJZGU3DAMJVHA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
24db179 to
64db143
Compare
[PWGCF] Please consider the following formatting changes to AliceO2Group#8651
| if (idprob.first == 0 || idprob.first == 1 || idprob.first == 2) { // 0 = pion, 1 = kaon, 2 = proton | ||
| pidID = idprob.first; | ||
| float nsigmaTPC[3] = {track.tpcNSigmaPi(), track.tpcNSigmaKa(), track.tpcNSigmaPr()}; | ||
| if (idprob.second > maxProb[pidID]) { | ||
| if (abs(nsigmaTPC[pidID]) > 3) | ||
| return 0; | ||
| return pidID + 1; // shift the pid by 1, 1 = pion, 2 = kaon, 3 = proton |
There was a problem hiding this comment.
I would suggest using an enum for particle named constants and using it consistently
The function can return -1 (kWRONGID = -1) in case the identification is not accepted
victor-gonzalez
left a comment
There was a problem hiding this comment.
Please, remove from the PR the not affected file and also change the name of the task according to the functionality
The other comments are for your consideration in next iterations
4973b7a to
5af30c2
Compare
[PWGCF] Please consider the following formatting changes to AliceO2Group#8651
victor-gonzalez
left a comment
There was a problem hiding this comment.
The file PWGCF/GenericFramework/Tasks/CMakeLists.txt should not be part of this PR which means that it should not be modified by the PR. As it is right now the PR modify it and that's why it is included in the PR. It should not be included in the PR
| @@ -12,4 +12,4 @@ | |||
| o2physics_add_dpl_workflow(flow-generic-framework | |||
There was a problem hiding this comment.
This file should not be part of this PR
|
@Preet-Bhanjan Please, don't close the PR, all the comments will be lost if you open a new one |
ed1dc14 to
c90c6dd
Compare
[PWGCF] Please consider the following formatting changes to AliceO2Group#8651
Co-authored-by: Preet Pati <preet@preet-2.local> Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
Co-authored-by: Preet Pati <preet@preet-2.local> Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
Co-authored-by: Preet Pati <preet@preet-2.local> Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
Co-authored-by: Preet Pati <preet@preet-2.local> Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
Co-authored-by: Preet Pati <preet@preet-2.local> Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
Co-authored-by: Preet Pati <preet@preet-2.local> Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
Using generic framework for computing the two-particle correlation v2 for pions, kaons, and protons.