[PWGJE] Bugfixes in JE tasks - #17903
Conversation
mhwang285
commented
Sep 14, 2026
- Kappa and alpha were not being used in some angularity calculations
- Resolved some O2 linter issues (most but not all)
- Fixed two mislabeled histogram axes in jetSpectraCharged.cxx
|
O2 linter results: ❌ 9 errors, |
|
Error while checking build/O2Physics/code-check for 0fdf62c at 2026-09-14 10:39: Full log here. |
nzardosh
left a comment
There was a problem hiding this comment.
Dear Tucker, thanks for making the changes. I have left a couple of comments.
For a future note it is best not to change the analysis tasks written by other analysers, even if the changes are cosmetic (unless discussed with them first, in which case please disregard this) as they might be making changes of their own in their local branches. @aimeric-landou @joonsukbae could you please check and make sure you are ok with the changes proposed.
| Filter eventCuts = (nabs(aod::jcollision::posZ) < vertexZCut && | ||
| ((checkCentFT0M ? aod::jcollision::centFT0M : aod::jcollision::centFT0C) >= centralityMin) && | ||
| ((checkCentFT0M ? aod::jcollision::centFT0M : aod::jcollision::centFT0C) < centralityMax)); | ||
| PresliceUnsorted<soa::Filtered<aod::JetCollisionsMCD>> CollisionsPerMCPCollision = aod::jmccollisionlb::mcCollisionId; |
There was a problem hiding this comment.
For these could you put them back please? even though it goes against the convention in most of the framework I use capitals for preslices to differentiate them. We might decide to change this globally for later but for now would be nice to keep it consistent
| angularityMcd += std::pow(constituent.pt(), kappa) * std::pow(jetutilities::deltaR(jetMCD, constituent), alpha); | ||
| angularityMcd += std::pow(constituent.pt(), kappa) * std::pow(jetutilities::deltaR(jetMCD, constituent) / (jetMCD.r() / 100.f), alpha); | ||
| } | ||
| angularityMcd /= (corrBasejetpt * (jetMCD.r() / 100.f)); |
There was a problem hiding this comment.
in line 746 there is a division by the radius. There shouldnt be another one here i think?
There was a problem hiding this comment.
Ah thanks for catching that, I fixed 746 but not 748, both lines are fixed now. I also had to change corrTagjetpt, corrBasejetpt, and dcorrpt to floats so that we can use std::pow with a kappa (which is float)
|
Error while checking build/O2Physics/code-check for 7658b87 at 2026-09-15 00:52: Full log here. |
Dear @mhwang285 and @nzardosh, it looks good to me. The type/name changes and the angularity expansion also look good. Thank you also for catching the switched MCD vs. MCP axis labels. |