CGEM BOSS 6.6.5.h
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//-----------------------
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{
36 _a = a;
37 _mb = mb;
38 _mB = mB;
39}
40
41//--------------
42// Destructor --
43//--------------
44
48
49//-----------
50// Methods --
51//-----------
52
53double EvtPFermi::getFPFermi(const double &kplus)
54{
55 double FKplus;
56 double x = kplus/(_mB-_mb);
57
58 if ( x >= 1) return 0;
59 if ( kplus <= -_mb) return 0;
60
61 FKplus = pow(1-x,_a)*exp((1+_a)*x);
62
63 return FKplus;
64}
Double_t x[10]
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:53
virtual ~EvtPFermi()
Definition EvtPFermi.cc:45