Geant4  10.02.p02
ptwXY_methods.cc File Reference
#include <cmath>
#include <float.h>
#include "ptwXY.h"
+ Include dependency graph for ptwXY_methods.cc:

Go to the source code of this file.

Functions

static nfu_status ptwXY_clip2 (ptwXYPoints *ptwXY1, double y, double x1, double y1, double x2, double y2)
 
static double ptwXY_thicken_linear_dx (int sectionSubdivideMax, double dxMax, double x1, double x2)
 
static nfu_status ptwXY_thin2 (ptwXYPoints *thinned, char *thin, double accuracy, int64_t i1, int64_t i2)
 
nfu_status ptwXY_clip (ptwXYPoints *ptwXY1, double yMin, double yMax)
 
nfu_status ptwXY_thicken (ptwXYPoints *ptwXY1, int sectionSubdivideMax, double dxMax, double fxMax)
 
ptwXYPoints * ptwXY_thin (ptwXYPoints *ptwXY1, double accuracy, nfu_status *status)
 
nfu_status ptwXY_trim (ptwXYPoints *ptwXY)
 
ptwXYPoints * ptwXY_union (ptwXYPoints *ptwXY1, ptwXYPoints *ptwXY2, nfu_status *status, int unionOptions)
 
nfu_status ptwXY_scaleOffsetXAndY (ptwXYPoints *ptwXY, double xScale, double xOffset, double yScale, double yOffset)
 

Function Documentation

nfu_status ptwXY_clip ( ptwXYPoints *  ptwXY1,
double  yMin,
double  yMax 
)

Definition at line 25 of file ptwXY_methods.cc.

References n, ptwXY_clear(), ptwXY_clip2(), ptwXY_free(), ptwXY_getPointAtIndex_Unsafely(), ptwXY_getYMax(), ptwXY_getYMin(), ptwXY_new(), ptwXY_setValueAtX(), and ptwXY_simpleCoalescePoints().

+ Here is the call graph for this function:

static nfu_status ptwXY_clip2 ( ptwXYPoints *  ptwXY1,
double  y,
double  x1,
double  y1,
double  x2,
double  y2 
)
static

Definition at line 126 of file ptwXY_methods.cc.

References ptwXY_setValueAtX(), and x.

Referenced by ptwXY_clip().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

nfu_status ptwXY_scaleOffsetXAndY ( ptwXYPoints *  ptwXY,
double  xScale,
double  xOffset,
double  yScale,
double  yOffset 
)

Definition at line 481 of file ptwXY_methods.cc.

References ptwXY_simpleCoalescePoints().

Referenced by MCGIDI_misc_Data2ptwXYPointsInUnitsOf().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

nfu_status ptwXY_thicken ( ptwXYPoints *  ptwXY1,
int  sectionSubdivideMax,
double  dxMax,
double  fxMax 
)

Definition at line 144 of file ptwXY_methods.cc.

References G4Exp(), G4Log(), ptwXY_interpolatePoint(), ptwXY_setValueAtX(), ptwXY_simpleCoalescePoints(), ptwXY_thicken_linear_dx(), and x.

+ Here is the call graph for this function:

static double ptwXY_thicken_linear_dx ( int  sectionSubdivideMax,
double  dxMax,
double  x1,
double  x2 
)
static

Definition at line 295 of file ptwXY_methods.cc.

Referenced by ptwXY_thicken().

+ Here is the caller graph for this function:

ptwXYPoints* ptwXY_thin ( ptwXYPoints *  ptwXY1,
double  accuracy,
nfu_status *  status 
)

Definition at line 211 of file ptwXY_methods.cc.

References nfu_calloc(), nfu_free(), ptwXY_clone(), ptwXY_free(), ptwXY_new(), ptwXY_simpleCoalescePoints(), and ptwXY_thin2().

+ Here is the call graph for this function:

static nfu_status ptwXY_thin2 ( ptwXYPoints *  thinned,
char *  thin,
double  accuracy,
int64_t  i1,
int64_t  i2 
)
static

Definition at line 264 of file ptwXY_methods.cc.

References ptwXY_interpolatePoint(), and s.

Referenced by ptwXY_thin().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

nfu_status ptwXY_trim ( ptwXYPoints *  ptwXY)

Definition at line 315 of file ptwXY_methods.cc.

References ptwXY_simpleCoalescePoints().

+ Here is the call graph for this function:

ptwXYPoints* ptwXY_union ( ptwXYPoints *  ptwXY1,
ptwXYPoints *  ptwXY2,
nfu_status *  status,
int  unionOptions 
)

Definition at line 349 of file ptwXY_methods.cc.

References DBL_EPSILON, n, ptwXY_free(), ptwXY_interpolatePoint(), ptwXY_mergeClosePoints(), ptwXY_new(), and ptwXY_simpleCoalescePoints().

Referenced by ptwXY_binary_ptwXY(), ptwXY_div_ptwXY(), ptwXY_div_ptwXY_forFlats(), ptwXY_groupThreeFunctions(), and ptwXY_groupTwoFunctions().

+ Here is the call graph for this function:

+ Here is the caller graph for this function: