Skip to content

Commit 35869b2

Browse files
committed
Back to McParticles: alice3DecayerQa.cxx
1 parent 541325c commit 35869b2

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

ALICE3/Tasks/alice3DecayerQa.cxx

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
/// \since Dec 23, 2025
1818
///
1919

20-
#include "ALICE3/DataModel/OTFMCParticle.h"
21-
2220
#include <Framework/AnalysisDataModel.h>
2321
#include <Framework/AnalysisHelpers.h>
2422
#include <Framework/AnalysisTask.h>
@@ -46,7 +44,7 @@ struct Alice3DecayerQa {
4644
ConfigurableAxis axisCollisionId{"axisCollisionId", {1000, 0, 999}, "CollisionId axis for QA histograms"};
4745
ConfigurableAxis axisPdgCode{"axisPdgCode", {1000, 0, 999}, "PdgCode axis for QA histograms"};
4846
ConfigurableAxis axisStatusCode{"axisStatusCode", {1000, 0, 999}, "StatusCode axis for QA histograms"};
49-
ConfigurableAxis axisFlags{"axisFlags", {10, 0, 9}, "Flags axis for QA histograms"};
47+
ConfigurableAxis axisFlags{"axisFlags", {256, 0, 255}, "Flags axis for QA histograms"};
5048
ConfigurableAxis axisMothersIds{"axisMothersIds", {1000, 0, 999}, "MothersIds axis for QA histograms"};
5149
ConfigurableAxis axisDaughtersIds{"axisDaughtersIds", {1000, 0, 999}, "DaughtersIds axis for QA histograms"};
5250
ConfigurableAxis axisWeight{"axisWeight", {2, 0, 1}, "Weight axis for QA histograms"};
@@ -101,8 +99,6 @@ struct Alice3DecayerQa {
10199
histos.add("MCWithDau/hPhi", "hPhi", kTH1D, {axes.axisPhi});
102100
histos.add("MCWithDau/hEta", "hEta", kTH1D, {axes.axisEta});
103101
histos.add("MCWithDau/hRapidity", "hRapidity", kTH1D, {axes.axisRapidity});
104-
histos.add("MCWithDau/hIsAlive", "hIsAlive", kTH1D, {axes.axisIsAlive});
105-
histos.add("MCWithDau/hIsPrimary", "hIsPrimary", kTH1D, {axes.axisIsPrimary});
106102
histos.add("MCWithDau/hPx", "hPx", kTH1D, {axes.axisPt});
107103
histos.add("MCWithDau/hPy", "hPy", kTH1D, {axes.axisPt});
108104
histos.add("MCWithDau/hPz", "hPz", kTH1D, {axes.axisPt});
@@ -134,7 +130,7 @@ struct Alice3DecayerQa {
134130
hCheckHasXiMinusDecayed->GetXaxis()->SetBinLabel(2, "Yes");
135131
}
136132

137-
void process(const aod::McCollision& collision, const aod::McPartWithDaus& particles)
133+
void process(const aod::McCollision& collision, const aod::McParticles& particles)
138134
{
139135
// Group with collision
140136
auto trueElectronsGrouped = trueElectrons->sliceByCached(aod::mcparticle::mcCollisionId, collision.globalIndex(), cache);
@@ -173,6 +169,7 @@ struct Alice3DecayerQa {
173169
// K0S -> pi+ pi-
174170
const bool k0sDecay = (dau0.pdgCode() == PDG_t::kPiPlus && dau1.pdgCode() == PDG_t::kPiMinus) ||
175171
(dau0.pdgCode() == PDG_t::kPiMinus && dau1.pdgCode() == PDG_t::kPiPlus);
172+
176173
if (k0sDecay) {
177174
auto& positive = dau0.pdgCode() == PDG_t::kPiPlus ? dau0 : dau1;
178175
auto& negative = dau0.pdgCode() == PDG_t::kPiPlus ? dau1 : dau0;
@@ -196,6 +193,7 @@ struct Alice3DecayerQa {
196193
// Lambda -> p pi-
197194
const bool lambdaDecay = (dau0.pdgCode() == PDG_t::kProton && dau1.pdgCode() == PDG_t::kPiMinus) ||
198195
(dau0.pdgCode() == PDG_t::kPiMinus && dau1.pdgCode() == PDG_t::kProton);
196+
199197
if (lambdaDecay) {
200198
auto& positive = dau0.pdgCode() == PDG_t::kProton ? dau0 : dau1;
201199
auto& negative = dau0.pdgCode() == PDG_t::kProton ? dau1 : dau0;
@@ -219,6 +217,7 @@ struct Alice3DecayerQa {
219217
// Xi- -> Lambda pi-
220218
const bool xiDecay = (dau0.pdgCode() == PDG_t::kLambda0 && dau1.pdgCode() == PDG_t::kPiMinus) ||
221219
(dau0.pdgCode() == PDG_t::kPiMinus && dau1.pdgCode() == PDG_t::kLambda0);
220+
222221
if (xiDecay) {
223222
auto& v0 = dau0.pdgCode() == PDG_t::kLambda0 ? dau0 : dau1;
224223
auto& bachelor = dau0.pdgCode() == PDG_t::kLambda0 ? dau1 : dau0;
@@ -261,8 +260,6 @@ struct Alice3DecayerQa {
261260
histos.fill(HIST("MCWithDau/hPhi"), particle.phi());
262261
histos.fill(HIST("MCWithDau/hEta"), particle.eta());
263262
histos.fill(HIST("MCWithDau/hRapidity"), particle.y());
264-
histos.fill(HIST("MCWithDau/hIsAlive"), particle.isAlive());
265-
histos.fill(HIST("MCWithDau/hIsPrimary"), particle.isPrimary());
266263
histos.fill(HIST("MCWithDau/hPx"), particle.px());
267264
histos.fill(HIST("MCWithDau/hPy"), particle.py());
268265
histos.fill(HIST("MCWithDau/hPz"), particle.pz());

0 commit comments

Comments
 (0)