diff --git a/src/ElossTable.cpp b/src/ElossTable.cpp index 1c211a1..85141e8 100644 --- a/src/ElossTable.cpp +++ b/src/ElossTable.cpp @@ -76,23 +76,23 @@ namespace PunchTable { m_isValid = true; } - double ElossTable::GetEnergyLoss(double finalEnergy, double theta_incident) + double ElossTable::GetEnergyLoss(double thetaIncident, double finalEnergy) { - theta_incident /= s_deg2rad; + thetaIncident /= s_deg2rad; if(!m_isValid) { std::cerr<<"ElossTable not initialized at GetEnergyLoss()"< m_thetaMax) + else if(thetaIncident < m_thetaMin || thetaIncident > m_thetaMax) { std::cerr<<"Theta incident outside of range of calculated values for ElossTable::GetEnergyLoss()"<