8 #include "MCGIDI_fromTOM.h"
10 #if defined __cplusplus
19 enum MCGIDI_energyType energyType,
double gammaEnergy_MeV ) {
21 xDataTOM_element *uncorrelatedElement;
22 ptwXYPoints *angularNorms = NULL;
24 if( ( energyType == MCGIDI_energyType_primaryGamma ) || ( energyType == MCGIDI_energyType_discreteGamma ) ) {
26 uncorrelatedElement = element; }
33 distribution->type = MCGIDI_distributionType_uncorrelated_e;
44 MCGIDI_decaySamplingInfo *decaySamplingInfo ) {
46 enum xDataTOM_frame frame;
49 frame = decaySamplingInfo->frame;
51 decaySamplingInfo->frame = frame;
55 #if defined __cplusplus
xDataTOM_element * xDataTOME_getOneElementByName(statusMessageReporting *smr, xDataTOM_element *element, char const *name, int required)
int MCGIDI_energy_parseFromTOM(statusMessageReporting *smr, xDataTOM_element *element, MCGIDI_distribution *distribution, ptwXYPoints *norms, enum MCGIDI_energyType energyType, double gammaEnergy_MeV)
int MCGIDI_angular_sampleMu(statusMessageReporting *smr, MCGIDI_angular *angular, MCGIDI_quantitiesLookupModes &modes, MCGIDI_decaySamplingInfo *decaySamplingInfo)
int MCGIDI_energy_sampleEnergy(statusMessageReporting *smr, MCGIDI_energy *energy, MCGIDI_quantitiesLookupModes &modes, MCGIDI_decaySamplingInfo *decaySamplingInfo)
int MCGIDI_angular_parseFromTOM(statusMessageReporting *smr, xDataTOM_element *element, MCGIDI_distribution *distribution, ptwXYPoints *norms)