Skip to content

Commit b6fc325

Browse files
Mingyu3360715EmilGorm
authored andcommitted
[PWGHF] fix missing assignment of Lc gen pt (AliceO2Group#11483)
1 parent b06ac74 commit b6fc325

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)