#include <CAngleDist.h>
Public Member Functions | |
CAngleDist () | |
~CAngleDist () | |
float | getTheta (int l) |
returns a random polar angle associated with a specified angular momentum | |
Protected Attributes | |
float ** | dist |
array containing sampled distributions | |
Static Protected Attributes | |
static CRandom | ran |
random number generator | |
static int const | maxL = 20 |
static int const | nAngle = 90 |
static float const | pi = acos(-1.) |
the mathematical constant |
!
class to randomly selects a polar angle theta of an emitted fragment
CAngleDist::CAngleDist | ( | ) |
Constructor
CAngleDist::~CAngleDist | ( | ) |
Destructor
float CAngleDist::getTheta | ( | int | l | ) |
returns a random polar angle associated with a specified angular momentum
The angle is chosen from the distribution . This angle is expressed in radians. If the angular momentum is above maxL, an angle of 90 degrees is returned
l | is the orbital angular-momentum quantum number |
int const CAngleDist::maxL = 20 [static, protected] |
maximum angular distribution for which distributions are made
int const CAngleDist::nAngle = 90 [static, protected] |
number of angular bins used to sample distributions