Skip to content

Commit 196c9d5

Browse files
committed
Corrected histogram variable errors. Removed unused variable
1 parent 6ba23f2 commit 196c9d5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

PWGLF/TableProducer/Strangeness/sigmaminustask.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ struct sigmaminustask {
538538
// Compute useful quantities for histograms
539539
bool isSigmaMinus = (std::abs(mcMother.pdgCode()) == 3112);
540540
bool isPiDaughter = (std::abs(mcDaughter.pdgCode()) == 211);
541-
int sigmaSign = mcMother.pdgCode() > 0 ? 1 : -1;
541+
542542
float recPtDaughter = daughterTrack.pt();
543543
float recPtMother = motherTrack.pt();
544544
float mcRadius = std::sqrt((mcMother.vx() - mcDaughter.vx()) * (mcMother.vx() - mcDaughter.vx()) + (mcMother.vy() - mcDaughter.vy()) * (mcMother.vy() - mcDaughter.vy()));
@@ -625,10 +625,10 @@ struct sigmaminustask {
625625
float dcaXYDaughter = std::abs(dcaInfoDaug[0]);
626626
if (isPiDaughter) {
627627
rFindable.fill(HIST("h2DCAMothPt_pikink"), recPtMother, dcaXYMother);
628-
rFindable.fill(HIST("h2DCADaugPt_pikink"), recPtMother, dcaXYDaughter);
628+
rFindable.fill(HIST("h2DCADaugPt_pikink"), recPtDaughter, dcaXYDaughter);
629629
} else {
630630
rFindable.fill(HIST("h2DCAMothPt_protonkink"), recPtMother, dcaXYMother);
631-
rFindable.fill(HIST("h2DCADaugPt_protonkink"), recPtMother, dcaXYDaughter);
631+
rFindable.fill(HIST("h2DCADaugPt_protonkink"), recPtDaughter, dcaXYDaughter);
632632
}
633633

634634
// 6 - max Z difference

0 commit comments

Comments
 (0)