BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtGenKine.cc File Reference
#include "EvtGenKine.hh"
#include "EvtConst.hh"
#include "EvtPatches.hh"
#include "EvtRandom.hh"
#include "EvtReport.hh"
#include "EvtVector4R.hh"
#include <iostream>
#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 32 of file EvtGenKine.cc.

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

Referenced by EvtGenKine::PhaseSpace().