Skip to content
28 changes: 14 additions & 14 deletions EventFiltering/PWGHF/HFFilter.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,8 @@ struct HfFilter { // Main struct for HF triggers
auto trackParNeg = getTrackPar(trackNeg);
o2::gpu::gpustd::array<float, 2> dcaPos{trackPos.dcaXY(), trackPos.dcaZ()};
o2::gpu::gpustd::array<float, 2> dcaNeg{trackNeg.dcaXY(), trackNeg.dcaZ()};
std::array<float, 3> pVecPos{trackPos.px(), trackPos.py(), trackPos.pz()};
std::array<float, 3> pVecNeg{trackNeg.px(), trackNeg.py(), trackNeg.pz()};
std::array<float, 3> pVecPos{trackPos.pVector()};
std::array<float, 3> pVecNeg{trackNeg.pVector()};
if (trackPos.collisionId() != thisCollId) {
o2::base::Propagator::Instance()->propagateToDCABxByBz({collision.posX(), collision.posY(), collision.posZ()}, trackParPos, 2.f, noMatCorr, &dcaPos);
getPxPyPz(trackParPos, pVecPos);
Expand Down Expand Up @@ -410,7 +410,7 @@ struct HfFilter { // Main struct for HF triggers

auto trackParThird = getTrackPar(track);
o2::gpu::gpustd::array<float, 2> dcaThird{track.dcaXY(), track.dcaZ()};
std::array<float, 3> pVecThird = {track.px(), track.py(), track.pz()};
std::array<float, 3> pVecThird = track.pVector();
if (track.collisionId() != thisCollId) {
o2::base::Propagator::Instance()->propagateToDCABxByBz({collision.posX(), collision.posY(), collision.posZ()}, trackParThird, 2.f, noMatCorr, &dcaThird);
getPxPyPz(trackParThird, pVecThird);
Expand Down Expand Up @@ -452,7 +452,7 @@ struct HfFilter { // Main struct for HF triggers
}
auto trackParFourth = getTrackPar(trackB);
o2::gpu::gpustd::array<float, 2> dcaFourth{trackB.dcaXY(), trackB.dcaZ()};
std::array<float, 3> pVecFourth = {trackB.px(), trackB.py(), trackB.pz()};
std::array<float, 3> pVecFourth = trackB.pVector();
if (trackB.collisionId() != thisCollId) {
o2::base::Propagator::Instance()->propagateToDCABxByBz({collision.posX(), collision.posY(), collision.posZ()}, trackParFourth, 2.f, noMatCorr, &dcaFourth);
getPxPyPz(trackParFourth, pVecFourth);
Expand Down Expand Up @@ -581,7 +581,7 @@ struct HfFilter { // Main struct for HF triggers

auto trackParBachelor = getTrackPar(trackBachelor);
o2::gpu::gpustd::array<float, 2> dcaBachelor{trackBachelor.dcaXY(), trackBachelor.dcaZ()};
std::array<float, 3> pVecBachelor = {trackBachelor.px(), trackBachelor.py(), trackBachelor.pz()};
std::array<float, 3> pVecBachelor = trackBachelor.pVector();
if (trackBachelor.collisionId() != thisCollId) {
o2::base::Propagator::Instance()->propagateToDCABxByBz({collision.posX(), collision.posY(), collision.posZ()}, trackParBachelor, 2.f, noMatCorr, &dcaBachelor);
getPxPyPz(trackParBachelor, pVecBachelor);
Expand Down Expand Up @@ -698,9 +698,9 @@ struct HfFilter { // Main struct for HF triggers
o2::gpu::gpustd::array<float, 2> dcaFirst{trackFirst.dcaXY(), trackFirst.dcaZ()};
o2::gpu::gpustd::array<float, 2> dcaSecond{trackSecond.dcaXY(), trackSecond.dcaZ()};
o2::gpu::gpustd::array<float, 2> dcaThird{trackThird.dcaXY(), trackThird.dcaZ()};
std::array<float, 3> pVecFirst = {trackFirst.px(), trackFirst.py(), trackFirst.pz()};
std::array<float, 3> pVecSecond = {trackSecond.px(), trackSecond.py(), trackSecond.pz()};
std::array<float, 3> pVecThird = {trackThird.px(), trackThird.py(), trackThird.pz()};
std::array<float, 3> pVecFirst = trackFirst.pVector();
std::array<float, 3> pVecSecond = trackSecond.pVector();
std::array<float, 3> pVecThird = trackThird.pVector();
if (trackFirst.collisionId() != thisCollId) {
o2::base::Propagator::Instance()->propagateToDCABxByBz({collision.posX(), collision.posY(), collision.posZ()}, trackParFirst, 2.f, noMatCorr, &dcaFirst);
getPxPyPz(trackParFirst, pVecFirst);
Expand Down Expand Up @@ -823,7 +823,7 @@ struct HfFilter { // Main struct for HF triggers

auto trackParFourth = getTrackPar(track);
o2::gpu::gpustd::array<float, 2> dcaFourth{track.dcaXY(), track.dcaZ()};
std::array<float, 3> pVecFourth = {track.px(), track.py(), track.pz()};
std::array<float, 3> pVecFourth = track.pVector();
if (track.collisionId() != thisCollId) {
o2::base::Propagator::Instance()->propagateToDCABxByBz({collision.posX(), collision.posY(), collision.posZ()}, trackParFourth, 2.f, noMatCorr, &dcaFourth);
getPxPyPz(trackParFourth, pVecFourth);
Expand Down Expand Up @@ -905,7 +905,7 @@ struct HfFilter { // Main struct for HF triggers
// select soft pion candidates
auto trackParSoftPi = getTrackPar(trackSoftPi);
o2::gpu::gpustd::array<float, 2> dcaSoftPi{trackSoftPi.dcaXY(), trackSoftPi.dcaZ()};
std::array<float, 3> pVecSoftPi = {trackSoftPi.px(), trackSoftPi.py(), trackSoftPi.pz()};
std::array<float, 3> pVecSoftPi = trackSoftPi.pVector();
if (trackSoftPi.collisionId() != thisCollId) {
// This is a track reassociated to this PV by the track-to-collision-associator
// Let's propagate this track to it, and calculate dcaXY, dcaZ
Expand Down Expand Up @@ -1123,7 +1123,7 @@ struct HfFilter { // Main struct for HF triggers
// select soft pion candidates
auto trackParSoftPi = getTrackPar(trackSoftPi);
o2::gpu::gpustd::array<float, 2> dcaSoftPi{trackSoftPi.dcaXY(), trackSoftPi.dcaZ()};
std::array<float, 3> pVecSoftPi = {trackSoftPi.px(), trackSoftPi.py(), trackSoftPi.pz()};
std::array<float, 3> pVecSoftPi = trackSoftPi.pVector();
if (trackSoftPi.collisionId() != thisCollId) {
// This is a track reassociated to this PV by the track-to-collision-associator
// Let's propagate this track to it, and calculate dcaXY, dcaZ
Expand All @@ -1142,8 +1142,8 @@ struct HfFilter { // Main struct for HF triggers
/// and keep it only if it is in the correct mass range

float massSigmaCPKPi{-999.}, massSigmaCPiKP{-999.}, deltaMassXicResoPKPi{-999.}, deltaMassXicResoPiKP{-999.};
std::array<float, 3> pVecPiPosK0s = {posTrack.px(), posTrack.py(), posTrack.pz()};
std::array<float, 3> pVecPiNegK0s = {negTrack.px(), negTrack.py(), negTrack.pz()};
std::array<float, 3> pVecPiPosK0s = posTrack.pVector();
std::array<float, 3> pVecPiNegK0s = negTrack.pVector();
float ptSigmaCKaon = RecoDecay::pt(pVecSigmaC, pVecPiPosK0s, pVecPiNegK0s);
if (ptSigmaCKaon > cutsPtDeltaMassCharmReso->get(2u, 10u)) {
if (TESTBIT(whichSigmaC, 0)) {
Expand Down Expand Up @@ -1227,7 +1227,7 @@ struct HfFilter { // Main struct for HF triggers
getPxPyPz(trackParCasc, pVecCascade);

auto trackParBachelor = getTrackPar(track);
std::array<float, 3> pVecBachelor = {track.px(), track.py(), track.pz()};
std::array<float, 3> pVecBachelor = track.pVector();
if (track.collisionId() != thisCollId) {
o2::base::Propagator::Instance()->propagateToDCABxByBz({collision.posX(), collision.posY(), collision.posZ()}, trackParBachelor, 2.f, noMatCorr, &dcaInfo);
getPxPyPz(trackParBachelor, pVecBachelor);
Expand Down
12 changes: 6 additions & 6 deletions EventFiltering/PWGHF/HFFilterCharmHadronSignals.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ struct HfFilterCharmHadronSignals { // Main struct for HF triggers
auto trackParNeg = getTrackPar(trackNeg);
o2::gpu::gpustd::array<float, 2> dcaPos{trackPos.dcaXY(), trackPos.dcaZ()};
o2::gpu::gpustd::array<float, 2> dcaNeg{trackNeg.dcaXY(), trackNeg.dcaZ()};
std::array<float, 3> pVecPos{trackPos.px(), trackPos.py(), trackPos.pz()};
std::array<float, 3> pVecNeg{trackNeg.px(), trackNeg.py(), trackNeg.pz()};
std::array<float, 3> pVecPos{trackPos.pVector()};
std::array<float, 3> pVecNeg{trackNeg.pVector()};
if (trackPos.collisionId() != thisCollId) {
o2::base::Propagator::Instance()->propagateToDCABxByBz({collision.posX(), collision.posY(), collision.posZ()}, trackParPos, 2.f, noMatCorr, &dcaPos);
getPxPyPz(trackParPos, pVecPos);
Expand Down Expand Up @@ -216,7 +216,7 @@ struct HfFilterCharmHadronSignals { // Main struct for HF triggers

auto trackParThird = getTrackPar(track);
o2::gpu::gpustd::array<float, 2> dcaThird{track.dcaXY(), track.dcaZ()};
std::array<float, 3> pVecThird = {track.px(), track.py(), track.pz()};
std::array<float, 3> pVecThird = track.pVector();
if (track.collisionId() != thisCollId) {
o2::base::Propagator::Instance()->propagateToDCABxByBz({collision.posX(), collision.posY(), collision.posZ()}, trackParThird, 2.f, noMatCorr, &dcaThird);
getPxPyPz(trackParThird, pVecThird);
Expand Down Expand Up @@ -268,9 +268,9 @@ struct HfFilterCharmHadronSignals { // Main struct for HF triggers
o2::gpu::gpustd::array<float, 2> dcaFirst{trackFirst.dcaXY(), trackFirst.dcaZ()};
o2::gpu::gpustd::array<float, 2> dcaSecond{trackSecond.dcaXY(), trackSecond.dcaZ()};
o2::gpu::gpustd::array<float, 2> dcaThird{trackThird.dcaXY(), trackThird.dcaZ()};
std::array<float, 3> pVecFirst = {trackFirst.px(), trackFirst.py(), trackFirst.pz()};
std::array<float, 3> pVecSecond = {trackSecond.px(), trackSecond.py(), trackSecond.pz()};
std::array<float, 3> pVecThird = {trackThird.px(), trackThird.py(), trackThird.pz()};
std::array<float, 3> pVecFirst = trackFirst.pVector();
std::array<float, 3> pVecSecond = trackSecond.pVector();
std::array<float, 3> pVecThird = trackThird.pVector();
if (trackFirst.collisionId() != thisCollId) {
o2::base::Propagator::Instance()->propagateToDCABxByBz({collision.posX(), collision.posY(), collision.posZ()}, trackParFirst, 2.f, noMatCorr, &dcaFirst);
getPxPyPz(trackParFirst, pVecFirst);
Expand Down
10 changes: 5 additions & 5 deletions EventFiltering/PWGHF/HFFilterPrepareMLSamples.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ struct HfFilterPrepareMlSamples { // Main struct
auto trackParNeg = getTrackPar(trackNeg);
o2::gpu::gpustd::array<float, 2> dcaPos{trackPos.dcaXY(), trackPos.dcaZ()};
o2::gpu::gpustd::array<float, 2> dcaNeg{trackNeg.dcaXY(), trackNeg.dcaZ()};
std::array<float, 3> pVecPos{trackPos.px(), trackPos.py(), trackPos.pz()};
std::array<float, 3> pVecNeg{trackNeg.px(), trackNeg.py(), trackNeg.pz()};
std::array<float, 3> pVecPos{trackPos.pVector()};
std::array<float, 3> pVecNeg{trackNeg.pVector()};
if (trackPos.collisionId() != thisCollId) {
o2::base::Propagator::Instance()->propagateToDCABxByBz({collision.posX(), collision.posY(), collision.posZ()}, trackParPos, 2.f, noMatCorr, &dcaPos);
getPxPyPz(trackParPos, pVecPos);
Expand Down Expand Up @@ -162,9 +162,9 @@ struct HfFilterPrepareMlSamples { // Main struct
o2::gpu::gpustd::array<float, 2> dcaFirst{trackFirst.dcaXY(), trackFirst.dcaZ()};
o2::gpu::gpustd::array<float, 2> dcaSecond{trackSecond.dcaXY(), trackSecond.dcaZ()};
o2::gpu::gpustd::array<float, 2> dcaThird{trackThird.dcaXY(), trackThird.dcaZ()};
std::array<float, 3> pVecFirst{trackFirst.px(), trackFirst.py(), trackFirst.pz()};
std::array<float, 3> pVecSecond{trackSecond.px(), trackSecond.py(), trackSecond.pz()};
std::array<float, 3> pVecThird{trackThird.px(), trackThird.py(), trackThird.pz()};
std::array<float, 3> pVecFirst{trackFirst.pVector()};
std::array<float, 3> pVecSecond{trackSecond.pVector()};
std::array<float, 3> pVecThird{trackThird.pVector()};
if (trackFirst.collisionId() != thisCollId) {
o2::base::Propagator::Instance()->propagateToDCABxByBz({collision.posX(), collision.posY(), collision.posZ()}, trackParFirst, 2.f, noMatCorr, &dcaFirst);
getPxPyPz(trackParFirst, pVecFirst);
Expand Down
4 changes: 2 additions & 2 deletions PWGHF/ALICE3/TableProducer/candidateCreatorChic.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ struct HfCandidateCreatorChic {
hCPAJpsi->Fill(jpsiCand.cpa());
// create Jpsi track to pass to DCA fitter; use cand table + rebuild vertex
const std::array<float, 3> vertexJpsi = {jpsiCand.xSecondaryVertex(), jpsiCand.ySecondaryVertex(), jpsiCand.zSecondaryVertex()};
std::array<float, 3> pvecJpsi = {jpsiCand.px(), jpsiCand.py(), jpsiCand.pz()};
std::array<float, 3> pvecJpsi = jpsiCand.pVector();
auto prong0 = jpsiCand.prong0_as<aod::TracksWCov>();
auto prong1 = jpsiCand.prong1_as<aod::TracksWCov>();
auto prong0TrackParCov = getTrackParCov(prong0);
Expand Down Expand Up @@ -253,7 +253,7 @@ struct HfCandidateCreatorChicMc {
if (indexMother > -1 && indexMotherGamma == indexMother && candidate.prong1().mcparticle().pdgCode() == kGamma) {
auto particleMother = mcParticles.rawIteratorAt(indexMother);
hEphotonMatched->Fill(candidate.prong1().e());
hMassEMatched->Fill(sqrt(candidate.prong1().px() * candidate.prong1().px() + candidate.prong1().py() * candidate.prong1().py() + candidate.prong1().pz() * candidate.prong1().pz()));
hMassEMatched->Fill(RecoDecay::p(candidate.pVectorProng1()));
if (particleMother.has_daughters()) {
std::vector<int> arrAllDaughtersIndex;
RecoDecay::getDaughters(particleMother, &arrAllDaughtersIndex, std::array{static_cast<int>(kGamma), static_cast<int>(Pdg::kJPsi)}, 1);
Expand Down
2 changes: 1 addition & 1 deletion PWGHF/ALICE3/TableProducer/candidateCreatorX.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ struct HfCandidateCreatorX {
hCPAJpsi->Fill(jpsiCand.cpa());
// create Jpsi track to pass to DCA fitter; use cand table + rebuild vertex
const std::array<float, 3> vertexJpsi = {jpsiCand.xSecondaryVertex(), jpsiCand.ySecondaryVertex(), jpsiCand.zSecondaryVertex()};
std::array<float, 3> pvecJpsi = {jpsiCand.px(), jpsiCand.py(), jpsiCand.pz()};
std::array<float, 3> pvecJpsi = jpsiCand.pVector();
auto prong0 = jpsiCand.prong0_as<aod::TracksWCov>();
auto prong1 = jpsiCand.prong1_as<aod::TracksWCov>();
auto prong0TrackParCov = getTrackParCov(prong0);
Expand Down
8 changes: 4 additions & 4 deletions PWGHF/ALICE3/TableProducer/treeCreatorChicToJpsiGamma.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ struct HfTreeCreatorChicToJpsiGamma {
// int indexCand = 0;
rowCandidateFull.reserve(candidates.size());
for (const auto& candidate : candidates) {
std::array<float, 3> pvecChic = {candidate.px(), candidate.py(), candidate.pz()};
std::array<float, 3> pvecJpsi = {candidate.pxProng0(), candidate.pyProng0(), candidate.pzProng0()};
std::array<float, 3> pvecGamma = {candidate.pxProng1(), candidate.pyProng1(), candidate.pzProng1()};
std::array<float, 3> pvecChic = candidate.pVector();
std::array<float, 3> pvecJpsi = candidate.pVectorProng0();
std::array<float, 3> pvecGamma = candidate.pVectorProng1();
auto pchic = RecoDecay::p(pvecChic);
auto pjpsi = RecoDecay::p(pvecJpsi);
auto pl1 = std::abs(RecoDecay::dotProd(pvecChic, pvecJpsi)) / pchic;
Expand Down Expand Up @@ -217,7 +217,7 @@ struct HfTreeCreatorChicToJpsiGamma {
particle.pt(),
particle.eta(),
particle.phi(),
RecoDecay::y(std::array{particle.px(), particle.py(), particle.pz()}, massChic),
RecoDecay::y(particle.pVector(), massChic),
0., // put here the jpsi mass
particle.flagMcMatchGen(),
particle.originMcGen());
Expand Down
2 changes: 1 addition & 1 deletion PWGHF/ALICE3/TableProducer/treeCreatorXToJpsiPiPi.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ struct HfTreeCreatorXToJpsiPiPi {
particle.pt(),
particle.eta(),
particle.phi(),
RecoDecay::y(std::array{particle.px(), particle.py(), particle.pz()}, massX),
RecoDecay::y(particle.pVector(), massX),
particle.flagMcMatchGen(),
particle.originMcGen());
}
Expand Down
2 changes: 1 addition & 1 deletion PWGHF/ALICE3/Tasks/taskChic.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ struct HfTaskChicMc {
for (const auto& particle : mcParticles) {
if (particle.flagMcMatchGen() == 1 << decayMode) {
auto mchic = o2::constants::physics::MassChiC1; // chi_c1(1p)
if (yCandMax >= 0. && std::abs(RecoDecay::y(std::array{particle.px(), particle.py(), particle.pz()}, mchic)) > yCandMax) {
if (yCandMax >= 0. && std::abs(RecoDecay::y(particle.pVector(), mchic)) > yCandMax) {
continue;
}

Expand Down
4 changes: 2 additions & 2 deletions PWGHF/ALICE3/Tasks/taskD0Alice3Barrel.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,11 @@ struct HfTaskD0Alice3Barrel {

for (const auto& particle : mcParticles) {
if (std::abs(particle.flagMcMatchGen()) == 1 << aod::hf_cand_2prong::DecayType::D0ToPiK) {
if (std::abs(RecoDecay::y(std::array{particle.px(), particle.py(), particle.pz()}, o2::constants::physics::MassD0)) > 4.0) {
if (std::abs(RecoDecay::y(particle.pVector(), o2::constants::physics::MassD0)) > 4.0) {
continue;
}
auto ptGen = particle.pt();
auto yGen = RecoDecay::y(std::array{particle.px(), particle.py(), particle.pz()}, o2::constants::physics::MassD0);
auto yGen = RecoDecay::y(particle.pVector(), o2::constants::physics::MassD0);
registry.fill(HIST("hMassGen"), ptGen, std::abs(yGen));
}
}
Expand Down
4 changes: 2 additions & 2 deletions PWGHF/ALICE3/Tasks/taskD0Alice3Forward.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ struct HfTaskD0Alice3Forward {

for (const auto& particle : mcParticles) {
if (std::abs(particle.flagMcMatchGen()) == 1 << aod::hf_cand_2prong::DecayType::D0ToPiK) {
if (std::abs(RecoDecay::y(std::array{particle.px(), particle.py(), particle.pz()}, o2::constants::physics::MassD0)) > 4.0) {
if (std::abs(RecoDecay::y(particle.pVector(), o2::constants::physics::MassD0)) > 4.0) {
continue;
}
auto ptGen = particle.pt();
auto yGen = RecoDecay::y(std::array{particle.px(), particle.py(), particle.pz()}, o2::constants::physics::MassD0);
auto yGen = RecoDecay::y(particle.pVector(), o2::constants::physics::MassD0);
registry.fill(HIST("hMassGen"), ptGen, std::abs(yGen));
}
}
Expand Down
4 changes: 2 additions & 2 deletions PWGHF/ALICE3/Tasks/taskD0ParametrizedPid.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,11 @@ struct HfTaskD0ParametrizedPid {
float maxFiducialY = 0.8;
float minFiducialY = -0.8;
if (std::abs(particle.flagMcMatchGen()) == 1 << aod::hf_cand_2prong::DecayType::D0ToPiK) {
if (std::abs(RecoDecay::y(std::array{particle.px(), particle.py(), particle.pz()}, o2::constants::physics::MassD0)) > 4.0) {
if (std::abs(RecoDecay::y(particle.pVector(), o2::constants::physics::MassD0)) > 4.0) {
continue;
}
auto ptGen = particle.pt();
auto yGen = RecoDecay::y(std::array{particle.px(), particle.py(), particle.pz()}, o2::constants::physics::MassD0);
auto yGen = RecoDecay::y(particle.pVector(), o2::constants::physics::MassD0);
registry.fill(HIST("hGenPtVsY"), ptGen, std::abs(yGen));
if (ptGen < 5.0) {
maxFiducialY = -0.2 / 15 * ptGen * ptGen + 1.9 / 15 * ptGen + 0.5;
Expand Down
6 changes: 3 additions & 3 deletions PWGHF/ALICE3/Tasks/taskJpsi.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ struct HfTaskJpsiMc {
registry.fill(HIST("hChi2PCASig"), candidate.chi2PCA(), candidate.pt());
registry.fill(HIST("hCtSig"), hfHelper.ctJpsi(candidate), candidate.pt());
registry.fill(HIST("hYSig"), hfHelper.yJpsi(candidate), candidate.pt());
registry.fill(HIST("hYGenSig"), RecoDecay::y(std::array{particleMother.px(), particleMother.py(), particleMother.pz()}, o2::constants::physics::MassJPsi), particleMother.pt());
registry.fill(HIST("hYGenSig"), RecoDecay::y(particleMother.pVector(), o2::constants::physics::MassJPsi), particleMother.pt());

} else {
registry.fill(HIST("hPtRecBg"), candidate.pt());
Expand All @@ -280,12 +280,12 @@ struct HfTaskJpsiMc {
// MC gen.
for (const auto& particle : mcParticles) {
if (particle.flagMcMatchGen() == 1 << decayMode) {
if (yCandMax >= 0. && std::abs(RecoDecay::y(std::array{particle.px(), particle.py(), particle.pz()}, o2::constants::physics::MassJPsi)) > yCandMax) {
if (yCandMax >= 0. && std::abs(RecoDecay::y(particle.pVector(), o2::constants::physics::MassJPsi)) > yCandMax) {
continue;
}
registry.fill(HIST("hPtGen"), particle.pt());
registry.fill(HIST("hEtaGen"), particle.eta());
registry.fill(HIST("hYGen"), RecoDecay::y(std::array{particle.px(), particle.py(), particle.pz()}, o2::constants::physics::MassJPsi), particle.pt());
registry.fill(HIST("hYGen"), RecoDecay::y(particle.pVector(), o2::constants::physics::MassJPsi), particle.pt());
// registry.fill(HIST("hPtGenProng0"), particle.daughter0_as<McParticlesHf>().pt(), particle.pt());
// registry.fill(HIST("hPtGenProng1"), particle.daughter1_as<McParticlesHf>().pt(), particle.pt());
}
Expand Down
Loading