Meson Class Reference

A class for mesons. More...

#include <Meson.h>

Inheritance diagram for Meson:
[legend]
Collaboration diagram for Meson:
[legend]

Detailed Description

A class for mesons.

Author
HEPfit Collaboration

This class is used to define a meson and three of its characteristics: mass, lifetime and decay constant. This class inherits the public access members of the Particle class.

Definition at line 26 of file Meson.h.

Public Member Functions

double computeWidth () const
 A method to compute the width of the meson from its lifetime. More...
 
const double & getDecayconst () const
 A get method for the decay constant of the meson. More...
 
const double & getDgamma_gamma () const
 
const double & getGegenalpha (int i) const
 
const double & getLambdaM () const
 
double getLifetime () const
 A get method for the lifetime of the meson. More...
 
 Meson ()
 The default constructor. More...
 
 Meson (double mass, double lifetime, double decayconst, double lambdaM, double gegenalpha1, double gegenalpha2)
 Constructor. More...
 
void setDecayconst (double decayconst)
 A set method for the decay constant of the meson. More...
 
void setDgamma_gamma (double Dgamma_gamma)
 
void setGegenalpha (int i, double gegenalpha)
 
void setLambdaM (double lambdaM)
 
void setLifetime (double lifetime)
 A set method for the decay constant of the meson. More...
 
virtual ~Meson ()
 The default destructor. More...
 
- Public Member Functions inherited from Particle
double getCharge () const
 A get method to access the particle charge. More...
 
int getIndex () const
 
double getIsospin () const
 A get method to access the particle isospin. More...
 
const double & getMass () const
 A get method to access the particle mass. More...
 
double getMass_scale () const
 A get method to access the scale at which the particle mass is defined. More...
 
std::string getName () const
 
const double & getWidth () const
 A get method to access the particle width. More...
 
bool is (std::string name_i) const
 
 Particle ()
 The default constructor. More...
 
 Particle (std::string name, double mass, double mass_scale=0., double width=0., double charge=0., double isospin=0.)
 Constructor. More...
 
void setCharge (double charge)
 A set method to fix the particle charge. More...
 
void setIsospin (double isospin)
 A set method to fix the particle isospin. More...
 
void setMass (double mass)
 A set method to fix the particle mass. More...
 
void setMass_scale (double mass_scale)
 A set method to fix the scale at which the particle mass is defined. More...
 
void setName (std::string name)
 
void setWidth (double width)
 A set method to fix the particle width. More...
 
virtual ~Particle ()
 

Private Attributes

double decayconst
 The decay constant of the meson. More...
 
double Dgamma_gamma
 Dgamma/gamma for neutral mesons. More...
 
double gegenalpha [2]
 Gegenbauer moments. More...
 
double lambdaM
 First moment of LCDA. More...
 
double lifetime
 The lifetime of the meson. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Particle
void setIndex ()
 
- Protected Attributes inherited from Particle
double charge
 The particle charge. More...
 
int index
 The index of the particle. More...
 
double isospin
 The particle isospin. More...
 
double mass
 The particle mass in GeV. More...
 
double mass_scale
 The scale in GeV at which the particle mass is defined. More...
 
std::string name
 The particle name. More...
 
double width
 The particle width in GeV. More...
 

Constructor & Destructor Documentation

Meson::Meson ( )
inline

The default constructor.

Definition at line 32 of file Meson.h.

33  {
34  };
Meson::Meson ( double  mass,
double  lifetime = 5.e29,
double  decayconst = 0.,
double  lambdaM = 0.,
double  gegenalpha1 = 0.,
double  gegenalpha2 = 0. 
)

Constructor.

Parameters
[in]massthe mass of the meson in GeV
[in]lifetimethe lifetime of the meson in \( \mathrm{ps}^{-1} \)
[in]decayconstthe decay constant of the meson in GeV
[in]lambdaMthe first moment of the LCDA
[in]gegenalpha1first Gegenbauer moment of LCDA
[in]gegenalpha2second Gegenbauer moment of LCDA

Definition at line 10 of file Meson.cpp.

12 {
13  this->mass = mass;
14  this->lifetime = lifetime;
15  this->decayconst = decayconst;
16  this->lambdaM = lambdaM;
17  gegenalpha[0] = gegenalpha1;
18  gegenalpha[1] = gegenalpha2;
19 }
double decayconst
The decay constant of the meson.
Definition: Meson.h:130
double lambdaM
First moment of LCDA.
Definition: Meson.h:133
double lifetime
The lifetime of the meson.
Definition: Meson.h:131
double mass
The particle mass in GeV.
Definition: Particle.h:166
double gegenalpha[2]
Gegenbauer moments.
Definition: Meson.h:132
Meson::~Meson ( )
virtual

The default destructor.

Definition at line 21 of file Meson.cpp.

22 {
23 }

Member Function Documentation

double Meson::computeWidth ( ) const

A method to compute the width of the meson from its lifetime.

Returns
the width of the meson in GeV

Definition at line 25 of file Meson.cpp.

26 {
27  return (HCUT / lifetime);
28 }
double lifetime
The lifetime of the meson.
Definition: Meson.h:131
#define HCUT
Definition: Particle.h:14
const double& Meson::getDecayconst ( ) const
inline

A get method for the decay constant of the meson.

Returns
the decay constant of the meson in GeV

Definition at line 74 of file Meson.h.

75  {
76  return decayconst;
77  }
double decayconst
The decay constant of the meson.
Definition: Meson.h:130
const double& Meson::getDgamma_gamma ( ) const
inline

Definition at line 124 of file Meson.h.

125  {
126  return Dgamma_gamma;
127  }
double Dgamma_gamma
Dgamma/gamma for neutral mesons.
Definition: Meson.h:134
const double& Meson::getGegenalpha ( int  i) const
inline

Definition at line 94 of file Meson.h.

95  {
96  if (i >= 0 && i < 2)
97  return gegenalpha[i];
98  else
99  throw std::runtime_error("Meson::getGegenalpha(" + boost::lexical_cast<std::string>(i) + "): index out of range");
100  }
double gegenalpha[2]
Gegenbauer moments.
Definition: Meson.h:132
const double& Meson::getLambdaM ( ) const
inline

Definition at line 110 of file Meson.h.

111  {
112  return lambdaM;
113  }
double lambdaM
First moment of LCDA.
Definition: Meson.h:133
double Meson::getLifetime ( ) const
inline

A get method for the lifetime of the meson.

Returns
the lifetime of the meson in \( \mathrm{ps}^{-1} \)

Definition at line 56 of file Meson.h.

57  {
58  return lifetime;
59  }
double lifetime
The lifetime of the meson.
Definition: Meson.h:131
void Meson::setDecayconst ( double  decayconst)
inline

A set method for the decay constant of the meson.

Parameters
[in]decayconstthe decay constant of the meson in GeV

Definition at line 83 of file Meson.h.

84  {
85  this->decayconst = decayconst;
86  }
double decayconst
The decay constant of the meson.
Definition: Meson.h:130
void Meson::setDgamma_gamma ( double  Dgamma_gamma)
inline

Definition at line 120 of file Meson.h.

120  {
121  this->Dgamma_gamma = Dgamma_gamma;
122  }
double Dgamma_gamma
Dgamma/gamma for neutral mesons.
Definition: Meson.h:134
void Meson::setGegenalpha ( int  i,
double  gegenalpha 
)
inline

Definition at line 102 of file Meson.h.

103  {
104  if (i >= 0 && i < 2)
105  this->gegenalpha[i] = gegenalpha;
106  else
107  throw std::runtime_error("Meson::setGegenalpha(" + boost::lexical_cast<std::string>(i) + ", double gegenalpha): index out of range");
108  }
double gegenalpha[2]
Gegenbauer moments.
Definition: Meson.h:132
void Meson::setLambdaM ( double  lambdaM)
inline

Definition at line 115 of file Meson.h.

116  {
117  this->lambdaM = lambdaM;
118  }
double lambdaM
First moment of LCDA.
Definition: Meson.h:133
void Meson::setLifetime ( double  lifetime)
inline

A set method for the decay constant of the meson.

Parameters
[in]lifetimethe lifetime of the meson in \( \mathrm{ps}^{-1} \)

Definition at line 65 of file Meson.h.

66  {
67  this->lifetime = lifetime;
68  }
double lifetime
The lifetime of the meson.
Definition: Meson.h:131

Member Data Documentation

double Meson::decayconst
private

The decay constant of the meson.

Definition at line 130 of file Meson.h.

double Meson::Dgamma_gamma
private

Dgamma/gamma for neutral mesons.

Definition at line 134 of file Meson.h.

double Meson::gegenalpha[2]
private

Gegenbauer moments.

Definition at line 132 of file Meson.h.

double Meson::lambdaM
private

First moment of LCDA.

Definition at line 133 of file Meson.h.

double Meson::lifetime
private

The lifetime of the meson.

Definition at line 131 of file Meson.h.


The documentation for this class was generated from the following files: