From 61ab9719065cba722f8742601a57dfe48fcc9fbb Mon Sep 17 00:00:00 2001 From: Volodymyr Vovchenko Date: Thu, 18 Apr 2019 17:28:44 +0200 Subject: [PATCH] Fixed bug in CCE with VcTPS()->Particles()[i].BaryonCharge() == 0 && m_THM->TPS()->Particles()[i].Strangeness() == 0 && m_THM->TPS()->Particles()[i].ElectricCharge() == 1) { - m_ChargeMesons.push_back(std::make_pair(densities[i], i)); - m_MeanCM += densities[i]; - } else if (m_THM->TPS()->Particles()[i].BaryonCharge() == 0 && m_THM->TPS()->Particles()[i].Strangeness() == 0 && m_THM->TPS()->Particles()[i].ElectricCharge() == 0 && m_THM->TPS()->Particles()[i].Charm() == 1) { m_CharmMesons.push_back(std::make_pair(densities[i], i)); m_MeanCHRMM += densities[i]; @@ -698,7 +694,7 @@ namespace thermalfist { std::vector totalsaux2(m_THM->TPS()->Particles().size(), 0); int netC = 0; for (size_t i = 0; i < totalsaux.size(); ++i) { - if (m_THM->TPS()->Particles()[i].Strangeness() > 0) { + if (m_THM->TPS()->Particles()[i].Charm() > 0) { for (int j = 0; j < totalsaux[i]; ++j) { if (RandomGenerators::randgenMT.rand() < fraction) { totalsaux2[i]++;