#include <CWeight.h>
Inheritance diagram for CWeight:
Public Member Functions | |
int | chooseChannel (float Glight, float Gimf, float Gfission, float Ggamma, float xran) |
void | setWeightIMF () |
float | getWeightFactor () |
Protected Member Functions | |
void | findFactor (float Glight, float Gimf, float Gfission, float Ggamma) |
Protected Attributes | |
float | fact |
weighting factor | |
int | iWeight |
==0, no weighting | |
float | runningWeight |
running weight of event |
!
Class CWeight is a base class that deals with a weighted Monte Carlo scheme. It is used to enhance the probabilty of IMF emission. To compensate for this, each event is given a weight. This weight should be used when histogramming events.
int CWeight::chooseChannel | ( | float | gammaLight, | |
float | gammaImf, | |||
float | gammaFission, | |||
float | gammaGamma, | |||
float | xran | |||
) |
Chooses the decay channel given the decay widths. If IMF weighting is truned on, then IMF emission is enhanced and a running weight is calculated.
gammaLight | decay width for light-particle evaporation (MeV) | |
gammaImf | decay width for IMF emission (MeV) | |
gammaFission | Fission decay width (MeV) | |
gammaGamma | Gamma-ray decay width | |
xran | Random number |
void CWeight::findFactor | ( | float | gammaLight, | |
float | gammaImf, | |||
float | gammaFission, | |||
float | gammaGamma | |||
) | [protected] |
Determines the degree of weighting for enhance IMF emission
gammaLight | decay width for light-particle evaporation (MeV) | |
gammaImf | decay width for IMF emission (MeV) | |
gammaFission | Fission decay width (MeV) | |
gammaGamma | Gamma-ray decay width |
float CWeight::getWeightFactor | ( | ) |
When IMF weighting is turn on, this routine returns the weighting factor which should be used to increment all histograms. If weighting is turned off, then unity is returned
void CWeight::setWeightIMF | ( | ) |
turns on IMF weighting, i.e. emhanced IMF emissions