]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TEvtGen/EvtGenBase/EvtPropBreitWignerRel.cxx
Merge branch 'master' of https://git.cern.ch/reps/AliRoot
[u/mrichter/AliRoot.git] / TEvtGen / EvtGenBase / EvtPropBreitWignerRel.cxx
1 #include "EvtGenBase/EvtPatches.hh"
2 /*******************************************************************************
3  * Project: BaBar detector at the SLAC PEP-II B-factory
4  * Package: EvtGenBase
5  *    File: $Id: EvtPropBreitWignerRel.cc,v 1.5 2004/12/21 19:58:47 ryd Exp $
6  *  Author: Alexei Dvoretskii, dvoretsk@slac.stanford.edu, 2001-2002
7  *
8  * Copyright (C) 2002 Caltech
9  *******************************************************************************/
10
11 #include <math.h>
12 #include "EvtGenBase/EvtPropBreitWignerRel.hh"
13
14
15 EvtPropBreitWignerRel::EvtPropBreitWignerRel(double m0, double g0) 
16   : EvtPropagator(m0,g0) 
17 {}
18
19
20 EvtPropBreitWignerRel::EvtPropBreitWignerRel(const EvtPropBreitWignerRel& other) 
21   : EvtPropagator(other)
22 {}
23
24
25 EvtPropBreitWignerRel::~EvtPropBreitWignerRel() 
26 {}
27   
28
29 EvtAmplitude<EvtPoint1D>* EvtPropBreitWignerRel::clone() const
30
31   return new EvtPropBreitWignerRel(*this); 
32 }
33
34
35 EvtComplex EvtPropBreitWignerRel::amplitude(const EvtPoint1D& x) const
36 {
37   double m = x.value();
38   return 1./(_m0*_m0-m*m-EvtComplex(0.,_m0*_g0));   
39 }