Skip to content

Commit 4ee3c70

Browse files
committed
revert strangenessBuilderHelper changes --> separate PR
1 parent 7765649 commit 4ee3c70

1 file changed

Lines changed: 9 additions & 14 deletions

File tree

PWGLF/Utils/strangenessBuilderHelper.h

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,11 +1059,6 @@ class strangenessBuilderHelper
10591059
return false;
10601060
}
10611061

1062-
// Calculate V0 mass before mass constraint
1063-
float MLambda, SigmaLambda;
1064-
KFV0.GetMass(MLambda, SigmaLambda);
1065-
cascade.kfMLambda = MLambda;
1066-
10671062
if (kfUseV0MassConstraint) {
10681063
KFV0.SetNonlinearMassConstraint(o2::constants::physics::MassLambda);
10691064
}
@@ -1122,18 +1117,9 @@ class strangenessBuilderHelper
11221117
cascade = {};
11231118
return false;
11241119
}
1125-
1126-
// Calculate masses a priori before potentially applying mass constraint --> this is the invariant mass of the decay products, not the mass-constrained value
1127-
float MXi, SigmaXi, MOmega, SigmaOmega;
1128-
KFXi.GetMass(MXi, SigmaXi);
1129-
KFOmega.GetMass(MOmega, SigmaOmega);
1130-
cascade.massXi = MXi;
1131-
cascade.massOmega = MOmega;
1132-
11331120
if (kfUseCascadeMassConstraint) {
11341121
// set mass constraint if requested
11351122
// WARNING: this is only adequate for decay chains, i.e. XiC -> Xi or OmegaC -> Omega
1136-
// WARNING: be aware of the fact that if enabled, the stored particle momentum and covariance matrix will be mass-constrained while the stored mass will be the invariant mass of the decay products (i.e. not mass-constrained)
11371123
KFXi.SetNonlinearMassConstraint(o2::constants::physics::MassXiMinus);
11381124
KFOmega.SetNonlinearMassConstraint(o2::constants::physics::MassOmegaMinus);
11391125
}
@@ -1229,6 +1215,15 @@ class strangenessBuilderHelper
12291215
}
12301216
cascade.pointingAngle = TMath::ACos(cosPA);
12311217

1218+
// Calculate masses a priori
1219+
float MLambda, SigmaLambda, MXi, SigmaXi, MOmega, SigmaOmega;
1220+
KFV0.GetMass(MLambda, SigmaLambda);
1221+
KFXi.GetMass(MXi, SigmaXi);
1222+
KFOmega.GetMass(MOmega, SigmaOmega);
1223+
cascade.kfMLambda = MLambda;
1224+
cascade.massXi = MXi;
1225+
cascade.massOmega = MOmega;
1226+
12321227
// KF Cascade covariance matrix
12331228
std::array<float, 21> covCascKF;
12341229
for (int i = 0; i < 21; i++) { // get covariance matrix elements (lower triangle)

0 commit comments

Comments
 (0)