-
Notifications
You must be signed in to change notification settings - Fork 485
Use expression columns for MC particles #6567
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
|
@njacazio : Just for my understanding. Is this changing the data model or just the way we compute dynamic properties? (So it will not need changes in AOD conversion ?) |
|
Ciao @sawenzel good call, the AOD conversion should stay unchanged as this affects only dynamic (i.e. derived) columns |
|
@njacazio changing eta to an expression column would lead to division by zero for some of the particles, I've tried it :) |
|
@aalkin is there a protection that we can add to avoid that? Is the division avoided with dynamic columns? |
With dynamic columns this is avoided simply because those are called only for some particles useful in analysis - with a reasonable values of pseudorapidity. Expression would run for every particles, including those very forward ones. Before we have conditional nodes in expressions or an ability to use arrow's null rows I'm afraid there is no workaround. |
|
We do not trap FPE in O2 to my understanding. What is the problem here? |
This is outside O2, this is done by Gandiva library and it stops on FPE. |
|
@aalkin I see. So, for now, we should leave Eta as a dynamic column right? |
Yes, unfortunately that is correct. |
|
This is a severe limitation. When could we have conditional nodes in gandiva? |
|
In the meanwhile we may think about adjusting slightly the momenta of the particles where we get fpe. These will be outside the physical region anyway, I suspect... |
And we cannot pre-cook variables in dynamic columns and then feed them to expression columns for the heavy lifting right? |
One could indeed create a non-dynamic column, fill it values using a normal task with safety checks and then append expression column that uses these new numbers. |
|
With these two commits alisw/AliPhysics#18164 and #6691 we should be able to avoid the FPE until we have the extension in the features |
|
Do we have any reason for not merging this? Yes, the PRs in AliPhysics are not yet merged. |
|
Ciao @ktf I don't know, but to be working with AO2Ds we first need the fixes in AliPhysics and O2 workflows |
jgrosseo
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.
We have to reproduce the MCs first. Do not merge, yet.
|
Both PRs pending are now merged, we wait for the test on converted data and then we go on! |
|
@aalkin brilliant! I'm on it!! Thanks a lot |
86537e7 to
f99a824
Compare
|
I tested that this works on LHC18g4 285011 181_20210626-1348 ready for review! |
jgrosseo
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.
As discussed, let's have hard coded values when it would trigger an FPE.
- Add ifnode for y and eta to avoid FPEs
- Add ifnode for y and eta to avoid FPEs
No description provided.