Skip to content

Commit 90caf89

Browse files
committed
Move to central decay table
1 parent e4fedb5 commit 90caf89

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

PWGHF/D2H/TableProducer/candidateCreatorBToJpsiReduced.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ struct HfCandidateCreatorBToJpsiReduced {
401401
}; // struct
402402

403403
/// Extends the table base with expression columns and performs MC matching.
404-
struct HfCandidateCreatorBplusToJpsiReducedExpressions {
404+
struct HfCandidateCreatorBToJpsiReducedExpressions {
405405
Spawns<aod::HfCandBpJPExt> rowCandidateBPlus;
406406
Spawns<aod::HfCandBsJPExt> rowCandidateBs;
407407
Spawns<aod::HfRedBach0Ext> rowTracksExt0;
@@ -449,17 +449,17 @@ struct HfCandidateCreatorBplusToJpsiReducedExpressions {
449449
{
450450
fillMcRec<DecayChannel::BplusToJpsiK>(rowsJpsiKMcRec, candsBplus);
451451
}
452-
PROCESS_SWITCH(HfCandidateCreatorBplusToJpsiReducedExpressions, processMcBPlus, "Process MC", false);
452+
PROCESS_SWITCH(HfCandidateCreatorBToJpsiReducedExpressions, processMcBPlus, "Process MC", false);
453453

454454
void processMcBs(HfMcRecRedJPPhis const& rowsJpsiPhiMcRec, HfRedBs2JpsiDaus const& Bs)
455455
{
456456
fillMcRec<DecayChannel::BsToJpsiPhi>(rowsJpsiPhiMcRec, Bs);
457457
}
458-
PROCESS_SWITCH(HfCandidateCreatorBplusToJpsiReducedExpressions, processMcBs, "Process MC", false);
458+
PROCESS_SWITCH(HfCandidateCreatorBToJpsiReducedExpressions, processMcBs, "Process MC", false);
459459
};
460460

461461
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
462462
{
463463
return WorkflowSpec{adaptAnalysisTask<HfCandidateCreatorBToJpsiReduced>(cfgc),
464-
adaptAnalysisTask<HfCandidateCreatorBplusToJpsiReducedExpressions>(cfgc)};
464+
adaptAnalysisTask<HfCandidateCreatorBToJpsiReducedExpressions>(cfgc)};
465465
}

PWGHF/D2H/TableProducer/dataCreatorJpsiHadReduced.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ struct HfDataCreatorJpsiHadReduced {
416416
indexRec = RecoDecay::getMatchedMCRec<false, false, false, true, true>(particlesMc, std::array{vecDaughtersB[0], vecDaughtersB[1]}, Pdg::kJPsi, std::array{-kElectron, +kElectron}, true, &sign, 1);
417417
}
418418
if (indexRec > -1) {
419-
flag = sign * BIT(static_cast<uint8_t>(hf_cand_bplus::DecayTypeBToJpsiMc::BplusToJpsiKToMuMuK));
419+
flag = sign * o2::hf_decay::hf_cand_beauty::BplusToJpsiK;
420420
} else {
421421
debug = 1;
422422
LOGF(debug, "B+ decays in the expected final state but the condition on the intermediate state is not fulfilled");
@@ -448,7 +448,7 @@ struct HfDataCreatorJpsiHadReduced {
448448
if (indexRec > -1) {
449449
indexRec = RecoDecay::getMatchedMCRec<false, false, false, true, true>(particlesMc, std::array{vecDaughtersB[2], vecDaughtersB[3]}, Pdg::kPhi, std::array{-kKPlus, +kKPlus}, true, &sign, 1);
450450
if (indexRec > -1) {
451-
flag = sign * BIT(static_cast<uint8_t>(hf_cand_bs::DecayTypeBToJpsiMc::BsToJpsiPhiToMuMuKK));
451+
flag = sign * o2::hf_decay::hf_cand_beauty::BsToJpsiPhi;
452452
} else {
453453
debug = 1;
454454
LOGF(debug, "Bs decays in the expected final state but the condition on the phi intermediate state is not fulfilled");

PWGHF/D2H/Tasks/taskBplusToJpsiKReduced.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ struct HfTaskBplusToJpsiKReduced {
309309
if constexpr (doMc) {
310310
flagMcMatchRec = candidate.flagMcMatchRec();
311311
flagWrongCollision = candidate.flagWrongCollision();
312-
isSignal = TESTBIT(std::abs(flagMcMatchRec), static_cast<int>(hf_cand_bplus::DecayTypeBToJpsiMc::BplusToJpsiKToMuMuK));
312+
isSignal = std::abs(flagMcMatchRec) == o2::hf_decay::hf_cand_beauty::BplusToJpsiK;
313313
}
314314

315315
SETBIT(statusBplus, SelectionStep::RecoSkims);

PWGHF/D2H/Tasks/taskBsToJpsiPhiReduced.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ struct HfTaskBsToJpsiPhiReduced {
339339
if constexpr (doMc) {
340340
flagMcMatchRec = candidate.flagMcMatchRec();
341341
flagWrongCollision = candidate.flagWrongCollision();
342-
isSignal = TESTBIT(std::abs(flagMcMatchRec), static_cast<int>(hf_cand_bs::DecayTypeBToJpsiMc::BsToJpsiPhiToMuMuKK));
342+
isSignal = flagMcMatchRec == o2::hf_decay::hf_cand_beauty::BsToJpsiPhi;
343343
}
344344

345345
SETBIT(statusBs, SelectionStep::RecoSkims);

0 commit comments

Comments
 (0)