Commit c4f00408 authored by Grégoire Uhlrich's avatar Grégoire Uhlrich
Browse files

Fix name in model

parent c7289e58
......@@ -634,6 +634,7 @@ void ModelBuilder::rotateFields(
rotateFields(fields, newFields, mixing, diagonalizeMasses, nMassLessFields);
for (size_t i = 0; i != newFields.size(); ++i) {
replace(newFields[i], fields[i]->getInstance());
removeParticle(newFields[i]);
if (diagonalizeMasses)
fields[i]->setMass(newFields[i]->getMass());
}
......@@ -698,6 +699,7 @@ void ModelBuilder::birotateFields(
fields1[i]->setMass(newFields1[i]->getMass());
replace(newFields2[i], fields2[i]->getInstance());
fields2[i]->setMass(newFields2[i]->getMass());
removeParticles({newFields1[i], newFields2[i]});
}
}
......
......@@ -610,7 +610,7 @@ std::vector<mty::Particle> ModelData::getPhysicalParticles(
for (const auto &p : particles) {
if (!predicate(p))
continue;
if (p->getParticleType() == mty::ParticleType::GhostBoson)
if (!p->isPhysical())
continue;
if (p->getParticleType() == mty::ParticleType::WeylFermion) {
if (auto dirac = p->getDiracParent(); dirac) {
......
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