Geant4  10.02
MCGIDI_sampling.cc File Reference
#include <stdlib.h>
#include <cmath>
#include "MCGIDI.h"
+ Include dependency graph for MCGIDI_sampling.cc:

Go to the source code of this file.

Functions

int MCGIDI_sampling_pdfsOfXGivenW_initialize (statusMessageReporting *, MCGIDI_pdfsOfXGivenW *dists)
 
int MCGIDI_sampling_pdfsOfXGivenW_release (statusMessageReporting *smr, MCGIDI_pdfsOfXGivenW *dists)
 
int MCGIDI_sampling_pdfsOfX_release (statusMessageReporting *, MCGIDI_pdfOfX *dist)
 
int MCGIDI_sampling_sampleX_from_pdfsOfXGivenW (MCGIDI_pdfsOfXGivenW *dists, MCGIDI_pdfsOfXGivenW_sampled *sampled, double rngValue)
 
int MCGIDI_sampling_sampleX_from_pdfOfX (MCGIDI_pdfOfX *dist, MCGIDI_pdfsOfXGivenW_sampled *sampled, double rngValue)
 
int MCGIDI_sampling_doubleDistribution (statusMessageReporting *smr, MCGIDI_pdfsOfXGivenW *pdfOfWGivenV, MCGIDI_pdfsOfXGivenW *pdfOfXGivenVAndW, MCGIDI_quantitiesLookupModes &modes, MCGIDI_decaySamplingInfo *decaySamplingInfo)
 
int MCGIDI_sampling_interpolationValues (statusMessageReporting *smr, ptwXY_interpolation interpolation, double *ws, double y1, double y2, double *y)
 
double MCGIDI_sampling_ptwXY_getValueAtX (ptwXYPoints *ptwXY, double x1)
 

Function Documentation

int MCGIDI_sampling_doubleDistribution ( statusMessageReporting *  smr,
MCGIDI_pdfsOfXGivenW *  pdfOfWGivenV,
MCGIDI_pdfsOfXGivenW *  pdfOfXGivenVAndW,
MCGIDI_quantitiesLookupModes &  modes,
MCGIDI_decaySamplingInfo *  decaySamplingInfo 
)

Definition at line 141 of file MCGIDI_sampling.cc.

References MCGIDI_misc_binarySearch(), MCGIDI_sampling_interpolationValues(), MCGIDI_sampling_sampleX_from_pdfOfX(), MCGIDI_sampling_sampleX_from_pdfsOfXGivenW(), w, and x.

Referenced by MCGIDI_angularEnergy_sampleDistribution(), and MCGIDI_energyAngular_sampleDistribution().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int MCGIDI_sampling_interpolationValues ( statusMessageReporting *  smr,
ptwXY_interpolation  interpolation,
double *  ws,
double  y1,
double  y2,
double *  y 
)

Definition at line 187 of file MCGIDI_sampling.cc.

References G4Log(), G4Pow::GetInstance(), and G4Pow::powA().

Referenced by MCGIDI_sampling_doubleDistribution().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int MCGIDI_sampling_pdfsOfX_release ( statusMessageReporting *  ,
MCGIDI_pdfOfX *  dist 
)

Definition at line 41 of file MCGIDI_sampling.cc.

References smr_freeMemory().

Referenced by MCGIDI_energy_release(), and MCGIDI_sampling_pdfsOfXGivenW_release().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int MCGIDI_sampling_pdfsOfXGivenW_initialize ( statusMessageReporting *  ,
MCGIDI_pdfsOfXGivenW *  dists 
)

Definition at line 20 of file MCGIDI_sampling.cc.

Referenced by MCGIDI_sampling_pdfsOfXGivenW_release().

+ Here is the caller graph for this function:

int MCGIDI_sampling_pdfsOfXGivenW_release ( statusMessageReporting *  smr,
MCGIDI_pdfsOfXGivenW *  dists 
)

Definition at line 28 of file MCGIDI_sampling.cc.

References MCGIDI_sampling_pdfsOfX_release(), MCGIDI_sampling_pdfsOfXGivenW_initialize(), and smr_freeMemory().

Referenced by MCGIDI_angular_release(), MCGIDI_angularEnergy_release(), MCGIDI_energy_release(), MCGIDI_energyAngular_release(), and MCGIDI_LLNL_angularEnergy_parsePointwiseFromTOM().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

double MCGIDI_sampling_ptwXY_getValueAtX ( ptwXYPoints *  ptwXY,
double  x1 
)

Definition at line 212 of file MCGIDI_sampling.cc.

References ptwXY_getValueAtX(), ptwXY_getXMax(), and ptwXY_getXMin().

Referenced by MCGIDI_energy_sampleEnergy(), MCGIDI_energy_sampleWeightedFunctional(), and MCGIDI_product_sampleMultiplicity().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int MCGIDI_sampling_sampleX_from_pdfOfX ( MCGIDI_pdfOfX *  dist,
MCGIDI_pdfsOfXGivenW_sampled *  sampled,
double  rngValue 
)

Definition at line 98 of file MCGIDI_sampling.cc.

References d1, d2, and MCGIDI_misc_binarySearch().

Referenced by MCGIDI_energy_sampleEnergy(), MCGIDI_sampling_doubleDistribution(), and MCGIDI_sampling_sampleX_from_pdfsOfXGivenW().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int MCGIDI_sampling_sampleX_from_pdfsOfXGivenW ( MCGIDI_pdfsOfXGivenW *  dists,
MCGIDI_pdfsOfXGivenW_sampled *  sampled,
double  rngValue 
)

Definition at line 49 of file MCGIDI_sampling.cc.

References G4Log(), G4Pow::GetInstance(), MCGIDI_misc_binarySearch(), MCGIDI_sampling_sampleX_from_pdfOfX(), and G4Pow::powA().

Referenced by MCGIDI_angular_sampleMu(), MCGIDI_energy_sampleEnergy(), MCGIDI_KalbachMann_sampleEp(), and MCGIDI_sampling_doubleDistribution().

+ Here is the call graph for this function:

+ Here is the caller graph for this function: