Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions PWGJE/Tasks/jetLundPlane.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ DECLARE_SOA_COLUMN(SoftPhi, softPhi, float);
DECLARE_SOA_TABLE(MiniSplittings, "AOD", "MINISPL",
MiniJetId, SplitId, DeltaR, PtSoft, PtHard, SoftEta, SoftPhi, JetPt);

// Inclusive splittings for all accepted jets (det or part), independent of matching
DECLARE_SOA_TABLE(MiniSplittingsAll, "AOD", "MINISPLA",
MiniJetId, SplitId, DeltaR, PtSoft, PtHard, SoftEta, SoftPhi, JetPt);

// Jet-jet matching (MC)
DECLARE_SOA_COLUMN(MatchDR, matchDR, float);
DECLARE_SOA_COLUMN(MatchRelPt, matchRelPt, float);
Expand Down Expand Up @@ -293,6 +297,7 @@ struct JetLundPlaneUnfolding {
Produces<aod::MiniCollisions> outMiniCollisions;
Produces<aod::MiniJets> outMiniJets;
Produces<aod::MiniSplittings> outMiniSplittings;
Produces<aod::MiniSplittingsAll> outMiniSplittingsAll;
Produces<aod::MiniJetMatches> outMiniJetMatches;

// FastJet reclustering setup (C/A)
Expand Down Expand Up @@ -542,6 +547,11 @@ struct JetLundPlaneUnfolding {
for (auto const& s : spl) {
outMiniSplittings(miniJetIdx, sid++, s.deltaR, s.ptSoft, s.ptHard, s.softEta, s.softPhi, jet.pt());
}

uint16_t sidAll = 0;
for (auto const& s : spl) {
outMiniSplittingsAll(miniJetIdx, sidAll++, s.deltaR, s.ptSoft, s.ptHard, s.softEta, s.softPhi, jet.pt());
}
}
}
}
Expand Down Expand Up @@ -606,6 +616,11 @@ struct JetLundPlaneUnfolding {

outMiniJets(partMiniCollIdx, /*level*/ JetLevel::Part, partJet.r(), partJet.pt(), partJet.eta(), partJet.phi());
partJetToMiniJetIdx[truthJetKey] = outMiniJets.lastIndex();

uint16_t sidAll = 0;
for (auto const& s : spl) {
outMiniSplittingsAll(partJetToMiniJetIdx[truthJetKey], sidAll++, s.deltaR, s.ptSoft, s.ptHard, s.softEta, s.softPhi, partJet.pt());
}
}

if (!partJet.has_matchedJetGeo()) {
Expand Down Expand Up @@ -674,6 +689,11 @@ struct JetLundPlaneUnfolding {

outMiniJets(detMiniCollIdx, /*level*/ JetLevel::Det, detJet.r(), detJet.pt(), detJet.eta(), detJet.phi());
detJetToMiniJetIdx[detJetKey] = outMiniJets.lastIndex();

uint16_t sidAll = 0;
for (auto const& s : detSpl) {
outMiniSplittingsAll(detJetToMiniJetIdx[detJetKey], sidAll++, s.deltaR, s.ptSoft, s.ptHard, s.softEta, s.softPhi, detJet.pt());
}
}

if (!detJet.has_matchedJetGeo()) {
Expand Down
Loading