Commit f7c48245 authored by frey_m's avatar frey_m
Browse files

Matched-Gauss: Remove unnecessary function argument

parent fa0d0bc8
......@@ -1414,9 +1414,8 @@ void Distribution::createMatchedGaussDistribution(size_t numberOfParticles, doub
createDistributionGauss(numberOfParticles, massIneV);
// update injection radius and radial momentum
double angle = CyclotronElement->getPHIinit();
CyclotronElement->setRinit(siggen->getInjectionRadius(angle));
CyclotronElement->setPRinit(siggen->getInjectionMomentum(angle));
CyclotronElement->setRinit(siggen->getInjectionRadius());
CyclotronElement->setPRinit(siggen->getInjectionMomentum());
}
else {
*gmsg << "* Not converged for " << E_m*1E-6 << " MeV" << endl;
......
......@@ -190,11 +190,11 @@ class SigmaGenerator
///(since the whole simulation is done on normalized emittances)
std::array<value_type,3> getEmittances() const;
const double& getInjectionRadius(const double& angle) const {
const double& getInjectionRadius() const {
return rinit_m;
}
const double& getInjectionMomentum(const double& angle) const {
const double& getInjectionMomentum() const {
return prinit_m;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment