CKernel Class Reference
#include <kernel.h>
List of all members.
|
Public Member Functions |
| CKernel (string kparsfilename="") |
| Constructor for CKernel.
|
virtual | ~CKernel () |
| Destructor for CKernel.
|
virtual double | GetValue (int ell, double q, double r) const |
double | GetValue (int ell, int iq, int ir) const |
| The value of a particular point in the interpolation table.
|
bool | Read (const parameterMap ¶meters) |
| Read in the parameters from a parameterMap.
|
bool | Write (parameterMap ¶meters) |
| Writes the parameters to a parameterMap.
|
void | ReadData (string datadirname) |
| Read in the interpolation table from a directory.
|
void | WriteData (string datadirname) |
| Writes the interpolation table to bunch of files in a directory.
|
void | Print () |
| Simple routine to print out the entire interpolation table to stdout for debugging.
|
int | GetLMAX () |
double | GetDELR () |
double | GetDELQ () |
int | GetNQMAX () |
int | GetNRMAX () |
double | GetQ (int iq) |
virtual void | Calc (CWaveFunction *wf) |
| Builds the interpolation table, using the actual CWaveFunction in CKernel::wf.
|
void | Calc_ClassCoul (double ma, double mb, int zazb) |
| Builds the interpolation table, assuming classical Coulomb correlations.
|
void | Calc_PureHBT () |
| Builds the interpolation table, assuming HBT only.
|
bool | GetIDENTICAL () |
double | GetPsiSquared (int iq, int ir, double ctheta) |
double | GetPsiSquared (int iq, double r, double ctheta) |
double | GetPsiSquared (double q, double r, double ctheta) |
Private Member Functions |
void | ParsInit (string kparsfilename) |
double | CalcPsiSquared (int iq, int ir, double ctheta) |
double | CalcPsiSquared (int iq, double r, double ctheta) |
void | CalcP (double ctheta) |
Private Attributes |
bool | IDENTICAL |
int | ellmax |
int | nrmax |
int | nqmax |
double | delr |
double | delq |
double *** | kernel |
double * | P |
Detailed Description
Definition at line 22 of file kernel.h.
Constructor & Destructor Documentation
CKernel::CKernel |
( |
string |
kparsfilename = "" |
) |
|
Constructor for CKernel.
- Parameters:
-
| kparsfilename | name of the file that has the parameters to set up the kernel |
Definition at line 24 of file kernel.cc.
CKernel::~CKernel |
( |
|
) |
[virtual] |
Member Function Documentation
void CKernel::Calc_ClassCoul |
( |
double |
ma, |
|
|
double |
mb, |
|
|
int |
zazb | |
|
) |
| | |
Builds the interpolation table, assuming classical Coulomb correlations.
- Parameters:
-
| ma | Mass of particle a, in MeV |
| mb | Mass of particle b, in MeV |
| zazb | Charge of particle a times charge or particle b. Both in units of . |
THIS DOCUMENTATION NEEDS TO BE FLUSHED OUT!!!!!!
Definition at line 385 of file kernel.cc.
void CKernel::Calc_PureHBT |
( |
|
) |
|
Builds the interpolation table, assuming HBT only.
For a pure HBT kernel, the pair relative wavefunction is simply
Where
is the relative four-momentum of the pair and
is the space-time separation of the pair at freeze-out. It is straight-forward to show that the kernel is
This is for even
only. For odd ones, this is zero. Here
and
, both in the pair rest frame.
Definition at line 435 of file kernel.cc.
void CKernel::CalcP |
( |
double |
ctheta |
) |
[private] |
double CKernel::CalcPsiSquared |
( |
int |
iq, |
|
|
double |
r, |
|
|
double |
ctheta | |
|
) |
| | [private] |
double CKernel::CalcPsiSquared |
( |
int |
iq, |
|
|
int |
ir, |
|
|
double |
ctheta | |
|
) |
| | [private] |
double CKernel::GetDELQ |
( |
|
) |
|
double CKernel::GetDELR |
( |
|
) |
|
bool CKernel::GetIDENTICAL |
( |
|
) |
|
int CKernel::GetNQMAX |
( |
|
) |
|
int CKernel::GetNRMAX |
( |
|
) |
|
double CKernel::GetPsiSquared |
( |
double |
q, |
|
|
double |
r, |
|
|
double |
ctheta | |
|
) |
| | |
double CKernel::GetPsiSquared |
( |
int |
iq, |
|
|
double |
r, |
|
|
double |
ctheta | |
|
) |
| | |
double CKernel::GetPsiSquared |
( |
int |
iq, |
|
|
int |
ir, |
|
|
double |
ctheta | |
|
) |
| | |
double CKernel::GetQ |
( |
int |
iq |
) |
|
double CKernel::GetValue |
( |
int |
ell, |
|
|
int |
iq, |
|
|
int |
ir | |
|
) |
| | const |
The value of a particular point in the interpolation table.
- Parameters:
-
| ell | The Legendre order of the table in question |
| iq | The q grid index |
| ir | The r grid index |
- Returns:
- The value of the interpolation table at the specified index on the grid
Definition at line 187 of file kernel.cc.
double CKernel::GetValue |
( |
int |
ell, |
|
|
double |
q, |
|
|
double |
r | |
|
) |
| | const [virtual] |
Performs the linear interpolation to get the value of the kernel at a particular point
- Parameters:
-
| ell | The Legendre order of the requested kernel |
| q | The value of relative momentum at which you want to evaluate the kernel (in MeV/c) |
| r | The value of separation at which you want to evaluate the kernel (in fm) |
- Returns:
- Value of the kernel at the requested point
Reimplemented in CKernelExactHBT.
Definition at line 107 of file kernel.cc.
void CKernel::ParsInit |
( |
string |
kparsfilename |
) |
[private] |
Simple routine to print out the entire interpolation table to stdout for debugging.
Definition at line 356 of file kernel.cc.
Read in the parameters from a parameterMap.
- Parameters:
-
| parameters | The parameterMap containing the parameters (see below) |
- Returns:
- True==Success, False==Failure
The parameters in the
parameterMap that this code uses are as follows:
nqmax
The number of points in the q direction in the kernel interpolation tablenrmax
The number of points in the r direction in the kernel interpolation tablekellmax
The maximum order of the Legendre polynomial expansion of the kernel to computedelq
The step size in the q direction in the kernel interpolation tabledelr
The step size in the r direction in the kernel interpolation tableIDENTICAL
Bool to denote whether this kernel is for identical pairs
Definition at line 213 of file kernel.cc.
void CKernel::ReadData |
( |
string |
datadir |
) |
|
Read in the interpolation table from a directory.
- Parameters:
-
| datadir | The directory containing the interpolation table. |
The data in datadir is stored in one file per q. Each file contains an interpolation table in r for that value of q.
Definition at line 274 of file kernel.cc.
Writes the parameters to a parameterMap.
- Parameters:
-
| parameters | The parameterMap containing the parameters (see below) |
- Returns:
- True==Success, False==Failure
The parameters in the
parameterMap that this code uses are as follows:
nqmax
The number of points in the q direction in the kernel interpolation tablenrmax
The number of points in the r direction in the kernel interpolation tablekellmax
The maximum order of the Legendre polynomial expansion of the kernel to computedelq
The step size in the q direction in the kernel interpolation tabledelr
The step size in the r direction in the kernel interpolation tableIDENTICAL
Bool to denote whether this kernel is for identical pairs
Definition at line 237 of file kernel.cc.
void CKernel::WriteData |
( |
string |
datadir |
) |
|
Writes the interpolation table to bunch of files in a directory.
- Parameters:
-
| datadir | The directory containing the interpolation table. |
The data in datadir is stored in one file per q. Each file contains an interpolation table in r for that value of q.
Definition at line 323 of file kernel.cc.
Member Data Documentation
The documentation for this class was generated from the following files:
- /Users/brown170/Projects/Current/coral_msu_repo/trunk/src/coral/Kernel/kernel.h
- /Users/brown170/Projects/Current/coral_msu_repo/trunk/src/coral/Kernel/kernel.cc