Skip to content

Commit 7b8c7da

Browse files
COrrected the invariant mass calculation of the generated delta particles
1 parent 4b741a3 commit 7b8c7da

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

PWGLF/Tasks/Resonances/deltaAnalysis.cxx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1267,13 +1267,7 @@ struct DeltaAnalysis {
12671267
}
12681268
if (!hasPr || !hasPi)
12691269
continue;
1270-
// CHANGED: genMass is now computed directly from the mother particle's
1271-
// own four-momentum (E, px, py, pz), instead of being reconstructed
1272-
// from the sum of daughter energies/momenta. mcParticle.m() is not
1273-
// available for this particle type, so the mass is built explicitly
1274-
// from mcParticle.e()/px()/py()/pz(), which are the standard AOD
1275-
// McParticles accessors. mass2 is clamped to zero before the sqrt to
1276-
// guard against small negative values from floating-point roundoff.
1270+
// CHANGED: genMass is now computed directly from the mother particle's own four-momentum (E, px, py, pz)
12771271
const float eMother = mcParticle.e();
12781272
const float pxMother = mcParticle.px();
12791273
const float pyMother = mcParticle.py();

0 commit comments

Comments
 (0)