/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Generator/BesEvtGen/BesEvtGen-00-03-58/src/EvtGen/EvtGenModels/EvtPFermi.cc

Go to the documentation of this file.
00001 //-----------------------------------------------------------------------
00002 // File and Version Information:
00003 //
00004 // Copyright Information: See EvtGen/COPYRIGHT
00005 //
00006 //
00007 // Description:
00008 //   F(k+) = N (1-x)^a exp((1+a)x) ,x=k+/(mB-mb) 
00009 //   the fermi motion distribution according to
00010 //   hep-ph/9905351 v2
00011 //   
00012 // Environment:
00013 //      Software developed for the BaBar Detector at the SLAC B-Factory.
00014 //
00015 // Author List:
00016 //      Sven Menke
00017 //
00018 //-----------------------------------------------------------------------
00019 //-----------------------
00020 // This Class's Header --
00021 //-----------------------
00022 #include "EvtGenBase/EvtPatches.hh"
00023 #include "EvtGenModels/EvtPFermi.hh"
00024 
00025 //---------------
00026 // C Headers --
00027 //---------------
00028 #include <math.h>
00029 
00030 //----------------
00031 // Constructors --
00032 //----------------
00033 
00034 EvtPFermi::EvtPFermi(const double &a, const double &mB, const double &mb)
00035 {
00036   _a = a;
00037   _mb = mb;
00038   _mB = mB;
00039 }
00040 
00041 //--------------
00042 // Destructor --
00043 //--------------
00044 
00045 EvtPFermi::~EvtPFermi( )
00046 {
00047 }
00048 
00049 //-----------
00050 // Methods --
00051 //-----------
00052 
00053 double EvtPFermi::getFPFermi(const double &kplus)
00054 {
00055   double FKplus;
00056   double x = kplus/(_mB-_mb);
00057 
00058   if ( x      >= 1)   return 0;
00059   if ( kplus <= -_mb) return 0; 
00060 
00061   FKplus = pow(1-x,_a)*exp((1+_a)*x);
00062 
00063   return FKplus;
00064 }

Generated on Tue Nov 29 23:12:20 2016 for BOSS_7.0.2 by  doxygen 1.4.7