Skip to content

Commit 83fc1c3

Browse files
committed
make variables names less cryptic
1 parent 6cef7ae commit 83fc1c3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

PWGHF/TableProducer/treeCreatorLcToPKPi.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,8 +1035,8 @@ struct HfTreeCreatorLcToPKPi {
10351035
const float svX = mcDaughter0.vx();
10361036
const float svY = mcDaughter0.vy();
10371037
const float svZ = mcDaughter0.vz();
1038-
const float l = static_cast<float>(RecoDecay::distance(std::array<float, 3>{svX, svY, svZ}, std::array<float, 3>{pvX, pvY, pvZ}));
1039-
const float t = l * static_cast<float>(MassLambdaCPlus) / LightSpeedCm2PS / p;
1038+
const float decayLength = static_cast<float>(RecoDecay::distance(std::array<float, 3>{svX, svY, svZ}, std::array<float, 3>{pvX, pvY, pvZ}));
1039+
const float decayTime = decayLength * static_cast<float>(MassLambdaCPlus) / LightSpeedCm2PS / p;
10401040
rowCandidateFullParticles(
10411041
particle.pt(),
10421042
particle.eta(),
@@ -1045,7 +1045,7 @@ struct HfTreeCreatorLcToPKPi {
10451045
particle.flagMcMatchGen(),
10461046
particle.originMcGen(),
10471047
p,
1048-
svX, svY, svZ, l, t,
1048+
svX, svY, svZ, decayLength, decayTime,
10491049
pvX, pvY, pvZ);
10501050
}
10511051
}

0 commit comments

Comments
 (0)