[PWGJE] Fix leading-jet selection (Rec) and event normalization - #18050
arvindkhuntia wants to merge 3 commits into
Conversation
|
O2 linter results: ❌ 0 errors, |
| float leadingDetJetPt = -1.f; | ||
| if (isWithLeadingJet) { | ||
| for (const auto& mcdjet : mcdjets) { | ||
| if (isConeAxisAccepted(mcdjet.eta()) && mcdjet.pt() > leadingDetJetPt) { |
There was a problem hiding this comment.
instead of mcdjet.pt() shouldnt you be checking the jet pT after background subtraction here? you can use a conditional statement like this:
const float mcdJetPtForResponseSel = usebkgSubractionMC ? mcdjet.pt() - backgroundRho * jetArea : mcdjet.pt();
if (isConeAxisAccepted(mcdjet.eta()) && mcdJetPtForResponseSel > leadingDetJetPt) {
leadingDetJetPt = mcdJetPtForResponseSel;
leadingDetJetId = mcdjet.globalIndex();
}
There was a problem hiding this comment.
Many thanks, @nzardosh, for the suggestion. The background-subtracted p_T cut is already applied later in the matching loop. I’ve now also used the corrected p_T to select the leading detector jet and added an early rejection of \rho < 0 when subtraction is enabled, avoiding unnecessary further processing for those events. Have a nice day.
No description provided.