Meson.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012 HEPfit Collaboration
3  * All rights reserved.
4  *
5  * For the licensing terms see doc/COPYING.
6  */
7 
8 #include "Meson.h"
9 
10 Meson::Meson(double mass, double lifetime = 5.e29, double decayconst = 0.,
11  double lambdaM = 0., double gegenalpha1 = 0., double gegenalpha2 = 0.)
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 }
20 
22 {
23 }
24 
25 double Meson::computeWidth() const
26 {
27  return (HCUT / lifetime);
28 }
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
#define HCUT
Definition: Particle.h:14
virtual ~Meson()
The default destructor.
Definition: Meson.cpp:21
double computeWidth() const
A method to compute the width of the meson from its lifetime.
Definition: Meson.cpp:25
double mass
The particle mass in GeV.
Definition: Particle.h:166
Meson()
The default constructor.
Definition: Meson.h:32
double gegenalpha[2]
Gegenbauer moments.
Definition: Meson.h:132