Geant4-11
|
Go to the source code of this file.
Data Structures | |
struct | ptwXPoints_s |
Macros | |
#define | ptwX_minimumSize 10 |
Typedefs | |
typedef struct ptwXPoints_s | ptwXPoints |
Enumerations | |
enum | ptwX_sort_order { ptwX_sort_order_descending , ptwX_sort_order_ascending } |
typedef struct ptwXPoints_s ptwXPoints |
enum ptwX_sort_order |
nfu_status ptwX_abs | ( | ptwXPoints * | ptwX | ) |
Definition at line 434 of file ptwX_core.cc.
References nfu_Okay, ptwXPoints_s::points, and ptwXPoints_s::status.
nfu_status ptwX_add_double | ( | ptwXPoints * | ptwX, |
double | value | ||
) |
Definition at line 453 of file ptwX_core.cc.
References ptwX_slopeOffset().
nfu_status ptwX_add_ptwX | ( | ptwXPoints * | ptwX1, |
ptwXPoints * | ptwX2 | ||
) |
Definition at line 479 of file ptwX_core.cc.
References ptwXPoints_s::length, nfu_domainsNotMutual, nfu_Okay, ptwXPoints_s::points, and ptwXPoints_s::status.
Referenced by MCGIDI_reaction_recast().
int ptwX_ascendingOrder | ( | ptwXPoints * | ptwX | ) |
Definition at line 257 of file ptwX_core.cc.
References ptwXPoints_s::length, and ptwXPoints_s::points.
nfu_status ptwX_clear | ( | ptwXPoints * | ptwX | ) |
Definition at line 139 of file ptwX_core.cc.
References ptwXPoints_s::length, and ptwXPoints_s::status.
Referenced by ptwX_copy().
ptwXPoints * ptwX_clone | ( | ptwXPoints * | ptwX, |
nfu_status * | status | ||
) |
Definition at line 88 of file ptwX_core.cc.
References ptwXPoints_s::length, and ptwX_slice().
Referenced by GIDI_settings_processedFlux::GIDI_settings_processedFlux(), MCGIDI_target_heated_recast(), GIDI_settings_processedFlux::operator=(), and ptwX_unique().
int ptwX_close | ( | ptwXPoints * | ptwX1, |
ptwXPoints * | ptwX2, | ||
int | epsilonFactor, | ||
double | epsilon, | ||
nfu_status * | status | ||
) |
Definition at line 553 of file ptwX_core.cc.
References DBL_EPSILON, epsilon(), ptwXPoints_s::length, nfu_domainsNotMutual, nfu_Okay, ptwXPoints_s::points, and ptwXPoints_s::status.
nfu_status ptwX_closesDifference | ( | ptwXPoints * | ptwX, |
double | value, | ||
int64_t * | index, | ||
double * | difference | ||
) |
Definition at line 352 of file ptwX_core.cc.
References ptwXPoints_s::length, and ptwX_closesDifferenceInRange().
nfu_status ptwX_closesDifferenceInRange | ( | ptwXPoints * | ptwX, |
int64_t | i1, | ||
int64_t | i2, | ||
double | value, | ||
int64_t * | index, | ||
double * | difference | ||
) |
Definition at line 359 of file ptwX_core.cc.
References d1, ptwXPoints_s::length, nfu_Okay, ptwXPoints_s::points, and ptwXPoints_s::status.
Referenced by ptwX_closesDifference().
nfu_status ptwX_compare | ( | ptwXPoints * | ptwX1, |
ptwXPoints * | ptwX2, | ||
int * | comparison | ||
) |
Definition at line 528 of file ptwX_core.cc.
References ptwXPoints_s::length, nfu_Okay, G4InuclParticleNames::nn, ptwXPoints_s::points, and ptwXPoints_s::status.
nfu_status ptwX_copy | ( | ptwXPoints * | dest, |
ptwXPoints * | src | ||
) |
Definition at line 78 of file ptwX_core.cc.
References ptwXPoints_s::length, nfu_Okay, ptwXPoints_s::points, ptwX_clear(), ptwX_setData(), and ptwXPoints_s::status.
nfu_status ptwX_countOccurrences | ( | ptwXPoints * | ptwX, |
double | value, | ||
int * | count | ||
) |
Definition at line 301 of file ptwX_core.cc.
References ptwXPoints_s::length, nfu_Okay, and ptwXPoints_s::points.
ptwXPoints * ptwX_create | ( | int64_t | size, |
int64_t | length, | ||
double const * | xs, | ||
nfu_status * | status | ||
) |
Definition at line 50 of file ptwX_core.cc.
References nfu_Okay, ptwX_free(), ptwX_new(), and ptwX_setData().
Referenced by ptwX_fromString(), and GIDI_settings_particle::setGroup().
ptwXPoints * ptwX_createLine | ( | int64_t | size, |
int64_t | length, | ||
double | slope, | ||
double | offset, | ||
nfu_status * | status | ||
) |
Definition at line 62 of file ptwX_core.cc.
References ptwXPoints_s::length, ptwXPoints_s::points, and ptwX_new().
Referenced by MCGIDI_target_heated_recast(), ptwXY_groupOneFunction(), ptwXY_groupThreeFunctions(), and ptwXY_groupTwoFunctions().
nfu_status ptwX_deletePoints | ( | ptwXPoints * | ptwX, |
int64_t | i1, | ||
int64_t | i2 | ||
) |
Definition at line 191 of file ptwX_core.cc.
References ptwXPoints_s::length, CLHEP::detail::n, nfu_badIndex, nfu_Okay, ptwXPoints_s::points, and ptwXPoints_s::status.
ptwXPoints * ptwX_free | ( | ptwXPoints * | ptwX | ) |
Definition at line 158 of file ptwX_core.cc.
References nfu_free(), and ptwX_release().
Referenced by GIDI_settings_processedFlux::GIDI_settings_processedFlux(), MCGIDI_angular_parseFromTOM(), MCGIDI_energy_parseMadlandNixFromTOM(), MCGIDI_fromTOM_pdfOfX(), MCGIDI_KalbachMann_parseFromTOM2(), MCGIDI_reaction_recast(), MCGIDI_reaction_release(), MCGIDI_target_heated_recast(), MCGIDI_target_heated_release(), GIDI_settings_processedFlux::operator=(), ptwX_create(), ptwX_unique(), ptwXY_groupOneFunction(), ptwXY_groupThreeFunctions(), ptwXY_groupTwoFunctions(), ptwXY_runningIntegral(), GIDI_settings_particle::setGroup(), GIDI_settings_particle::~GIDI_settings_particle(), and GIDI_settings_processedFlux::~GIDI_settings_processedFlux().
ptwXPoints * ptwX_fromString | ( | char const * | str, |
char ** | endCharacter, | ||
nfu_status * | status | ||
) |
Definition at line 287 of file ptwX_core.cc.
References nfu_free(), nfu_Okay, nfu_stringToListOfDoubles(), and ptwX_create().
double * ptwX_getPointAtIndex | ( | ptwXPoints * | ptwX, |
int64_t | index | ||
) |
Definition at line 206 of file ptwX_core.cc.
References ptwXPoints_s::length, nfu_Okay, ptwXPoints_s::points, and ptwXPoints_s::status.
Referenced by MCGIDI_reaction_getCrossSectionAtE(), MCGIDI_reaction_recast(), and MCGIDI_target_heated_getTotalCrossSectionAtE().
double ptwX_getPointAtIndex_Unsafely | ( | ptwXPoints * | ptwX, |
int64_t | index | ||
) |
Definition at line 215 of file ptwX_core.cc.
References ptwXPoints_s::points.
Referenced by MCGIDI_angular_parseFromTOM(), MCGIDI_energy_parseMadlandNixFromTOM(), MCGIDI_fromTOM_pdfOfX(), MCGIDI_KalbachMann_parseFromTOM2(), and MCGIDI_target_heated_recast().
nfu_status ptwX_insertPointsAtIndex | ( | ptwXPoints * | ptwX, |
int64_t | index, | ||
int64_t | n1, | ||
double const * | xs | ||
) |
Definition at line 238 of file ptwX_core.cc.
References ptwXPoints_s::allocatedSize, ptwXPoints_s::length, nfu_badIndex, nfu_Okay, ptwXPoints_s::points, ptwX_reallocatePoints(), and ptwXPoints_s::status.
int64_t ptwX_length | ( | ptwXPoints * | ptwX | ) |
Definition at line 166 of file ptwX_core.cc.
References ptwXPoints_s::length.
Referenced by MCGIDI_target_heated_getTotalCrossSectionAtE(), ptwXY_groupOneFunction(), ptwXY_groupThreeFunctions(), ptwXY_groupTwoFunctions(), and ptwXY_intersectionWith_ptwX().
nfu_status ptwX_mul_double | ( | ptwXPoints * | ptwX, |
double | value | ||
) |
Definition at line 460 of file ptwX_core.cc.
References ptwX_slopeOffset().
nfu_status ptwX_neg | ( | ptwXPoints * | ptwX | ) |
Definition at line 446 of file ptwX_core.cc.
References ptwX_slopeOffset().
ptwXPoints * ptwX_new | ( | int64_t | size, |
nfu_status * | status | ||
) |
Definition at line 24 of file ptwX_core.cc.
References nfu_calloc(), nfu_free(), nfu_mallocError, nfu_Okay, ptwX_setup(), and ptwXPoints_s::status.
Referenced by ptwX_create(), ptwX_createLine(), ptwX_slice(), ptwX_unique(), ptwXY_getXArray(), ptwXY_groupOneFunction(), ptwXY_groupThreeFunctions(), ptwXY_groupTwoFunctions(), and ptwXY_runningIntegral().
nfu_status ptwX_reallocatePoints | ( | ptwXPoints * | ptwX, |
int64_t | size, | ||
int | forceSmallerResize | ||
) |
Definition at line 116 of file ptwX_core.cc.
References ptwXPoints_s::allocatedSize, ptwXPoints_s::length, ptwXPoints_s::mallocFailedSize, nfu_mallocError, nfu_realloc(), ptwXPoints_s::points, ptwX_minimumSize, and ptwXPoints_s::status.
Referenced by ptwX_insertPointsAtIndex(), ptwX_setData(), ptwX_setPointAtIndex(), and ptwX_setup().
nfu_status ptwX_release | ( | ptwXPoints * | ptwX | ) |
Definition at line 147 of file ptwX_core.cc.
References ptwXPoints_s::allocatedSize, ptwXPoints_s::length, nfu_free(), nfu_Okay, and ptwXPoints_s::points.
Referenced by ptwX_free().
nfu_status ptwX_reverse | ( | ptwXPoints * | ptwX | ) |
Definition at line 314 of file ptwX_core.cc.
References ptwXPoints_s::length, nfu_Okay, and ptwXPoints_s::points.
nfu_status ptwX_setData | ( | ptwXPoints * | ptwX, |
int64_t | length, | ||
double const * | xs | ||
) |
Definition at line 173 of file ptwX_core.cc.
References ptwXPoints_s::allocatedSize, ptwXPoints_s::length, nfu_Okay, ptwXPoints_s::points, ptwX_reallocatePoints(), and ptwXPoints_s::status.
Referenced by ptwX_copy(), and ptwX_create().
nfu_status ptwX_setPointAtIndex | ( | ptwXPoints * | ptwX, |
int64_t | index, | ||
double | x | ||
) |
Definition at line 222 of file ptwX_core.cc.
References ptwXPoints_s::allocatedSize, ptwXPoints_s::length, nfu_badIndex, nfu_Okay, ptwXPoints_s::points, ptwX_reallocatePoints(), and ptwXPoints_s::status.
Referenced by MCGIDI_target_heated_recast(), and ptwXY_runningIntegral().
nfu_status ptwX_setup | ( | ptwXPoints * | ptwX, |
int64_t | size | ||
) |
Definition at line 37 of file ptwX_core.cc.
References ptwXPoints_s::allocatedSize, ptwXPoints_s::length, ptwXPoints_s::mallocFailedSize, nfu_Okay, ptwXPoints_s::points, ptwX_reallocatePoints(), and ptwXPoints_s::status.
Referenced by ptwX_new().
void ptwX_simplePrint | ( | ptwXPoints const * | ptwX, |
char const * | format | ||
) |
Definition at line 29 of file ptwX_misc.cc.
References ptwX_simpleWrite().
void ptwX_simpleWrite | ( | ptwXPoints const * | ptwX, |
FILE * | f, | ||
char const * | format | ||
) |
Definition at line 19 of file ptwX_misc.cc.
References ptwXPoints_s::length, and ptwXPoints_s::points.
Referenced by ptwX_simplePrint().
ptwXPoints * ptwX_slice | ( | ptwXPoints * | ptwX, |
int64_t | index1, | ||
int64_t | index2, | ||
nfu_status * | status | ||
) |
Definition at line 95 of file ptwX_core.cc.
References ptwXPoints_s::length, CLHEP::detail::n, nfu_badIndex, nfu_badSelf, nfu_Okay, ptwXPoints_s::points, ptwX_new(), and ptwXPoints_s::status.
Referenced by ptwX_clone().
nfu_status ptwX_slopeOffset | ( | ptwXPoints * | ptwX, |
double | slope, | ||
double | offset | ||
) |
Definition at line 467 of file ptwX_core.cc.
References nfu_Okay, ptwXPoints_s::points, and ptwXPoints_s::status.
Referenced by ptwX_add_double(), ptwX_mul_double(), and ptwX_neg().
nfu_status ptwX_sort | ( | ptwXPoints * | ptwX, |
enum ptwX_sort_order | order | ||
) |
Definition at line 329 of file ptwX_core.cc.
References ptwXPoints_s::length, nfu_Okay, ptwXPoints_s::points, ptwX_sort_ascending(), ptwX_sort_descending(), and ptwX_sort_order_ascending.
Referenced by ptwX_unique().
nfu_status ptwX_sub_ptwX | ( | ptwXPoints * | ptwX1, |
ptwXPoints * | ptwX2 | ||
) |
Definition at line 494 of file ptwX_core.cc.
References ptwXPoints_s::length, nfu_domainsNotMutual, nfu_Okay, ptwXPoints_s::points, and ptwXPoints_s::status.
ptwXPoints * ptwX_unique | ( | ptwXPoints * | ptwX, |
int | order, | ||
nfu_status * | status | ||
) |
Definition at line 385 of file ptwX_core.cc.
References ptwXPoints_s::length, nfu_Okay, ptwXPoints_s::points, ptwX_clone(), ptwX_free(), ptwX_new(), ptwX_sort(), ptwX_sort_order_ascending, and ptwX_sort_order_descending.
nfu_status ptwX_xMinMax | ( | ptwXPoints * | ptwX, |
double * | xMin, | ||
double * | xMax | ||
) |
Definition at line 509 of file ptwX_core.cc.
References ptwXPoints_s::length, nfu_Okay, ptwXPoints_s::points, and ptwXPoints_s::status.