11#if defined __cplusplus
25 return( distribution );
63 char const *nativeData, *gammaEnergy;
64 double gammaEnergy_MeV;
71 distribution->
product = product;
75 if( strcmp( product->
pop->
name,
"gamma" ) == 0 ) {
83 if( gammaEnergy != NULL ) {
84 if( strcmp( nativeData,
"angular" ) ) {
86 gammaEnergy, nativeData );
89 nativeData =
"uncorrelated";
93 if( strcmp( nativeData,
"angular" ) == 0 ) {
95 else if( strcmp( nativeData,
"uncorrelated" ) == 0 ) {
97 else if( strcmp( nativeData,
"energyAngular" ) == 0 ) {
99 else if( strcmp( nativeData,
"angularEnergy" ) == 0 ) {
101 else if( strcmp( nativeData,
"Legendre" ) == 0 ) {
103 else if( strcmp( nativeData,
"LLNLAngular_angularEnergy" ) == 0 ) {
105 else if( strcmp( nativeData,
"none" ) == 0 ) {
107 else if( strcmp( nativeData,
"unknown" ) == 0 ) {
121#if defined __cplusplus
MCGIDI_energyAngular * MCGIDI_energyAngular_free(statusMessageReporting *smr, MCGIDI_energyAngular *energyAngular)
MCGIDI_angularEnergy * MCGIDI_angularEnergy_free(statusMessageReporting *smr, MCGIDI_angularEnergy *energyAngular)
int MCGIDI_distribution_initialize(statusMessageReporting *smr, MCGIDI_distribution *distribution)
int MCGIDI_LLNLAngular_angularEnergy_parseFromTOM(statusMessageReporting *smr, xDataTOM_element *element, MCGIDI_distribution *distribution)
MCGIDI_energy * MCGIDI_energy_free(statusMessageReporting *smr, MCGIDI_energy *energy)
MCGIDI_distribution * MCGIDI_distribution_free(statusMessageReporting *smr, MCGIDI_distribution *distribution)
int MCGIDI_uncorrelated_parseFromTOM(statusMessageReporting *smr, xDataTOM_element *element, MCGIDI_distribution *distribution, ptwXYPoints *norms, enum MCGIDI_energyType energyType, double gammaEnergy_MeV)
@ MCGIDI_distributionType_unknown_e
@ MCGIDI_distributionType_none_e
MCGIDI_angular * MCGIDI_angular_free(statusMessageReporting *smr, MCGIDI_angular *angular)
int MCGIDI_angular_parseFromTOM(statusMessageReporting *smr, xDataTOM_element *element, MCGIDI_distribution *distribution, ptwXYPoints *norms)
int MCGIDI_distribution_parseFromTOM(statusMessageReporting *smr, xDataTOM_element *element, MCGIDI_product *product, MCGIDI_POPs *pops, ptwXYPoints *norms)
int MCGIDI_angularEnergy_parseFromTOM(statusMessageReporting *smr, xDataTOM_element *element, MCGIDI_distribution *distribution)
int MCGIDI_energyAngular_parseFromTOM(statusMessageReporting *smr, xDataTOM_element *element, MCGIDI_distribution *distribution)
MCGIDI_distribution * MCGIDI_distribution_new(statusMessageReporting *smr)
int MCGIDI_distribution_release(statusMessageReporting *smr, MCGIDI_distribution *distribution)
int MCGIDI_misc_PQUStringToDoubleInUnitOf(statusMessageReporting *smr, char const *str, char const *toUnit, double *value)
@ MCGIDI_energyType_unknown
@ MCGIDI_energyType_primaryGamma
@ MCGIDI_energyType_discreteGamma
MCGIDI_KalbachMann * MCGIDI_KalbachMann_free(statusMessageReporting *smr, MCGIDI_KalbachMann *KalbachMann)
#define smr_setReportError2(smr, libraryID, code, fmt,...)
void * smr_freeMemory(void **p)
#define smr_malloc2(smr, size, zero, forItem)
MCGIDI_angularEnergy * angularEnergy
enum MCGIDI_distributionType type
MCGIDI_energyAngular * energyAngular
MCGIDI_KalbachMann * KalbachMann
MCGIDI_distribution distribution
xDataTOM_element * xDataTOME_getOneElementByName(statusMessageReporting *smr, xDataTOM_element *element, char const *name, int required)
char const * xDataTOM_getAttributesValueInElement(xDataTOM_element *element, char const *name)