BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtPFermi.cc
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// File and Version Information:
3//
4// Copyright Information: See EvtGen/COPYRIGHT
5//
6//
7// Description:
8// F(k+) = N (1-x)^a exp((1+a)x) ,x=k+/(mB-mb)
9// the fermi motion distribution according to
10// hep-ph/9905351 v2
11//
12// Environment:
13// Software developed for the BaBar Detector at the SLAC B-Factory.
14//
15// Author List:
16// Sven Menke
17//
18//-----------------------------------------------------------------------
19//-----------------------
20// This Class's Header --
21//-----------------------
22#include "EvtPFermi.hh"
24
25//---------------
26// C Headers --
27//---------------
28#include <math.h>
29
30//----------------
31// Constructors --
32//----------------
33
34EvtPFermi::EvtPFermi( const double& a, const double& mB, const double& mb ) {
35 _a = a;
36 _mb = mb;
37 _mB = mB;
38}
39
40//--------------
41// Destructor --
42//--------------
43
45
46//-----------
47// Methods --
48//-----------
49
50double EvtPFermi::getFPFermi( const double& kplus ) {
51 double FKplus;
52 double x = kplus / ( _mB - _mb );
53
54 if ( x >= 1 ) return 0;
55 if ( kplus <= -_mb ) return 0;
56
57 FKplus = pow( 1 - x, _a ) * exp( ( 1 + _a ) * x );
58
59 return FKplus;
60}
EvtComplex exp(const EvtComplex &c)
EvtPFermi(const double &a, const double &mB, const double &mb)
Definition EvtPFermi.cc:34
double getFPFermi(const double &kplus)
Definition EvtPFermi.cc:50
virtual ~EvtPFermi()
Definition EvtPFermi.cc:44