/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Generator/BesEvtGen/BesEvtGen-00-03-58/src/EvtGen/EvtGenBase/EvtGenKine.cc File Reference

#include "EvtGenBase/EvtPatches.hh"
#include <iostream>
#include "EvtGenBase/EvtGenKine.hh"
#include "EvtGenBase/EvtRandom.hh"
#include "EvtGenBase/EvtVector4R.hh"
#include "EvtGenBase/EvtReport.hh"
#include "EvtGenBase/EvtConst.hh"
#include <math.h>

Go to the source code of this file.

Functions

double EvtPawt (double a, double b, double c)


Function Documentation

double EvtPawt ( double  a,
double  b,
double  c 
)

Definition at line 33 of file EvtGenKine.cc.

References subSeperate::temp.

Referenced by EvtGenKine::PhaseSpace().

00034 {
00035   double temp=(a*a-(b+c)*(b+c))*(a*a-(b-c)*(b-c));
00036 
00037   if (temp<=0) {
00038 
00039     //report(ERROR,"EvtGen")<<"Sqrt of negative number in EvtPhaseSpace\n"<<
00040     //   "This seems to happen on AIX but I do not know why yet!"<<endl;
00041 
00042      return 0.0;
00043 
00044   }
00045 
00046   return sqrt(temp)/(2.0*a);
00047 }


Generated on Tue Nov 29 23:15:53 2016 for BOSS_7.0.2 by  doxygen 1.4.7