Skip to content

Commit 2725496

Browse files
committed
Fix V0 and cascade mass constraints in charm baryon creator
1 parent 1d65360 commit 2725496

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎PWGHF/TableProducer/candidateCreatorXic0Omegac0.cxx‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,7 @@ struct HfCandidateCreatorXic0Omegac0 {
880880
KFParticle kfV0MassConstrained = kfV0;
881881
kfV0MassConstrained.SetNonlinearMassConstraint(o2::constants::physics::MassLambda); // set mass constrain to Lambda
882882
if (kfUseV0MassConstraint) {
883-
KFParticle const kfV0 = kfV0MassConstrained;
883+
kfV0 = kfV0MassConstrained;
884884
}
885885
kfV0.TransportToDecayVertex();
886886

@@ -921,7 +921,7 @@ struct HfCandidateCreatorXic0Omegac0 {
921921
kfOmegaMassConstrained.SetNonlinearMassConstraint(o2::constants::physics::MassOmegaMinus); // set mass constrain to OmegaMinus
922922
if (kfUseCascadeMassConstraint) {
923923
// set mass constraint if requested
924-
KFParticle const kfOmega = kfOmegaMassConstrained;
924+
kfOmega = kfOmegaMassConstrained;
925925
}
926926
registry.fill(HIST("hInvMassOmegaMinus"), massCasc);
927927
kfOmega.TransportToDecayVertex();
@@ -931,7 +931,7 @@ struct HfCandidateCreatorXic0Omegac0 {
931931
//*>~<* step 3 : reconstruc Omegac0 with KF
932932
// Create KF charm bach Pion from track
933933
KFPTrack const kfTrackBachPion = createKFPTrackFromTrack(trackCharmBachelor);
934-
KFParticle const kfBachPion(kfTrackBachPion, kPiPlus);
934+
KFParticle const kfBachPion(kfTrackBachPion, bachCharge < 0 ? kPiPlus : kPiMinus);
935935
const KFParticle* omegaC0Daugthers[2] = {&kfBachPion, &kfOmega};
936936

937937
// construct OmegaC0
@@ -1414,7 +1414,7 @@ struct HfCandidateCreatorXic0Omegac0 {
14141414
kfXiMassConstrained.SetNonlinearMassConstraint(o2::constants::physics::MassXiMinus); // set mass constrain to XiMinus
14151415
if (kfUseCascadeMassConstraint) {
14161416
// set mass constraint if requested
1417-
KFParticle const kfXi = kfXiMassConstrained;
1417+
kfXi = kfXiMassConstrained;
14181418
}
14191419
registry.fill(HIST("hInvMassXiMinus"), massCasc);
14201420
kfXi.TransportToDecayVertex();
@@ -1848,7 +1848,7 @@ struct HfCandidateCreatorXic0Omegac0 {
18481848
}
18491849
registry.fill(HIST("hInvMassXiMinus_rej"), massCascrej); // rej: Add competing rejection to minimize misidentified Xi impact. Reject if kfBachPionRej is Pion and the constructed cascade has Xi's invariant mass.
18501850
KFParticle kfOmegaMassConstrained = kfOmega;
1851-
kfOmegaMassConstrained.SetNonlinearMassConstraint(o2::constants::physics::MassOmegaMinus); // set mass constrain to XiMinus
1851+
kfOmegaMassConstrained.SetNonlinearMassConstraint(o2::constants::physics::MassOmegaMinus); // set mass constrain to OmegaMinus
18521852
if (kfUseCascadeMassConstraint) {
18531853
// set mass constraint if requested
18541854
kfOmega = kfOmegaMassConstrained;

0 commit comments

Comments
 (0)