Geant4-11
|
Go to the source code of this file.
Macros | |
#define | minEps 5e-16 |
Functions | |
nfu_status | ptwXY_areDomainsMutual (ptwXYPoints *ptwXY1, ptwXYPoints *ptwXY2) |
nfu_status | ptwXY_copyToC_XY (ptwXYPoints *ptwXY, int64_t index1, int64_t index2, int64_t allocatedSize, int64_t *numberOfPoints, double *xys) |
ptwXYPoints * | ptwXY_createGaussian (double accuracy, double xCenter, double sigma, double amplitude, double xMin, double xMax, double, nfu_status *status) |
ptwXYPoints * | ptwXY_createGaussianCenteredSigma1 (double accuracy, nfu_status *status) |
static nfu_status | ptwXY_createGaussianCenteredSigma1_2 (ptwXYPoints *ptwXY, double x1, double y1, double x2, double y2, int addX1Point) |
nfu_status | ptwXY_dullEdges (ptwXYPoints *ptwXY, double lowerEps, double upperEps, int positiveXOnly) |
ptwXPoints * | ptwXY_getXArray (ptwXYPoints *ptwXY, nfu_status *status) |
ptwXYPoints * | ptwXY_intersectionWith_ptwX (ptwXYPoints *ptwXY, ptwXPoints *ptwX, nfu_status *status) |
nfu_status | ptwXY_mergeClosePoints (ptwXYPoints *ptwXY, double epsilon) |
nfu_status | ptwXY_mutualifyDomains (ptwXYPoints *ptwXY1, double lowerEps1, double upperEps1, int positiveXOnly1, ptwXYPoints *ptwXY2, double lowerEps2, double upperEps2, int positiveXOnly2) |
nfu_status | ptwXY_tweakDomainsToMutualify (ptwXYPoints *ptwXY1, ptwXYPoints *ptwXY2, int epsilonFactor, double epsilon) |
nfu_status | ptwXY_valueTo_ptwXAndY (ptwXYPoints *ptwXY, double **xs, double **ys) |
ptwXYPoints * | ptwXY_valueTo_ptwXY (double x1, double x2, double y, nfu_status *status) |
#define minEps 5e-16 |
nfu_status ptwXY_areDomainsMutual | ( | ptwXYPoints * | ptwXY1, |
ptwXYPoints * | ptwXY2 | ||
) |
Definition at line 257 of file ptwXY_convenient.cc.
References ptwXYPoints_s::length, nfu_domainsNotMutual, nfu_empty, nfu_Okay, nfu_tooFewPoints, ptwXY_getPointAtIndex_Unsafely(), ptwXYPoints_s::status, ptwXYPoint_s::x, and ptwXYPoint_s::y.
Referenced by ptwXY_binary_ptwXY(), ptwXY_div_ptwXY(), and ptwXY_mutualifyDomains().
nfu_status ptwXY_copyToC_XY | ( | ptwXYPoints * | ptwXY, |
int64_t | index1, | ||
int64_t | index2, | ||
int64_t | allocatedSize, | ||
int64_t * | numberOfPoints, | ||
double * | xys | ||
) |
Definition at line 424 of file ptwXY_convenient.cc.
References ptwXYPoints_s::length, nfu_insufficientMemory, nfu_Okay, ptwXYPoints_s::points, ptwXY_simpleCoalescePoints(), ptwXYPoints_s::status, ptwXYPoint_s::x, and ptwXYPoint_s::y.
ptwXYPoints * ptwXY_createGaussian | ( | double | accuracy, |
double | xCenter, | ||
double | sigma, | ||
double | amplitude, | ||
double | xMin, | ||
double | xMax, | ||
double | dullEps, | ||
nfu_status * | status | ||
) |
Definition at line 566 of file ptwXY_convenient.cc.
References ptwXYPoints_s::length, ptwXYPoints_s::points, ptwXY_createGaussianCenteredSigma1(), ptwXY_free(), ptwXY_xSlice(), ptwXYPoint_s::x, and ptwXYPoint_s::y.
ptwXYPoints * ptwXY_createGaussianCenteredSigma1 | ( | double | accuracy, |
nfu_status * | status | ||
) |
Definition at line 492 of file ptwXY_convenient.cc.
References ptwXYPoints_s::accuracy, G4Exp(), G4Log(), ptwXYPoints_s::length, CLHEP::detail::n, nfu_Okay, ptwXYPoints_s::points, G4InuclParticleNames::pp, ptwXY_coalescePoints(), ptwXY_createGaussianCenteredSigma1_2(), ptwXY_free(), ptwXY_interpolationLinLin, ptwXY_new(), and ptwXY_setValueAtX().
Referenced by ptwXY_createGaussian().
|
static |
Definition at line 549 of file ptwXY_convenient.cc.
References ptwXYPoints_s::accuracy, G4Exp(), nfu_Okay, ptwXY_createGaussianCenteredSigma1_2(), and ptwXY_setValueAtX().
Referenced by ptwXY_createGaussianCenteredSigma1(), and ptwXY_createGaussianCenteredSigma1_2().
nfu_status ptwXY_dullEdges | ( | ptwXYPoints * | ptwXY, |
double | lowerEps, | ||
double | upperEps, | ||
int | positiveXOnly | ||
) |
Definition at line 42 of file ptwXY_convenient.cc.
References ptwXYPoints_s::interpolation, ptwXYPoints_s::length, minEps, nfu_invalidInterpolation, nfu_Okay, nfu_otherInterpolation, ptwXY_getPointAtIndex_Unsafely(), ptwXY_getValueAtX(), ptwXY_interpolatePoint(), ptwXY_interpolationFlat, ptwXY_interpolationOther, ptwXY_setValueAtX(), G4INCL::Math::sign(), ptwXYPoints_s::status, ptwXYPoint_s::x, and ptwXYPoint_s::y.
Referenced by MCGIDI_reaction_fixDomains(), and ptwXY_mutualifyDomains().
ptwXPoints * ptwXY_getXArray | ( | ptwXYPoints * | ptwXY, |
nfu_status * | status | ||
) |
Definition at line 24 of file ptwXY_convenient.cc.
References ptwXPoints_s::length, ptwXYPoints_s::length, CLHEP::detail::n, nfu_Okay, ptwXPoints_s::points, ptwXYPoints_s::points, ptwX_new(), ptwXY_simpleCoalescePoints(), ptwXYPoints_s::status, and ptwXYPoint_s::x.
ptwXYPoints * ptwXY_intersectionWith_ptwX | ( | ptwXYPoints * | ptwXY, |
ptwXPoints * | ptwX, | ||
nfu_status * | status | ||
) |
Definition at line 194 of file ptwXY_convenient.cc.
References ptwXYPoints_s::interpolation, ptwXYPoints_s::length, CLHEP::detail::n, nfu_Okay, nfu_otherInterpolation, ptwXPoints_s::points, ptwXYPoints_s::points, ptwX_length(), ptwXY_clone(), ptwXY_free(), ptwXY_getValueAtX(), ptwXY_interpolationOther, ptwXY_setValueAtX(), ptwXY_simpleCoalescePoints(), ptwXPoints_s::status, ptwXYPoints_s::status, and ptwXYPoint_s::x.
Referenced by ptwXY_groupOneFunction(), ptwXY_groupThreeFunctions(), and ptwXY_groupTwoFunctions().
nfu_status ptwXY_mergeClosePoints | ( | ptwXYPoints * | ptwXY, |
double | epsilon | ||
) |
Definition at line 141 of file ptwXY_convenient.cc.
References DBL_EPSILON, epsilon(), ptwXYPoints_s::length, CLHEP::detail::n, nfu_Okay, ptwXYPoints_s::points, ptwXY_simpleCoalescePoints(), ptwXYPoints_s::status, ptwXYPoint_s::x, and ptwXYPoint_s::y.
Referenced by ptwXY_union().
nfu_status ptwXY_mutualifyDomains | ( | ptwXYPoints * | ptwXY1, |
double | lowerEps1, | ||
double | upperEps1, | ||
int | positiveXOnly1, | ||
ptwXYPoints * | ptwXY2, | ||
double | lowerEps2, | ||
double | upperEps2, | ||
int | positiveXOnly2 | ||
) |
Definition at line 368 of file ptwXY_convenient.cc.
References ptwXYPoints_s::interpolation, ptwXYPoints_s::length, nfu_domainsNotMutual, nfu_empty, nfu_invalidInterpolation, nfu_Okay, nfu_otherInterpolation, ptwXY_areDomainsMutual(), ptwXY_dullEdges(), ptwXY_getPointAtIndex_Unsafely(), ptwXY_interpolationFlat, ptwXY_interpolationOther, ptwXYPoint_s::x, and ptwXYPoint_s::y.
nfu_status ptwXY_tweakDomainsToMutualify | ( | ptwXYPoints * | ptwXY1, |
ptwXYPoints * | ptwXY2, | ||
int | epsilonFactor, | ||
double | epsilon | ||
) |
Definition at line 295 of file ptwXY_convenient.cc.
References DBL_EPSILON, epsilon(), ptwXYPoints_s::length, nfu_domainsNotMutual, nfu_empty, nfu_Okay, nfu_tooFewPoints, ptwXY_getPointAtIndex_Unsafely(), ptwXYPoints_s::status, ptwXYPoint_s::x, and ptwXYPoint_s::y.
Referenced by ptwXY_groupThreeFunctions(), and ptwXY_groupTwoFunctions().
nfu_status ptwXY_valueTo_ptwXAndY | ( | ptwXYPoints * | ptwXY, |
double ** | xs, | ||
double ** | ys | ||
) |
Definition at line 450 of file ptwXY_convenient.cc.
References free, nfu_mallocError, nfu_Okay, ptwXYPoints_s::points, ptwXY_length(), ptwXY_simpleCoalescePoints(), ptwXYPoints_s::status, ptwXYPoint_s::x, and ptwXYPoint_s::y.
ptwXYPoints * ptwXY_valueTo_ptwXY | ( | double | x1, |
double | x2, | ||
double | y, | ||
nfu_status * | status | ||
) |
Definition at line 477 of file ptwXY_convenient.cc.
References CLHEP::detail::n, nfu_Okay, nfu_XNotAscending, ptwXY_interpolationLinLin, ptwXY_maxBiSectionMax, ptwXY_minAccuracy, ptwXY_new(), and ptwXY_setValueAtX().