Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

slha-reinit-fix #31

Open
wants to merge 1 commit into
base: cms/243
Choose a base branch
from
Open
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