[PWGJE] TOF-veto selection fixed - #17971
Conversation
|
O2 linter results: ❌ 0 errors, |
|
Error while checking build/O2Physics/code-check for ddccf35 at 2026-09-20 11:53: Full log here. |
|
Error while checking build/O2Physics/o2 for ddccf35 at 2026-09-20 11:57: Full log here. |
| float jetPt = -999.; | ||
|
|
||
| if (isWithLeadingJet) { | ||
| if (!isConeAxisAccepted(leadingJetPtEtaPhi[1])) { |
There was a problem hiding this comment.
can you check this logic please?
It seems that if you dont find a jet and isWithJetEvents is false, then isWithLeadingJet is still true and you go into the fillTrackInfo and pass it leadingJetPtEtaPhi[1] which has a default value of zero. This gives you a fake jet where there shouldnt be one?
There was a problem hiding this comment.
Hi @nzardosh,
Thank you for pointing this out. Without a valid leading-jet guard, the default {0,0,0} vector could create a fake jet/perpendicular cone when isWithJetEvents=false and no jet is found. I fixed it by adding an explicit valid-leading-jet check. Many thanks.
|
Btw isConeAxisAccepted is not applied in processMCRec but it is in the others |
|
Currently, I am not using processMCRec process function but for consistency I can add isConeAxisAccepted in the next PR. Many thanks. |
No description provided.