GeneralBrokenLines V03-01-03
using EIGEN
|
#include "MilleBinary.h"
#include "GblPoint.h"
#include "GblTrajectory.h"
#include "GblUtilities.h"
#include "Eigen/Core"
Go to the source code of this file.
Macros | |
#define | JNA_DO_MONITOR 0 |
Do the memory monitoring if either JNA_DEBUG or JNA_MEMORY_MONITOR is defined. More... | |
Functions | |
std::vector< GblPoint > | ptr_array_to_vector (GblPoint *points[], int npoints) |
convert the pointer array of gbl::GblPoint into a vector holding the objects More... | |
MilleBinary * | MilleBinaryCtor (const char *fileName, int filenamesize, int doublePrecision, int keepZeros, int aSize) |
Dynamically create new MilleBinary file. More... | |
void | MilleBinary_close (MilleBinary *self) |
Closing a gbl::MilleBinary file is the same as destructing it. More... | |
GblPoint * | GblPointCtor (double matrixArray[NROW *NCOL]) |
create new gbl::GblPoint from a jacobian More... | |
void | GblPoint_delete (GblPoint *self) |
delete gbl::GblPoint More... | |
void | GblPoint_printPoint (const GblPoint *self, unsigned int level) |
call gbl::GblPoint::printPoint on self More... | |
int | GblPoint_getNumMeasurements (GblPoint *self) |
calculate number of measurements in a gbl::GblPoint More... | |
void | GblPoint_addMeasurement2D (GblPoint *self, double *projArray, double *resArray, double *precArray, double minPrecision) |
add a 2D measurement More... | |
void | GblPoint_addScatterer (GblPoint *self, double *resArray, double *precArray) |
add a vector-precision scatterer More... | |
void | GblPoint_addGlobals (GblPoint *self, int *labels, int nlabels, double *derArray) |
add global derivatives to the point More... | |
void | GblPoint_getGlobalLabelsAndDerivatives (GblPoint *self, int *nlabels, int **labels, double **ders) |
get global derivatives and their labels from the point More... | |
GblTrajectory * | GblTrajectoryCtorPtrArray (GblPoint *points[], int npoints, int flagCurv, int flagU1dir, int flagU2dir) |
simple construction of a new gbl::GblTrajectory More... | |
GblTrajectory * | GblTrajectoryCtorPtrArraySeed (GblPoint *points[], int npoints, int aLabel, double seedArray[], int flagCurv, int flagU1dir, int flagU2dir) |
construct new gbl::GblTrajectory with a seed matrix More... | |
GblTrajectory * | GblTrajectoryCtorPtrComposed (GblPoint *points_1[], int npoints_1, double trafo_1[], GblPoint *points_2[], int npoints_2, double trafo_2[]) |
compose trajectory for a 2-body decay More... | |
void | GblTrajectory_fit (GblTrajectory *self, double *Chi2, int *Ndf, double *lostWeight, char *c_optionList, unsigned int aLabel) |
call gbl::GblTrajectory::fit on self More... | |
void | GblTrajectory_delete (GblTrajectory *self) |
delete self More... | |
int | GblTrajectory_isValid (GblTrajectory *self) |
call gbl::GblTrajectory::isValid More... | |
int | GblTrajectory_getNumPoints (GblTrajectory *self) |
call gbl::GblTrajectory::getNumPoints More... | |
void | GblTrajectory_printTrajectory (GblTrajectory *self, int level) |
call gbl::GblTrajectory::printTrajectory More... | |
void | GblTrajectory_printData (GblTrajectory *self) |
call gbl::GblTrajectory::printData More... | |
void | GblTrajectory_printPoints (GblTrajectory *self, int level) |
call gbl::GblTrajectory::printPoints More... | |
void | GblTrajectory_getResults (GblTrajectory *self, int aSignedLabel, double *localPar, int *nLocalPar, double *localCov, int *sizeLocalCov) |
get trajectory results More... | |
int | GblTrajectory_getMeasResults (GblTrajectory *self, int aLabel, int *numData, double *aResiduals, double *aMeasErrors, double *aResErrors, double *aDownWeights) |
get measurement results from trajectory More... | |
void | GblTrajectory_milleOut (GblTrajectory *self, MilleBinary *millebinary) |
write a trajectory to a gbl::MilleBinary file More... | |
GblDetectorLayer * | GblDetectorLayerCtor (const char *aName, int aLayer, int aDim, double thickness, double aCenter[], double aResolution[], double aPrecision[], double measTrafo[], double alignTrafo[]) |
construct a detector layer More... | |
void | GblDetectorLayer_delete (GblDetectorLayer *self) |
delete gbl::GblDetectorLayer More... | |
void | GblDetectorLayer_print (GblDetectorLayer *self) |
call gbl::GblDetectorLayer::print More... | |
double | GblDetectorLayer_getRadiationLength (GblDetectorLayer *self) |
call gbl::GblDetectorLayer::getRadiationLength More... | |
GblHelixPrediction * | GblDetectorLayer_intersectWithHelix (GblDetectorLayer *self, GblSimpleHelix *hlx) |
construct a helix prediction from a layer More... | |
GblSimpleHelix * | GblSimpleHelixCtor (double aRinv, double aPhi0, double aDca, double aDzds, double aZ0) |
construct a new simple helix More... | |
void | GblSimpleHelix_delete (GblSimpleHelix *self) |
delete gbl::GblSimpleHelix More... | |
double | GblSimpleHelix_getPhi (GblSimpleHelix *self, double aRadius) |
call gbl::GblSimpleHelix::getPhi More... | |
double | GblSimpleHelix_getArcLengthR (GblSimpleHelix *self, double aRadius) |
call gbl::GblSimpleHelix::getArcLengthR More... | |
double | GblSimpleHelix_getArcLengthXY (GblSimpleHelix *self, double xPos, double yPos) |
call gbl::GblSimpleHelix::getArcLengthXY More... | |
void | GblSimpleHelix_moveToXY (GblSimpleHelix *self, double xPos, double yPos, double *newPhi0, double *newDca, double *newZ0) |
call gbl::GblSimpleHelix::moveToXY More... | |
GblHelixPrediction * | GblSimpleHelix_getPrediction (GblSimpleHelix *self, double refPos[], double uDir[], double vDir[]) |
get a helical prediction from a reference coordinate system More... | |
GblHelixPrediction * | GblHelixPredictionCtor (double sArc, double aPred[], double tDir[], double uDir[], double vDir[], double nDir[], double aPos[]) |
create a new helix prediction manually More... | |
void | GblHelixPrediction_delete (GblHelixPrediction *self) |
delete a gbl::GblHelixPrediction More... | |
double | GblHelixPrediction_getArcLength (GblHelixPrediction *self) |
get the arc length of a helix prediction More... | |
void | GblHelixPrediction_getMeasPred (GblHelixPrediction *self, double *prediction) |
get the predicted measurement More... | |
void | GblHelixPrediction_getPosition (GblHelixPrediction *self, double *position) |
get the position More... | |
void | GblHelixPrediction_getDirection (GblHelixPrediction *self, double direction[]) |
get the direction More... | |
double | GblHelixPrediction_getCosIncidence (GblHelixPrediction *self) |
get the cosine incidence More... | |
void | GblHelixPrediction_getCurvilinearDirs (GblHelixPrediction *self, double curvilinear[]) |
get the curvilinear directions More... | |
Variables | |
const int | NROW = 5 |
const int | NCOL = 5 |
Wrappers around construction, getters, setters, and destruction functions of Gbl classes.
These wrappers are put into an extern "C"
block so that there names are not mangled and therefore can be accessed by name within a Java Native Access (JNA) class accessing the GBL library.
Information on using these wrappers to access the GBL C++ library from with java using JNA can be found in on the JNA Usage page.
Definition in file JavaNativeAccessWrappers.cpp.
#define JNA_DO_MONITOR 0 |
Do the memory monitoring if either JNA_DEBUG or JNA_MEMORY_MONITOR is defined.
Definition at line 141 of file JavaNativeAccessWrappers.cpp.
void GblDetectorLayer_delete | ( | GblDetectorLayer * | self | ) |
delete gbl::GblDetectorLayer
Definition at line 816 of file JavaNativeAccessWrappers.cpp.
double GblDetectorLayer_getRadiationLength | ( | GblDetectorLayer * | self | ) |
call gbl::GblDetectorLayer::getRadiationLength
[in] | self | gbl::GblDetectorLayer to operate on |
Definition at line 841 of file JavaNativeAccessWrappers.cpp.
References gbl::GblDetectorLayer::getRadiationLength().
GblHelixPrediction * GblDetectorLayer_intersectWithHelix | ( | GblDetectorLayer * | self, |
GblSimpleHelix * | hlx | ||
) |
construct a helix prediction from a layer
[in] | self | gbl::GblDetectorLayer to operate on |
[in] | hlx | gbl::GblSimpleHelix to do helical calculations |
Definition at line 864 of file JavaNativeAccessWrappers.cpp.
References gbl::GblDetectorLayer::getCenter(), gbl::GblDetectorLayer::getMeasSystemDirs(), and gbl::GblSimpleHelix::getPrediction().
void GblDetectorLayer_print | ( | GblDetectorLayer * | self | ) |
call gbl::GblDetectorLayer::print
[in] | self | gbl::GblDetectorLayer to operate on |
Definition at line 830 of file JavaNativeAccessWrappers.cpp.
References gbl::GblDetectorLayer::print().
GblDetectorLayer * GblDetectorLayerCtor | ( | const char * | aName, |
int | aLayer, | ||
int | aDim, | ||
double | thickness, | ||
double | aCenter[], | ||
double | aResolution[], | ||
double | aPrecision[], | ||
double | measTrafo[], | ||
double | alignTrafo[] | ||
) |
construct a detector layer
[in] | aName | C-style string name |
[in] | aLayer | integer ID for layer |
[in] | aDim | dimension of layer |
[in] | thickness | thickness of alyer |
[in] | aCenter | double array of length 3 defining center of layer |
[in] | aResolution | double array of length 2 |
[in] | aPrecision | double array of length 2 |
[in] | measTrafo | double array defining 3x3 matrix row wise |
[in] | alignTrafo | double array defining 3x3 matrix row wise |
Definition at line 788 of file JavaNativeAccessWrappers.cpp.
void GblHelixPrediction_delete | ( | GblHelixPrediction * | self | ) |
delete a gbl::GblHelixPrediction
[in] | self | gbl::GblHelixPrediction to delete |
Definition at line 1010 of file JavaNativeAccessWrappers.cpp.
double GblHelixPrediction_getArcLength | ( | GblHelixPrediction * | self | ) |
get the arc length of a helix prediction
[in] | self | gbl::GblHelixPrediction to operate on |
Definition at line 1023 of file JavaNativeAccessWrappers.cpp.
References gbl::GblHelixPrediction::getArcLength().
double GblHelixPrediction_getCosIncidence | ( | GblHelixPrediction * | self | ) |
get the cosine incidence
[in] | self | gbl::GblHelixPrediction to operate on |
Definition at line 1074 of file JavaNativeAccessWrappers.cpp.
References gbl::GblHelixPrediction::getCosIncidence().
void GblHelixPrediction_getCurvilinearDirs | ( | GblHelixPrediction * | self, |
double | curvilinear[] | ||
) |
get the curvilinear directions
[in] | self | gbl::GblHelixPrediction to operate on |
[out] | curvilinear | length-6 double array that will hold the two direction vectors |
Definition at line 1084 of file JavaNativeAccessWrappers.cpp.
References gbl::GblHelixPrediction::getCurvilinearDirs().
void GblHelixPrediction_getDirection | ( | GblHelixPrediction * | self, |
double | direction[] | ||
) |
get the direction
[in] | self | gbl::GblHelixPrediction to operate on |
[out] | direction | length-3 double array that will hold direction |
Definition at line 1060 of file JavaNativeAccessWrappers.cpp.
References gbl::GblHelixPrediction::getDirection().
void GblHelixPrediction_getMeasPred | ( | GblHelixPrediction * | self, |
double * | prediction | ||
) |
get the predicted measurement
[in] | self | gbl::GblHelixPrediction to operate on |
[out] | prediction | length-2 double array that will hold predicted measurement |
Definition at line 1033 of file JavaNativeAccessWrappers.cpp.
References gbl::GblHelixPrediction::getMeasPred().
void GblHelixPrediction_getPosition | ( | GblHelixPrediction * | self, |
double * | position | ||
) |
get the position
[in] | self | gbl::GblHelixPrediction to operate on |
[out] | position | length-3 double array that will hold position |
Definition at line 1046 of file JavaNativeAccessWrappers.cpp.
References gbl::GblHelixPrediction::getPosition().
GblHelixPrediction * GblHelixPredictionCtor | ( | double | sArc, |
double | aPred[], | ||
double | tDir[], | ||
double | uDir[], | ||
double | vDir[], | ||
double | nDir[], | ||
double | aPos[] | ||
) |
create a new helix prediction manually
[in] | sArc | arc length |
[in] | aPred | length-2 double array predicted measurement |
[in] | tDir | length-3 double array defining t direction |
[in] | uDir | length-3 double array defining u direction |
[in] | vDir | length-3 double array defining v direction |
[in] | nDir | length-3 double array defining n direction |
[in] | aPos | length-3 double array defining position |
Definition at line 989 of file JavaNativeAccessWrappers.cpp.
void GblPoint_addGlobals | ( | GblPoint * | self, |
int * | labels, | ||
int | nlabels, | ||
double * | derArray | ||
) |
add global derivatives to the point
[in] | self | gbl::GblPoint to operate on |
[in] | labels | int array of labels nlabels long |
[in] | nlabels | number of labels |
[in] | derArray | double array of derivatives nlabels long |
Definition at line 399 of file JavaNativeAccessWrappers.cpp.
References gbl::GblPoint::addGlobals().
void GblPoint_addMeasurement2D | ( | GblPoint * | self, |
double * | projArray, | ||
double * | resArray, | ||
double * | precArray, | ||
double | minPrecision | ||
) |
add a 2D measurement
[in] | self | gbl::GblPoint to operate on |
[in] | projArray | length-4 array holding the entries in the 2x2 proj matrix |
[in] | resArray | length-2 array holding residuals |
[in] | precArray | length-2 array holding the precisions |
[in] | minPrecision | Minimal precision to accept measurement |
Definition at line 352 of file JavaNativeAccessWrappers.cpp.
References gbl::GblPoint::addMeasurement().
void GblPoint_addScatterer | ( | GblPoint * | self, |
double * | resArray, | ||
double * | precArray | ||
) |
add a vector-precision scatterer
[in] | self | gbl::GblPoint to operate on |
[in] | resArray | length-2 residuals array |
[in] | precArray | length-2 precision array |
Definition at line 378 of file JavaNativeAccessWrappers.cpp.
References gbl::GblPoint::addScatterer().
void GblPoint_delete | ( | GblPoint * | self | ) |
delete gbl::GblPoint
provided so that users of JNA can clean up the memory that is not handled automatically by java itself
[in] | self | gbl::GblPoint to delete |
Definition at line 300 of file JavaNativeAccessWrappers.cpp.
void GblPoint_getGlobalLabelsAndDerivatives | ( | GblPoint * | self, |
int * | nlabels, | ||
int ** | labels, | ||
double ** | ders | ||
) |
get global derivatives and their labels from the point
[in] | self | GblPoint to operate on |
[out] | nlabels | pointer to int where number of labels will be stored |
[out] | labels | pointer to array where labels will be stored |
[out] | ders | pointer to array where derivatives will be stored |
Definition at line 420 of file JavaNativeAccessWrappers.cpp.
References gbl::GblPoint::getGlobalLabelsAndDerivatives(), gbl::GblPoint::getMeasBegin(), and gbl::GblPoint::getMeasEnd().
int GblPoint_getNumMeasurements | ( | GblPoint * | self | ) |
calculate number of measurements in a gbl::GblPoint
Since java struggles to handle the C++ iterators, we calculate the difference between the iterators here so that the java side can access how many measurements a GblPoint has.
[in] | self | gbl::GblPoint to operate on |
Definition at line 331 of file JavaNativeAccessWrappers.cpp.
References gbl::GblPoint::getMeasBegin(), and gbl::GblPoint::getMeasEnd().
void GblPoint_printPoint | ( | const GblPoint * | self, |
unsigned int | level | ||
) |
call gbl::GblPoint::printPoint on self
Definition at line 314 of file JavaNativeAccessWrappers.cpp.
References gbl::GblPoint::printPoint().
GblPoint * GblPointCtor | ( | double | matrixArray[NROW *NCOL] | ) |
create new gbl::GblPoint from a jacobian
[in] | matrixArray | C-style double array listing the jacobian row-by-row. |
Definition at line 280 of file JavaNativeAccessWrappers.cpp.
void GblSimpleHelix_delete | ( | GblSimpleHelix * | self | ) |
delete gbl::GblSimpleHelix
Definition at line 897 of file JavaNativeAccessWrappers.cpp.
double GblSimpleHelix_getArcLengthR | ( | GblSimpleHelix * | self, |
double | aRadius | ||
) |
call gbl::GblSimpleHelix::getArcLengthR
[in] | self | gbl::GblSimpleHelix to operate on |
[in] | aRadius | radius to calculate arc length of |
Definition at line 920 of file JavaNativeAccessWrappers.cpp.
References gbl::GblSimpleHelix::getArcLengthR().
double GblSimpleHelix_getArcLengthXY | ( | GblSimpleHelix * | self, |
double | xPos, | ||
double | yPos | ||
) |
call gbl::GblSimpleHelix::getArcLengthXY
[in] | self | gbl::GblSimpleHelix to operate on |
[in] | xPos | x-position |
[in] | yPos | y-position |
Definition at line 931 of file JavaNativeAccessWrappers.cpp.
References gbl::GblSimpleHelix::getArcLengthXY().
double GblSimpleHelix_getPhi | ( | GblSimpleHelix * | self, |
double | aRadius | ||
) |
call gbl::GblSimpleHelix::getPhi
[in] | self | gbl::GblSimpleHelix to operate on |
[in] | aRadius | radius to calculate phi at |
Definition at line 910 of file JavaNativeAccessWrappers.cpp.
References gbl::GblSimpleHelix::getPhi().
GblHelixPrediction * GblSimpleHelix_getPrediction | ( | GblSimpleHelix * | self, |
double | refPos[], | ||
double | uDir[], | ||
double | vDir[] | ||
) |
get a helical prediction from a reference coordinate system
[in] | self | gbl::GblSimpleHelix to operate on |
[in] | refPos | double array of length three containing reference position |
[in] | uDir | 3-length double array defining u direction |
[in] | vDir | 3-length double array defining v direction |
Definition at line 959 of file JavaNativeAccessWrappers.cpp.
References gbl::GblSimpleHelix::getPrediction().
void GblSimpleHelix_moveToXY | ( | GblSimpleHelix * | self, |
double | xPos, | ||
double | yPos, | ||
double * | newPhi0, | ||
double * | newDca, | ||
double * | newZ0 | ||
) |
call gbl::GblSimpleHelix::moveToXY
[in] | self | gbl::GblSimpleHelix to operate on |
[in] | xPos | x-position |
[in] | yPos | y-position |
[out] | newPhi0 | double address to store resulting phi |
[out] | newDca | double address to store resulting Dca |
[out] | newZ0 | double address to store resulting Z0 |
Definition at line 944 of file JavaNativeAccessWrappers.cpp.
References gbl::GblSimpleHelix::moveToXY().
GblSimpleHelix * GblSimpleHelixCtor | ( | double | aRinv, |
double | aPhi0, | ||
double | aDca, | ||
double | aDzds, | ||
double | aZ0 | ||
) |
construct a new simple helix
The input parameters are all the same as the C++ constructor gbl::GblSimpleHelix::GblSimpleHelix.
Definition at line 887 of file JavaNativeAccessWrappers.cpp.
void GblTrajectory_delete | ( | GblTrajectory * | self | ) |
delete self
Cleanup for JNA, handles cleaning up all GblPoints within it!
Definition at line 611 of file JavaNativeAccessWrappers.cpp.
References gbl::GblTrajectory::getNumPoints().
void GblTrajectory_fit | ( | GblTrajectory * | self, |
double * | Chi2, | ||
int * | Ndf, | ||
double * | lostWeight, | ||
char * | c_optionList, | ||
unsigned int | aLabel | ||
) |
call gbl::GblTrajectory::fit on self
[in] | self | gbl::GblTrajectory to operate on |
[out] | Chi2 | pointer to double where Chi2 result will be stored |
[out] | Ndf | pointer to double where Ndf result will be stored |
[out] | lostWeight | pointer to double where lostWeight result will be stored |
[in] | c_optionList | C-style string listing options |
[in] | aLabel | integer label for fit |
Definition at line 595 of file JavaNativeAccessWrappers.cpp.
References gbl::GblTrajectory::fit().
int GblTrajectory_getMeasResults | ( | GblTrajectory * | self, |
int | aLabel, | ||
int * | numData, | ||
double * | aResiduals, | ||
double * | aMeasErrors, | ||
double * | aResErrors, | ||
double * | aDownWeights | ||
) |
get measurement results from trajectory
[in] | self | gbl::GblTrajectory to operate on |
[in] | aLabel | integer label of results |
[out] | numData | length of resulting arrays (expect 2) |
[out] | aResiduals | double array of residuals |
[out] | aMeasErrors | double array of measurement errors |
[out] | aResErrors | double array of residual errors |
[out] | aDownWeights | double array of down weights |
Definition at line 727 of file JavaNativeAccessWrappers.cpp.
References gbl::GblTrajectory::getMeasResults().
int GblTrajectory_getNumPoints | ( | GblTrajectory * | self | ) |
call gbl::GblTrajectory::getNumPoints
[in] | self | gbl::GblTrajectory to operate on |
Definition at line 641 of file JavaNativeAccessWrappers.cpp.
References gbl::GblTrajectory::getNumPoints().
void GblTrajectory_getResults | ( | GblTrajectory * | self, |
int | aSignedLabel, | ||
double * | localPar, | ||
int * | nLocalPar, | ||
double * | localCov, | ||
int * | sizeLocalCov | ||
) |
get trajectory results
[in] | self | gbl::GblTrajectory to operate on |
[in] | aSignedLabel | integer label for results |
[out] | localPar | length 5 double array where local results will be stored |
[out] | nLocalPar | integer length of double array (always set to 5) |
[out] | localCov | length 25 double array where local covariance results will be stored |
[out] | sizeLocalCov | integer dimension of covariance matrix (always set to 5) |
Definition at line 693 of file JavaNativeAccessWrappers.cpp.
References gbl::GblTrajectory::getResults().
int GblTrajectory_isValid | ( | GblTrajectory * | self | ) |
call gbl::GblTrajectory::isValid
[in] | self | gbl::GblTrajectory to operate on |
Definition at line 629 of file JavaNativeAccessWrappers.cpp.
References gbl::GblTrajectory::isValid().
void GblTrajectory_milleOut | ( | GblTrajectory * | self, |
MilleBinary * | millebinary | ||
) |
write a trajectory to a gbl::MilleBinary file
[in] | self | gbl::GblTrajectory to write out |
[in] | millebinary | gbl::MilleBinary to write to |
Definition at line 766 of file JavaNativeAccessWrappers.cpp.
References gbl::GblTrajectory::milleOut().
void GblTrajectory_printData | ( | GblTrajectory * | self | ) |
call gbl::GblTrajectory::printData
[in] | self | gbl::GblTrajectory to operate on |
Definition at line 664 of file JavaNativeAccessWrappers.cpp.
References gbl::GblTrajectory::printData().
void GblTrajectory_printPoints | ( | GblTrajectory * | self, |
int | level | ||
) |
call gbl::GblTrajectory::printPoints
[in] | self | gbl::GblTrajectory to operate on |
[in] | level | integer level for printing |
Definition at line 676 of file JavaNativeAccessWrappers.cpp.
References gbl::GblTrajectory::printPoints().
void GblTrajectory_printTrajectory | ( | GblTrajectory * | self, |
int | level | ||
) |
call gbl::GblTrajectory::printTrajectory
[in] | self | gbl::GblTrajectory to operate on |
[in] | level | integer level for printing |
Definition at line 653 of file JavaNativeAccessWrappers.cpp.
References gbl::GblTrajectory::printTrajectory().
GblTrajectory * GblTrajectoryCtorPtrArray | ( | GblPoint * | points[], |
int | npoints, | ||
int | flagCurv, | ||
int | flagU1dir, | ||
int | flagU2dir | ||
) |
simple construction of a new gbl::GblTrajectory
Just constructing a trajectory from a set of points. No seeding matrix.
[in] | points | array of pointers to gbl::GblPoint to put into trajectory |
[in] | npoints | number of points in array |
[in] | flagCurv | use q/p - non-zero for true, zero for false |
[in] | flagU1dir | use in u1 direction - non-zero for true, zero for false |
[in] | flagU2dir | use in u2 direction - non-zero for true, zero for false |
Definition at line 486 of file JavaNativeAccessWrappers.cpp.
References ptr_array_to_vector().
GblTrajectory * GblTrajectoryCtorPtrArraySeed | ( | GblPoint * | points[], |
int | npoints, | ||
int | aLabel, | ||
double | seedArray[], | ||
int | flagCurv, | ||
int | flagU1dir, | ||
int | flagU2dir | ||
) |
construct new gbl::GblTrajectory with a seed matrix
[in] | points | array of pointers to gbl::GblPoint to put into trajectory |
[in] | npoints | number of points in array |
[in] | aLabel | integer label for seed |
[in] | seedArray | double-array of length 25 listing seed matrix elements row-wise |
[in] | flagCurv | use q/p - non-zero for true, zero for false |
[in] | flagU1dir | use in u1 direction - non-zero for true, zero for false |
[in] | flagU2dir | use in u2 direction - non-zero for true, zero for false |
Definition at line 514 of file JavaNativeAccessWrappers.cpp.
References ptr_array_to_vector().
GblTrajectory * GblTrajectoryCtorPtrComposed | ( | GblPoint * | points_1[], |
int | npoints_1, | ||
double | trafo_1[], | ||
GblPoint * | points_2[], | ||
int | npoints_2, | ||
double | trafo_2[] | ||
) |
compose trajectory for a 2-body decay
[in] | points_1 | array of gbl::GblPoint for one track |
[in] | npoints_1 | number of points |
[in] | trafo_1 | double array listing elements of 2x3 track matrix |
[in] | points_2 | array of gbl::GblPoint for one track |
[in] | npoints_2 | number of points |
[in] | trafo_2 | double array listing elements of 2x3 track matrix |
Definition at line 545 of file JavaNativeAccessWrappers.cpp.
References ptr_array_to_vector().
void MilleBinary_close | ( | MilleBinary * | self | ) |
Closing a gbl::MilleBinary file is the same as destructing it.
Since the destructor of the gbl::MilleBinary class is what handles performing the final write operations, we simply delete
the object pointed to by the passed pointer.
[in] | self | gbl::MilleBinary to delete |
Definition at line 264 of file JavaNativeAccessWrappers.cpp.
MilleBinary * MilleBinaryCtor | ( | const char * | fileName, |
int | filenamesize, | ||
int | doublePrecision, | ||
int | keepZeros, | ||
int | aSize | ||
) |
Dynamically create new MilleBinary file.
We return the raw pointer to this object so that JNA can effectively access it.
Unfortunately the translation of booleans to/from java is not very stable, so it is safer to simply pass integers and check if they are 0 (for false) or nonzero (for true).
[in] | fileName | name of file in a C-style string |
[in] | filenamesize | length of filename for accessing C-style string |
[in] | doublePrecision | non-zero if should use doublePrecision, zero if should use float precision |
[in] | keepZeros | non-zero to keep zeros, zero to not keep them |
[in] | aSize | size of buffer to keep in memory |
Definition at line 235 of file JavaNativeAccessWrappers.cpp.
convert the pointer array of gbl::GblPoint into a vector holding the objects
This is a helper function and should not be bound to a function by JNA, so we are keeping it outside the extern "C"
block so its name is mangled.
[in] | points | array of pointers to gblGblPoint to put into vector |
[in] | npoints | number of points (size of array) |
Definition at line 194 of file JavaNativeAccessWrappers.cpp.
Referenced by GblTrajectoryCtorPtrArray(), GblTrajectoryCtorPtrArraySeed(), and GblTrajectoryCtorPtrComposed().
const int NCOL = 5 |
Definition at line 129 of file JavaNativeAccessWrappers.cpp.
const int NROW = 5 |
Definition at line 128 of file JavaNativeAccessWrappers.cpp.