Commit 3c0e56ef authored by Frank Siegert's avatar Frank Siegert

Fix crashes when neutral hadron mixing is enabled.

parent c7161a5a
......@@ -93,7 +93,6 @@ ATOOLS::Blob* Mixing_Handler::PerformMixing(Particle* decayer) const
mixingblob->AddToInParticles(decayer);
mixingblob->AddToOutParticles(mixed_part);
mixingblob->SetPosition(decayer->ProductionBlob()->Position());
mixingblob->SetStatus(blob_status::needs_hadrondecays);
return mixingblob;
}
}
......
......@@ -100,9 +100,7 @@ Decay_Matrix* Hadron_Decay_Handler::FillDecayTree(Blob * blob, Spin_Density* s0)
{
Blob* mixingblob=p_mixinghandler->PerformMixing(blob->InParticle(0));
if (mixingblob) {
Blob_List::iterator bit;
for (bit=p_bloblist->begin();bit!=p_bloblist->end();++bit)
if (*bit==blob) p_bloblist->erase(bit);
p_bloblist->Delete(blob);
p_bloblist->push_back(mixingblob);
CreateDecayBlob(mixingblob->OutParticle(0));
return Decay_Handler_Base::FillDecayTree
......
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