BOSS 7.0.1
BESIII Offline Software System
Loading...
Searching...
No Matches
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

◆ EvtPawt()

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

Definition at line 33 of file EvtGenKine.cc.

34{
35 double temp=(a*a-(b+c)*(b+c))*(a*a-(b-c)*(b-c));
36
37 if (temp<=0) {
38
39 //report(ERROR,"EvtGen")<<"Sqrt of negative number in EvtPhaseSpace\n"<<
40 // "This seems to happen on AIX but I do not know why yet!"<<endl;
41
42 return 0.0;
43
44 }
45
46 return sqrt(temp)/(2.0*a);
47}

Referenced by EvtGenKine::PhaseSpace().