Skip to content

[PWGJE] Adding file jetHadronsPID.cxx and it's workflow#16012

Open
llorenc-11 wants to merge 21 commits into
AliceO2Group:masterfrom
llorenc-11:PID-Hadrons-in-Jets
Open

[PWGJE] Adding file jetHadronsPID.cxx and it's workflow#16012
llorenc-11 wants to merge 21 commits into
AliceO2Group:masterfrom
llorenc-11:PID-Hadrons-in-Jets

Conversation

@llorenc-11
Copy link
Copy Markdown

The reason for this pull request is to create a new analysis of PID in jets as a student's team with the collaboration of Warsaw University of Technology Physics department .
This is the first pull request from this account, I hope all the technical requirements are met.
If you have any questions, please contact me on leonard.lorenc@cern.ch

@github-actions github-actions Bot added the pwgje label Apr 28, 2026
@github-actions github-actions Bot changed the title [PWGJE] Adding file jetHadronsPID.cxx and it's workflow [PWGJE] Adding file jetHadronsPID.cxx and it's workflow Apr 28, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 28, 2026

O2 linter results: ❌ 2 errors, ⚠️ 1 warnings, 🔕 0 disabled

@llorenc-11 llorenc-11 marked this pull request as ready for review April 28, 2026 19:10
@vkucera
Copy link
Copy Markdown
Collaborator

vkucera commented Apr 29, 2026

@MyFavoriteGitHub your username does not really identify you well in the collaboration.

Comment thread PWGJE/Tasks/jetHadronsPid.cxx Outdated
Comment thread PWGJE/Tasks/jetHadronsPid.cxx Outdated
Comment thread PWGJE/Tasks/jetHadronsPid.cxx
Comment thread PWGJE/Tasks/jetHadronsPid.cxx Outdated
Comment thread PWGJE/Tasks/jetHadronsPid.cxx Outdated
Comment thread PWGJE/Tasks/jetHadronsPid.cxx Outdated
bool hasITSHit(const TrackIts& track, int layer)
{
int ibit = layer - 1;
return (track.itsClusterMap() & (1 << ibit));
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a bool expression.

Comment thread PWGJE/Tasks/jetHadronsPid.cxx Outdated
Comment thread PWGJE/Tasks/jetHadronsPid.cxx Outdated
/// \author Małgorzata Janik malgorzata.janik@cern.ch
/// \author Daniela Ruggiano daniela.ruggiano@cern.ch

#include "PWGJE/Core/JetBkgSubUtils.h"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vkucera can you check the includes please?

Comment thread PWGJE/Tasks/jetHadronsPid.cxx Outdated
continue;

fastjet::PseudoJet fourMomentum(track.px(), track.py(), track.pz(), track.energy(MassPionCharged));
fourMomentum.set_user_index(id);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is probably fine but is it the same as using globalIndex()? Probably globalIndex is safer in case at some point you accidentally add a cut before idx++

Comment thread PWGJE/Tasks/jetHadronsPid.cxx Outdated
continue;

double normalizedJetArea = jet.area() / (PI * rJet * rJet);
if (applyAreaCut && (!isppRefAnalysis) && normalizedJetArea > maxNormalizedJetArea)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you apply a maximum cut instead of minimum?

Comment thread PWGJE/Tasks/jetHadronsPid.cxx Outdated
if (fjParticles.empty())
return;

fastjet::JetDefinition jetDef(fastjet::antikt_algorithm, rJet);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do you not use the common jet finder?

Comment thread PWGJE/Tasks/jetHadronsPid.cxx Outdated
static constexpr double DcaxyMaxTrackPar0 = 0.0105;
static constexpr double DcaxyMaxTrackPar1 = 0.035;
static constexpr double DcaxyMaxTrackPar2 = 1.1;
static constexpr double DcazMaxTrack = 2.0;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the dca cuts for kets and PID are very different, is this safe?

Comment thread PWGJE/Tasks/jetHadronsPid.cxx Outdated
if (requireIsVertexTOFmatched && !collision.selection_bit(o2::aod::evsel::kIsVertexTOFmatched))
return;

for (auto const& mcpart : mcParticles) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this loops over every mc particle in the dataframe, not just the ones associated to the mcCollision matched to that particular collision

@nzardosh nzardosh marked this pull request as draft April 29, 2026 08:32
@llorenc-11 llorenc-11 marked this pull request as ready for review May 10, 2026 19:29
@llorenc-11 llorenc-11 requested a review from nzardosh May 14, 2026 16:32
@llorenc-11 llorenc-11 requested a review from vkucera May 18, 2026 10:40
Comment thread PWGJE/Tasks/jetHadronsPid.cxx Outdated
Comment thread PWGJE/Tasks/jetHadronsPid.cxx Outdated
@vkucera vkucera marked this pull request as draft May 18, 2026 12:18
@llorenc-11 llorenc-11 requested a review from vkucera May 21, 2026 17:44
@llorenc-11 llorenc-11 marked this pull request as ready for review May 22, 2026 08:04
@llorenc-11 llorenc-11 marked this pull request as draft May 25, 2026 08:16
@llorenc-11 llorenc-11 marked this pull request as ready for review May 25, 2026 08:47
@llorenc-11 llorenc-11 marked this pull request as draft May 28, 2026 16:56
@llorenc-11 llorenc-11 marked this pull request as ready for review May 28, 2026 17:06
bool hasITSLayerHit(const TrackIts& track, int layer)
{
int ibit = layer - 1;
return (track.itsClusterMap() & (1 << ibit)) != 0;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this same as return TESTBIT(track.itsClusterMap(), layer - 1);?

}
registryData.fill(HIST("jet_n_constituents"), constituentCount);

if (ueAxis1.Mag() == 0 || ueAxis2.Mag() == 0)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I already commented on this. Don't compare double to 0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

4 participants