ROOTPWA
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
generators
breitWignerProductionAmp.cc
Go to the documentation of this file.
1
//-----------------------------------------------------------
2
// File and Version Information:
3
// $Id$
4
//
5
// Description:
6
// Implementation of class breitWignerProductionAmp
7
// see breitWignerProductionAmp.hh for details
8
//
9
//
10
// Author List:
11
// Sebastian Neubert TUM (original author)
12
//
13
//
14
//-----------------------------------------------------------
15
16
#include "
breitWignerProductionAmp.h
"
17
18
19
using namespace
rpwa;
20
21
breitWignerProductionAmp::breitWignerProductionAmp
(
double
mass
,
22
double
width,
23
std::complex<double> coupling)
24
: _mass(mass),
25
_m2(mass*mass),
26
_width(width),
27
_mw(mass*width),
28
_coupling(coupling) { }
29
30
31
std::complex<double>
32
breitWignerProductionAmp::amp
(
double
mass
) {
33
34
std::complex<double> denom(
_m2
-mass*mass,-
_mw
);
35
std::complex<double> nom(
_mw
);
36
37
return
_coupling
*nom/denom;
38
39
}
40
Generated by
1.8.1.2