Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion src/SLHAinterface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,13 @@ bool SLHAinterface::initSLHA(Settings& settings,
"for unknown id = {" + idCode.str() + "}", true);
continue;
}
// Catch multiple re-inits of SLHA data
if ( mass != particleDataPtr-> m0(id) && (
( particleDataPtr->hasChangedMMin(id) &&
particleDataPtr->mMin(id) > mass ) ||
( particleDataPtr->hasChangedMMax(id) &&
particleDataPtr->mMax(id) < mass ) ) )
particleDataPtr->findParticle(id)->setHasChanged(false);
particleDataPtr->m0(id,mass);
idModified[id] = true;
importMass.push_back(id);
Expand Down Expand Up @@ -722,7 +729,9 @@ bool SLHAinterface::initSLHA(Settings& settings,
else {
// mMin: lower cutoff on Breit-Wigner; see above.
// Increase minimum if needed to ensure at least one channel on shell
double mMin = max(mSumMin, particlePtr->mMin());
double mMin1 = particlePtr->mMin();
double mMin0 = (mMin1 < m0 ) ? mMin1 : min(m0-0.5*wid,0.5*m0);
double mMin = max(mSumMin, mMin0);
particlePtr->setMMin(mMin);
}
}
Expand Down