ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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_interpolationValues ( statusMessageReporting smr,
ptwXY_interpolation  interpolation,
double *  ws,
double  y1,
double  y2,
double *  y 
)

Definition at line 187 of file MCGIDI_sampling.cc.

View newest version in sPHENIX GitHub at line 187 of file MCGIDI_sampling.cc

References G4Log(), G4Pow::GetInstance(), G4Pow::powA(), ptwXY_interpolationLinLin, ptwXY_interpolationLinLog, ptwXY_interpolationLogLin, ptwXY_interpolationLogLog, smr_setReportError2, and smr_unknownID.

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.

View newest version in sPHENIX GitHub at line 41 of file MCGIDI_sampling.cc

References smr_freeMemory(), and MCGIDI_pdfOfX_s::Xs.

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.

View newest version in sPHENIX GitHub 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.

View newest version in sPHENIX GitHub at line 28 of file MCGIDI_sampling.cc

References MCGIDI_pdfsOfXGivenW_s::dist, MCGIDI_sampling_pdfsOfX_release(), MCGIDI_sampling_pdfsOfXGivenW_initialize(), MCGIDI_pdfsOfXGivenW_s::numberOfWs, smr_freeMemory(), and MCGIDI_pdfsOfXGivenW_s::Ws.

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.

View newest version in sPHENIX GitHub at line 212 of file MCGIDI_sampling.cc

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

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.

View newest version in sPHENIX GitHub at line 98 of file MCGIDI_sampling.cc

References MCGIDI_pdfOfX_s::cdf, d1, d2, MCGIDI_pdfsOfXGivenW_sampled_s::interpolationXY, iX, MCGIDI_pdfsOfXGivenW_sampled_s::iX1, MCGIDI_misc_binarySearch(), MCGIDI_pdfOfX_s::numberOfXs, MCGIDI_pdfOfX_s::pdf, ptwXY_interpolationFlat, s1, MCGIDI_pdfsOfXGivenW_sampled_s::smr, smr_setReportError2, smr_unknownID, MCGIDI_pdfsOfXGivenW_sampled_s::x, and MCGIDI_pdfOfX_s::Xs.

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 
)