[PWGJE] Adding file jetHadronsPID.cxx and it's workflow#16012
[PWGJE] Adding file jetHadronsPID.cxx and it's workflow#16012llorenc-11 wants to merge 21 commits into
Conversation
|
O2 linter results: ❌ 2 errors, |
|
@MyFavoriteGitHub your username does not really identify you well in the collaboration. |
| bool hasITSHit(const TrackIts& track, int layer) | ||
| { | ||
| int ibit = layer - 1; | ||
| return (track.itsClusterMap() & (1 << ibit)); |
There was a problem hiding this comment.
This is not a bool expression.
| /// \author Małgorzata Janik malgorzata.janik@cern.ch | ||
| /// \author Daniela Ruggiano daniela.ruggiano@cern.ch | ||
|
|
||
| #include "PWGJE/Core/JetBkgSubUtils.h" |
| continue; | ||
|
|
||
| fastjet::PseudoJet fourMomentum(track.px(), track.py(), track.pz(), track.energy(MassPionCharged)); | ||
| fourMomentum.set_user_index(id); |
There was a problem hiding this comment.
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++
| continue; | ||
|
|
||
| double normalizedJetArea = jet.area() / (PI * rJet * rJet); | ||
| if (applyAreaCut && (!isppRefAnalysis) && normalizedJetArea > maxNormalizedJetArea) |
There was a problem hiding this comment.
you apply a maximum cut instead of minimum?
| if (fjParticles.empty()) | ||
| return; | ||
|
|
||
| fastjet::JetDefinition jetDef(fastjet::antikt_algorithm, rJet); |
There was a problem hiding this comment.
why do you not use the common jet finder?
| static constexpr double DcaxyMaxTrackPar0 = 0.0105; | ||
| static constexpr double DcaxyMaxTrackPar1 = 0.035; | ||
| static constexpr double DcaxyMaxTrackPar2 = 1.1; | ||
| static constexpr double DcazMaxTrack = 2.0; |
There was a problem hiding this comment.
the dca cuts for kets and PID are very different, is this safe?
| if (requireIsVertexTOFmatched && !collision.selection_bit(o2::aod::evsel::kIsVertexTOFmatched)) | ||
| return; | ||
|
|
||
| for (auto const& mcpart : mcParticles) { |
There was a problem hiding this comment.
this loops over every mc particle in the dataframe, not just the ones associated to the mcCollision matched to that particular collision
| bool hasITSLayerHit(const TrackIts& track, int layer) | ||
| { | ||
| int ibit = layer - 1; | ||
| return (track.itsClusterMap() & (1 << ibit)) != 0; |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
I already commented on this. Don't compare double to 0.
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