|
21 | 21 | #include "PWGHF/Core/HfHelper.h" |
22 | 22 | #include "PWGHF/DataModel/CandidateReconstructionTables.h" |
23 | 23 | #include "PWGHF/DataModel/CandidateSelectionTables.h" |
| 24 | +#include "PWGHF/Utils/utilsAnalysis.h" |
24 | 25 |
|
25 | 26 | #include "Common/Core/RecoDecay.h" |
26 | 27 |
|
@@ -139,7 +140,8 @@ DECLARE_SOA_TABLE(HfCandD0Lites, "AOD", "HFCANDD0LITE", |
139 | 140 | full::Y, |
140 | 141 | full::FlagMc, |
141 | 142 | full::FlagMcDecayChanRec, |
142 | | - full::OriginMcRec) |
| 143 | + full::OriginMcRec, |
| 144 | + hf_cand::PdgBhadMotherPart) |
143 | 145 |
|
144 | 146 | DECLARE_SOA_TABLE(HfCandD0Fulls, "AOD", "HFCANDD0FULL", |
145 | 147 | collision::PosX, |
@@ -201,7 +203,8 @@ DECLARE_SOA_TABLE(HfCandD0Fulls, "AOD", "HFCANDD0FULL", |
201 | 203 | full::E, |
202 | 204 | full::FlagMc, |
203 | 205 | full::FlagMcDecayChanRec, |
204 | | - full::OriginMcRec); |
| 206 | + full::OriginMcRec, |
| 207 | + hf_cand::PdgBhadMotherPart); |
205 | 208 |
|
206 | 209 | DECLARE_SOA_TABLE(HfCandD0FullEvs, "AOD", "HFCANDD0FULLEV", |
207 | 210 | collision::NumContrib, |
@@ -446,10 +449,10 @@ struct HfTreeCreatorD0ToKPi { |
446 | 449 | massD0bar = HfHelper::invMassD0barToKPi(candidate); |
447 | 450 | } |
448 | 451 | if (candidate.isSelD0()) { |
449 | | - fillTable<ApplyMl>(candidate, 0, massD0, topolChi2PerNdf, ctD, yD, eD, 0, 0, 0); |
| 452 | + fillTable<ApplyMl>(candidate, 0, massD0, topolChi2PerNdf, ctD, yD, eD, 0, 0, 0, -1); |
450 | 453 | } |
451 | 454 | if (candidate.isSelD0bar()) { |
452 | | - fillTable<ApplyMl>(candidate, 1, massD0bar, topolChi2PerNdf, ctD, yD, eD, 0, 0, 0); |
| 455 | + fillTable<ApplyMl>(candidate, 1, massD0bar, topolChi2PerNdf, ctD, yD, eD, 0, 0, 0, -1); |
453 | 456 | } |
454 | 457 | } |
455 | 458 | } |
@@ -547,10 +550,10 @@ struct HfTreeCreatorD0ToKPi { |
547 | 550 | massD0bar = HfHelper::invMassD0barToKPi(candidate); |
548 | 551 | } |
549 | 552 | if (candidate.isSelD0()) { |
550 | | - fillTable<ApplyMl>(candidate, 0, massD0, topolChi2PerNdf, ctD, yD, eD, candidate.flagMcMatchRec(), candidate.flagMcDecayChanRec(), candidate.originMcRec()); |
| 553 | + fillTable<ApplyMl>(candidate, 0, massD0, topolChi2PerNdf, ctD, yD, eD, candidate.flagMcMatchRec(), candidate.flagMcDecayChanRec(), candidate.originMcRec(), o2::analysis::getBHadMotherFlag(candidate.pdgBhadMotherPart())); |
551 | 554 | } |
552 | 555 | if (candidate.isSelD0bar()) { |
553 | | - fillTable<ApplyMl>(candidate, 1, massD0bar, topolChi2PerNdf, ctD, yD, eD, candidate.flagMcMatchRec(), candidate.flagMcDecayChanRec(), candidate.originMcRec()); |
| 556 | + fillTable<ApplyMl>(candidate, 1, massD0bar, topolChi2PerNdf, ctD, yD, eD, candidate.flagMcMatchRec(), candidate.flagMcDecayChanRec(), candidate.originMcRec(), o2::analysis::getBHadMotherFlag(candidate.pdgBhadMotherPart())); |
554 | 557 | } |
555 | 558 | } |
556 | 559 |
|
|
0 commit comments