Skip to content

Commit 57e9d55

Browse files
committed
[PWGJE] add matching status axis to MCD THnSparse
1 parent f6382c9 commit 57e9d55

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

PWGJE/Tasks/jetDsSpecSubs.cxx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ struct JetDsSpecSubs {
211211
registry.add("h_ds_mass_mcd", ";m_{D_{S}}^{det} (GeV/#it{c}^{2});entries", {HistType::kTH1F, {{200, 1.7, 2.15}}});
212212

213213
// Detector-level sparse histograms
214-
registry.add("hSparse_ds_mcd1", ";m_{D_{S}}^{rec};#it{p}_{T,D_{S}}^{det};#it{p}_{T,jet}^{det};z^{D_{S},jet}_{||,det};Origin(D_{S})", {HistType::kTHnSparseF, {{60, 1.6, 2.3}, {60, 0., 80.}, {60, 0., 100.}, {20, 0., 1.2}, {2, -0.5, 1.5}}});
214+
registry.add("hSparse_ds_mcd1", ";m_{D_{S}}^{rec};#it{p}_{T,D_{S}}^{det};#it{p}_{T,jet}^{det};z^{D_{S},jet}_{||,det};Origin(D_{S});Matching status", {HistType::kTHnSparseF, {{60, 1.6, 2.3}, {60, 0., 80.}, {60, 0., 100.}, {20, 0., 1.2}, {2, -0.5, 1.5}, {2, -0.5, 1.5}}});
215215
registry.add("hSparse_ds_mcd2", ";#it{p}_{T,D_{S}}^{det};#it{p}_{T,jet}^{det};#DeltaR_{D_{S},jet}^{det}", {HistType::kTHnSparseF, {{60, 0., 80.}, {60, 0., 100.}, {20, 0., 1.}}});
216216
registry.add("hSparse_ds_mcd3", ";#it{p}_{T,jet}^{det};z^{D_{S},jet}_{||,det};#DeltaR_{D_{S},jet}^{det}", {HistType::kTHnSparseF, {{60, 0., 100.}, {20, 0., 1.2}, {20, 0., 1.}}});
217217

@@ -243,6 +243,8 @@ struct JetDsSpecSubs {
243243
auto hSparseMCD = registry.get<THnSparse>(HIST("hSparse_ds_mcd1"));
244244
hSparseMCD->GetAxis(4)->SetBinLabel(1, "Prompt");
245245
hSparseMCD->GetAxis(4)->SetBinLabel(2, "Non-prompt");
246+
hSparseMCD->GetAxis(5)->SetBinLabel(1, "Unmatched");
247+
hSparseMCD->GetAxis(5)->SetBinLabel(2, "Matched");
246248

247249
auto hSparseMCP = registry.get<THnSparse>(HIST("hSparse_ds_mcp"));
248250
hSparseMCP->GetAxis(4)->SetBinLabel(1, "Prompt");
@@ -597,6 +599,9 @@ struct JetDsSpecSubs {
597599
// Check if it's prompt
598600
int origin = (mcdDscand.originMcRec() != RecoDecay::OriginType::Prompt) ? 1 : 0;
599601

602+
// Matching status: 1 if the detector-level jet has a particle-level partner, 0 otherwise
603+
int isMatchedMCD = mcdjet.has_matchedJetCand() ? 1 : 0;
604+
600605
// Check whether a matched particle-level jet exists
601606
if (mcdjet.has_matchedJetCand()) {
602607
registry.fill(HIST("McEffJet"), getValFromBin(BinMCJetCntr::DetectorLevelJetWithMatchedCandidate));
@@ -627,7 +632,8 @@ struct JetDsSpecSubs {
627632
mcdDscand.pt(),
628633
mcdjet.pt(),
629634
mcd_zParallel,
630-
origin);
635+
origin,
636+
isMatchedMCD);
631637
// MCD THnSparse2: invariant p{T,Ds}, pT and DeltaR
632638
registry.fill(HIST("hSparse_ds_mcd2"),
633639
mcdDscand.pt(),

0 commit comments

Comments
 (0)