#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) |
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 }