Thermal-FIST 1.5
Package for hadron resonance gas model applications
Loading...
Searching...
No Matches
ParticleDecay.cpp
Go to the documentation of this file.
1/*
2 * Thermal-FIST package
3 *
4 * Copyright (c) 2019-2019 Volodymyr Vovchenko
5 *
6 * GNU General Public License (GPLv3 or later)
7 */
9
10#include <cmath>
11
12using namespace std;
13
14namespace thermalfist {
15
17 {
18 if (m < mM0) return 0.;
19 if (mM0 >= mPole)
20 return mBratio * pow(1. - (mM0 / m)*(mM0 / m), mL + 1. / 2.);
21 return mBratio * pow(1. - (mM0 / m)*(mM0 / m), mL + 1. / 2.) / pow(1. - (mM0 / mPole)*(mM0 / mPole), mL + 1. / 2.);
22 }
23
25 {
26 bool ret = true;
27
28 ret &= mBratio == rhs.mBratio;
29 ret &= mDaughters == rhs.mDaughters;
30 ret &= mM0 == rhs.mM0;
31 ret &= mPole == rhs.mPole;
32 ret &= mL == rhs.mL;
33 ret &= mBratioVsM == rhs.mBratioVsM;
34 ret &= mBratioAverage == rhs.mBratioAverage;
35 ret &= mChannelName == rhs.mChannelName;
36
37 return ret;
38 }
39
40} // namespace thermalfist
Contains structures related to particle decays.
The main namespace where all classes and functions of the Thermal-FIST library reside.
Definition CosmicEoS.h:9
std::vector< double > mBratioVsM
std::string mChannelName
Name of the decay channel. Not used.
std::vector< long long > mDaughters
bool operator==(const ParticleDecayChannel &rhs) const
ParticleDecayChannel(double bratio=0., const std::vector< long long > &daughters=std::vector< long long >(0))
Construct a new ParticleDecay object.
double ModifiedWidth(double m) const
Energy depedent modified branching ratio.