-
Notifications
You must be signed in to change notification settings - Fork 523
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
[PWGCF] Update lambdaR2Correlation.cxx #8779
base: master
Are you sure you want to change the base?
Conversation
yashpatley
commented
Dec 2, 2024
- Modified the lambda selection methods
- Added correction factor histograms from ccdb
1. Modified the lambda selection methods 2. Added correction factor histograms from ccdb
Error while checking build/O2Physics/o2 for a77aaad at 2024-12-02 19:14:
Full log here. |
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.
Please, have a look at my comment
Functionality should be pushed once it has been tested locally
int vz_bin = hist->GetZaxis()->FindBin(col.posZ()); | ||
return hist->GetBinContent(pt_bin, rap_bin, vz_bin); | ||
} else { | ||
return 1.; | ||
} | ||
} |
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.
Please, run it locally before pushing the functionality
There are histograms that are cloned on a per V0 basis and that are left there, allocated, which creates memory leaks
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.
Dear Victor, I will keep this in mind. I missed compiling the task after the last change, it will not happen again.
I understand the thing about memory leak. I will rectify it in next PR. I am not going to use CCDB object this time because I want to get the correction factors with this task. I added the ccdb method for future purposes. I will keep the memory leak thing in mind and thank you for your suggestion.
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.
It is not only a matter of compiling
You should not use hyperloop for testing your functionality
Once the functionality is tested locally and confirmed that works then it can be pushed to the central repo for having it available on hyperloop
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.
Okay Victor, I will keep this in mind.
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.
Have in mind that all histograms are derived from TH1
and that it has a method for knowing the number of dimensions one histogram actually has