Skip to content

Commit 9a627b7

Browse files
authored
[PWGJE] Add inclusive splittings table to Lund plane task (#15839)
1 parent fb4e87a commit 9a627b7

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

PWGJE/Tasks/jetLundPlane.cxx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ DECLARE_SOA_COLUMN(SoftPhi, softPhi, float);
8585
DECLARE_SOA_TABLE(MiniSplittings, "AOD", "MINISPL",
8686
MiniJetId, SplitId, DeltaR, PtSoft, PtHard, SoftEta, SoftPhi, JetPt);
8787

88+
// Inclusive splittings for all accepted jets (det or part), independent of matching
89+
DECLARE_SOA_TABLE(MiniSplittingsAll, "AOD", "MINISPLA",
90+
MiniJetId, SplitId, DeltaR, PtSoft, PtHard, SoftEta, SoftPhi, JetPt);
91+
8892
// Jet-jet matching (MC)
8993
DECLARE_SOA_COLUMN(MatchDR, matchDR, float);
9094
DECLARE_SOA_COLUMN(MatchRelPt, matchRelPt, float);
@@ -293,6 +297,7 @@ struct JetLundPlaneUnfolding {
293297
Produces<aod::MiniCollisions> outMiniCollisions;
294298
Produces<aod::MiniJets> outMiniJets;
295299
Produces<aod::MiniSplittings> outMiniSplittings;
300+
Produces<aod::MiniSplittingsAll> outMiniSplittingsAll;
296301
Produces<aod::MiniJetMatches> outMiniJetMatches;
297302

298303
// FastJet reclustering setup (C/A)
@@ -542,6 +547,11 @@ struct JetLundPlaneUnfolding {
542547
for (auto const& s : spl) {
543548
outMiniSplittings(miniJetIdx, sid++, s.deltaR, s.ptSoft, s.ptHard, s.softEta, s.softPhi, jet.pt());
544549
}
550+
551+
uint16_t sidAll = 0;
552+
for (auto const& s : spl) {
553+
outMiniSplittingsAll(miniJetIdx, sidAll++, s.deltaR, s.ptSoft, s.ptHard, s.softEta, s.softPhi, jet.pt());
554+
}
545555
}
546556
}
547557
}
@@ -606,6 +616,11 @@ struct JetLundPlaneUnfolding {
606616

607617
outMiniJets(partMiniCollIdx, /*level*/ JetLevel::Part, partJet.r(), partJet.pt(), partJet.eta(), partJet.phi());
608618
partJetToMiniJetIdx[truthJetKey] = outMiniJets.lastIndex();
619+
620+
uint16_t sidAll = 0;
621+
for (auto const& s : spl) {
622+
outMiniSplittingsAll(partJetToMiniJetIdx[truthJetKey], sidAll++, s.deltaR, s.ptSoft, s.ptHard, s.softEta, s.softPhi, partJet.pt());
623+
}
609624
}
610625

611626
if (!partJet.has_matchedJetGeo()) {
@@ -674,6 +689,11 @@ struct JetLundPlaneUnfolding {
674689

675690
outMiniJets(detMiniCollIdx, /*level*/ JetLevel::Det, detJet.r(), detJet.pt(), detJet.eta(), detJet.phi());
676691
detJetToMiniJetIdx[detJetKey] = outMiniJets.lastIndex();
692+
693+
uint16_t sidAll = 0;
694+
for (auto const& s : detSpl) {
695+
outMiniSplittingsAll(detJetToMiniJetIdx[detJetKey], sidAll++, s.deltaR, s.ptSoft, s.ptHard, s.softEta, s.softPhi, detJet.pt());
696+
}
677697
}
678698

679699
if (!detJet.has_matchedJetGeo()) {

0 commit comments

Comments
 (0)