PWGJE: Add task for K* in jets#6798
PWGJE: Add task for K* in jets#6798JimunLee wants to merge 19 commits intoAliceO2Group:masterfrom JimunLee:master
Conversation
Please consider the following formatting changes to #6798
nzardosh
left a comment
There was a problem hiding this comment.
Thanks for the PR, I will finish the rest of my review after we discuss
| @@ -1,31 +1 @@ | |||
| CMakeCache.txt | |||
There was a problem hiding this comment.
this file should be removed
| using namespace o2::framework::expressions; | ||
|
|
||
| struct kstarInJets { | ||
| SliceCache cache; |
| SliceCache cache; | ||
| HistogramRegistry JEhistos{"JEhistos", {}, OutputObjHandlingPolicy::AnalysisObject}; | ||
|
|
||
| HistogramRegistry registry{"registry", |
There was a problem hiding this comment.
why do you have 2 different registries
| {"h_part_jet_eta", "particle level jet #eta;#eta_{jet part};entries", {HistType::kTH1F, {{100, -1.0, 1.0}}}}, | ||
| {"h_part_jet_phi", "particle level jet #phi;#phi_{jet part};entries", {HistType::kTH1F, {{80, -1.0, 7.}}}}}}; | ||
|
|
||
| Configurable<std::string> cfgeventSelections{"cfgeventSelections", "sel8", "choose event selection"}; |
There was a problem hiding this comment.
in the JE framework we tend not to start configurables with "cfg"
| JEhistos.add("Resp_Matrix", "Resp_Matrix", HistType::kTHnSparseD, {PtAxis, axisPt, PtAxis, axisPt}); // REC(Phi,Jet), GEN(Phi,Jet) | ||
| JEhistos.add("Resp_Matrix_MATCHED", "Resp_Matrix_MATCHED", HistType::kTHnSparseD, {PtAxis, axisPt, PtAxis, axisPt}); // REC(Phi,Jet), GEN(Phi,Jet) | ||
|
|
||
| JEhistos.add("ptGeneratedPion", "ptGeneratedPion", kTH1F, {PtAxis}); |
There was a problem hiding this comment.
it seems you are trying to do all the analysis in histograms instead of trees. is this feasible for systematics
| bool tpcPIDPassed{false}, tofPIDPassed{false}; | ||
| if (std::abs(candidate.tpcNSigmaPi()) < cfgnTPCPID) | ||
| tpcPIDPassed = true; | ||
|
|
| if (!trackPIDKaon(trk1) || !trackPIDPion(trk2)) | ||
| return; | ||
|
|
||
| if (trk1.index() == trk2.index()) |
There was a problem hiding this comment.
you should put this first
There was a problem hiding this comment.
and it should be globalIndex()
| if (!jetderiveddatautilities::selectCollision(collision, jetderiveddatautilities::JCollisionSel::sel8)) | ||
| return; | ||
|
|
||
| for (auto& [track1, track2] : combinations(o2::soa::CombinationsFullIndexPolicy(tracks, tracks))) { |
There was a problem hiding this comment.
can you point me to what this does and where its defined?
There was a problem hiding this comment.
why do you do this for all pairs of tracks and not only the ones inside jets?
Maybe you intend these to be the jet tracks only but they are not. You have to do jer.tracks_as<soa::Join<aod::JTracks, aod::JTrackPIs>>()
There was a problem hiding this comment.
so this then should be done inside the charged jet look for each jet
| bool INELgt0 = false; | ||
| for (const auto& track : tracks) { | ||
| if (fabs(track.eta()) < cfgtrkMaxEta) { | ||
| INELgt0 = true; |
There was a problem hiding this comment.
why is this only done for reco and not for data
| continue; | ||
| } | ||
|
|
||
| if (originalTrack.index() >= originalTrack2.index()) |
There was a problem hiding this comment.
all of these should be globalIndex() ?
There was a problem hiding this comment.
I think you should reformaulate the way you do the for loops. So that the second for loop over tracks starts from the track index after the current one in the first loop
|
Hi @JimunLee , I have converted your PR to a draft, because it cannot be merged as it is now for several reasons, so there is no point running the compilation tests yet. You have wrongly removed Your task is derived from Adrian's task |
|
@JimunLee There is no need for you to run |
Ah, Thank you ! Then, Can I just click on the link and proceed with the process by pressing "Merge"? |
Yes |
Please consider the following formatting changes to #6798 yes, I did follow this process


Dear Experts,
Hello I am Jimun Lee,
I have recently started working on the K*(892) analysis.
This PR is for reconstructing K* within jets.
Requesting a PR review