Skip to content

Commit

Permalink
Fixed bug in CCE with Vc<V event generator
Browse files Browse the repository at this point in the history
  • Loading branch information
vlvovch committed Apr 18, 2019
1 parent 9f992ac commit 61ab971
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ project (ThermalFIST)
# The version number.
set (ThermalFIST_VERSION_MAJOR 1)
set (ThermalFIST_VERSION_MINOR 1)
set (ThermalFIST_VERSION_DEVEL 4)
set (ThermalFIST_VERSION_DEVEL 5)

# configure a header file to pass some of the CMake settings
# to the source code
Expand Down
6 changes: 1 addition & 5 deletions src/library/HRGEventGenerator/EventGeneratorBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,10 +277,6 @@ namespace thermalfist {
m_AntiChargeMesons.push_back(std::make_pair(densities[i], i));
m_MeanACM += densities[i];
}
else if (m_THM->TPS()->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];
Expand Down Expand Up @@ -698,7 +694,7 @@ namespace thermalfist {
std::vector<int> 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]++;
Expand Down

0 comments on commit 61ab971

Please sign in to comment.