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
int MCGIDI_energyAngular_parseFromTOM(statusMessageReporting *smr, xDataTOM_element *element, MCGIDI_distribution *distribution)
MCGIDI_angularEnergy * MCGIDI_angularEnergy_free(statusMessageReporting *smr, MCGIDI_angularEnergy *energyAngular)
MCGIDI_energyAngular * energyAngular
MCGIDI_distribution * MCGIDI_distribution_free(statusMessageReporting *smr, MCGIDI_distribution *distribution)
int MCGIDI_angular_parseFromTOM(statusMessageReporting *smr, xDataTOM_element *element, MCGIDI_distribution *distribution, ptwXYPoints *norms)
int MCGIDI_distribution_release(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_KalbachMann * MCGIDI_KalbachMann_free(statusMessageReporting *smr, MCGIDI_KalbachMann *KalbachMann)
int MCGIDI_LLNLAngular_angularEnergy_parseFromTOM(statusMessageReporting *smr, xDataTOM_element *element, MCGIDI_distribution *distribution)
#define smr_setReportError2(smr, libraryID, code, fmt,...)
xDataTOM_element * xDataTOME_getOneElementByName(statusMessageReporting *smr, xDataTOM_element *element, char const *name, int required)
MCGIDI_distribution * MCGIDI_distribution_new(statusMessageReporting *smr)
int MCGIDI_angularEnergy_parseFromTOM(statusMessageReporting *smr, xDataTOM_element *element, MCGIDI_distribution *distribution)
int MCGIDI_distribution_initialize(statusMessageReporting *smr, MCGIDI_distribution *distribution)
#define smr_malloc2(smr, size, zero, forItem)
MCGIDI_energy * MCGIDI_energy_free(statusMessageReporting *smr, MCGIDI_energy *energy)
MCGIDI_energyAngular * MCGIDI_energyAngular_free(statusMessageReporting *smr, MCGIDI_energyAngular *energyAngular)
enum MCGIDI_distributionType type
MCGIDI_KalbachMann * KalbachMann
void * smr_freeMemory(void **p)
int MCGIDI_distribution_parseFromTOM(statusMessageReporting *smr, xDataTOM_element *element, MCGIDI_product *product, MCGIDI_POPs *pops, ptwXYPoints *norms)
MCGIDI_angular * MCGIDI_angular_free(statusMessageReporting *smr, MCGIDI_angular *angular)
int MCGIDI_misc_PQUStringToDoubleInUnitOf(statusMessageReporting *smr, char const *str, char const *toUnit, double *value)
MCGIDI_distribution distribution
MCGIDI_angularEnergy * angularEnergy
char const * xDataTOM_getAttributesValueInElement(xDataTOM_element *element, char const *name)