Skip to content

Commit e6a56b5

Browse files
committed
Resolve extra division
1 parent 0cd3f78 commit e6a56b5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Detectors/AOD/src/AODProducerWorkflowSpec.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ void AODProducerWorkflowDPL::fillTrackTablesPerCollision(int collisionID,
254254
}
255255
const float mass = o2::constants::physics::MassPionCharged; // default pid = pion
256256
if (tofInt.getTOF(o2::track::PID::Pion) > 0.f) {
257-
const float expBeta = (intLen / tofInt.getTOF(o2::track::PID::Pion) / cSpeed);
257+
const float expBeta = (intLen / (tofInt.getTOF(o2::track::PID::Pion) * cSpeed));
258258
extraInfoHolder.tofExpMom = mass * expBeta / std::sqrt(1.f - expBeta * expBeta);
259259
}
260260
}

0 commit comments

Comments
 (0)