Skip to content

Commit

Permalink
Small tuning for PCE-HRG fits
Browse files Browse the repository at this point in the history
  • Loading branch information
vlvovch committed Aug 25, 2022
1 parent 974838c commit 2ffde41
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gui/QtThermalFIST/fittoexperimenttab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,7 @@ void FitToExperimentTab::finalize() {
if (model->UsePartialChemicalEquilibrium()) {
tableParameters->setItem(cRow, 0, new QTableWidgetItem("Tkin (MeV)"));
tableParameters->setItem(cRow, 1, new QTableWidgetItem(QString::number(result.Tkin.value * 1.e3)));
if (result.T.toFit == true)
if (result.Tkin.toFit == true)
tableParameters->setItem(cRow, 2, new QTableWidgetItem(QString::number(result.Tkin.error * 1.e3)));
else
tableParameters->setItem(cRow, 2, new QTableWidgetItem("--"));
Expand Down
2 changes: 1 addition & 1 deletion src/library/HRGFit/ThermalModelFitParameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ namespace thermalfist {
S = params.S;
C = params.C;

Tkin = FitParameter("Tkin", false, params.T, 0.05, 0.02, 0.300);
Tkin = FitParameter("Tkin", false, params.T, 0.05, 0.050, 0.200);

FillParameterList();
}
Expand Down
4 changes: 4 additions & 0 deletions src/library/HRGPCE/ThermalModelPCE.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -336,12 +336,16 @@ namespace thermalfist {
{
for (int ipart = 0; ipart < m_EffectiveCharges.size(); ++ipart) {
ThermalParticle& part = m_model->TPS()->Particle(ipart);
part.CalculateAndSetDynamicalThreshold();
if (part.ZeroWidthEnforced() || part.Statistics() != -1)
continue;

double totmu = 0.;
int nonzerocharges = 0;
for (int ifeed = 0; ifeed < m_EffectiveCharges[ipart].size(); ++ifeed) {
totmu += m_EffectiveCharges[ipart][ifeed] * m_model->TPS()->Particle(m_StableMapTo[ifeed]).Mass();
if (m_EffectiveCharges[ipart][ifeed] != 0.0)
nonzerocharges++;
}

if (totmu > part.DecayThresholdMassDynamical()) {
Expand Down

0 comments on commit 2ffde41

Please sign in to comment.