Thermal-FIST  1.3
Package for hadron resonance gas model applications
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 
12 using namespace std;
13 
14 namespace thermalfist {
15 
16  double ParticleDecayChannel::ModifiedWidth(double m) const
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 
24  bool ParticleDecayChannel::operator==(const ParticleDecayChannel & rhs) const
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
Structure containing information about a single decay channel of a particle.
Definition: ParticleDecay.h:73
std::vector< double > mBratioVsM
Definition: ParticleDecay.h:80
std::string mChannelName
Name of the decay channel. Not used.
Definition: ParticleDecay.h:84
std::vector< long long > mDaughters
Definition: ParticleDecay.h:75
Contains structures related to particle decays.
The main namespace where all classes and functions of the Thermal-FIST library reside.