Skip to content

Commit 6126331

Browse files
[PWGHF] fix missing assignment of Lc gen pt (#11483)
1 parent e4e94eb commit 6126331

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PWGHF/D2H/Tasks/taskSigmac.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ struct HfTaskSigmac {
732732
if (yCandGenMax >= 0. && std::abs(RecoDecay::y(particle.pVector(), o2::constants::physics::MassLambdaCPlus)) > yCandGenMax) {
733733
continue;
734734
}
735-
double ptGenLc(-1.), ptGenLcBMother(-1.);
735+
double ptGenLc(particle.pt()), ptGenLcBMother(-1.);
736736
int origin = particle.originMcGen();
737737
int channel = particle.flagMcDecayChanGen();
738738
if (origin == RecoDecay::OriginType::Prompt) {

0 commit comments

Comments
 (0)