Skip to content

Commit f6ff25c

Browse files
Bhawani Singhwiechula
authored andcommitted
TPCQC: fix for magnitude of charge with TPC mom for dEdx for He3 plots
1 parent a3c394d commit f6ff25c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Detectors/TPC/qc/src/PID.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ bool PID::processTrack(const o2::tpc::TrackTPC& track, size_t nTracks)
131131
{
132132
// ===| variables required for cutting and filling |===
133133
const auto& dEdx = track.getdEdx();
134-
const auto pTPC = track.getP();
134+
const auto magCharge = track.getAbsCharge();
135+
const auto pTPC = track.getP() * magCharge; // charge magnitude is divided getP() via getPtInv therefore magCharge is required to be multiplied [fix for He3]
135136
const auto tgl = track.getTgl();
136137
const auto snp = track.getSnp();
137138
const auto phi = track.getPhi();

0 commit comments

Comments
 (0)