CWeight Class Reference

weighted Monte Carlo More...

#include <CWeight.h>

Inheritance diagram for CWeight:

CNucleus List of all members.

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

Detailed Description

weighted Monte Carlo

!

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.


Member Function Documentation

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.

Parameters:
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

Parameters:
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


The documentation for this class was generated from the following files:
Generated on Mon Aug 6 14:13:09 2012 by  doxygen 1.4.7