1 #ifndef __JGEOMETRY3DTOOLKIT__ 
    2 #define __JGEOMETRY3DTOOLKIT__ 
   18 namespace JGEOMETRY3D {}
 
   19 namespace JPP { 
using namespace JGEOMETRY3D; }
 
   21 namespace JGEOMETRY3D {
 
   81       if (__begin != __end) {
 
   83         for (
T i = __begin; 
i != __end; ++
i) {
 
  111       if (__begin != __end) {
 
  115         for (
T i = __begin; 
i != __end; ++
i) {
 
  116           __x += 
i->getX() * 
i->getW();
 
  117           __y += 
i->getY() * 
i->getW();
 
  118           __z += 
i->getZ() * 
i->getW();
 
  149         double Dmin = numeric_limits<double>::max();
 
  151         for (
T i = __begin; 
i != __end; ++
i) {
 
  152           for (
T j = 
i; ++
j != __end; ) {
 
  170         const double dl   = 
getDmin(__begin, i);
 
  171         const double dr   = 
getDmin(i,   __end);
 
  173         const double Dmin = min(dl, dr);
 
  178         while (--il != __begin && i ->getZ() - il->getZ() < Dmin) {}
 
  179         while (++ir != __end   && ir->getZ() - i ->getZ() < Dmin) {}
 
  185         return min(Dmin, dz);
 
  204         return first.getZ() < second.getZ();
 
  233       sort(__begin, __end, compareZ);
 
  235       return getDmin(__begin, __end);
 
static const JSmallestDistance3D getSmallestDistance3D
Function object for smallest distance determination. 
 
std::vector< T >::difference_type distance(typename std::vector< T >::const_iterator first, typename PhysicsEvent::const_iterator< T > second)
Specialisation of STL distance. 
 
JSmallestDistance3D()
Default constructor. 
 
static const JSmallestDistance2D getSmallestDistance2D
Function object for smallest distance determination. 
 
then echo The file $DIR KM3NeT_00000001_00000000 root already please rename or remove it first
 
double getDistance(const JFirst_t &first, const JSecond_t &second)
Get distance between objects. 
 
static double getDmin(T __begin, T __end)
Recursive method to find the smallest distance. 
 
JCenter3D(T __begin, T __end)
Constructor. 
 
Data structure for vector in three dimensions. 
 
static const JCompareZ compareZ
Function object for sorting elements. 
 
do set_variable OUTPUT_DIRECTORY $WORKDIR T
 
counter_type advance(counter_type &counter, const counter_type value, const counter_type limit=std::numeric_limits< counter_type >::max())
Advance counter. 
 
double operator()(T __begin, T __end) const 
Get smallest distance between two points. 
 
then usage $script< input file >[option[primary[working directory]]] nWhere option can be N
 
then JMuonMCEvt f $INPUT_FILE o $INTERMEDIATE_FILE d
 
JCenter3D(const JVector3D &p0, const JVector3D &p1, const JVector3D &p2)
Constructor. 
 
JCenter3D(const JVector3D &p0, const JVector3D &p1)
Constructor. 
 
Auxiliary class for sorting elements. 
 
Data structure for position in three dimensions. 
 
JVector3D & div(const double factor)
Scale vector. 
 
JWeighedCenter3D(T __begin, T __end)
Constructor. 
 
bool operator()(const T &first, const T &second) const 
Compare x-positions of given points. 
 
JVector3D & add(const JVector3D &vector)
Add vector. 
 
Auxiliary class for determination of smallest distance between pair of 3D points. ...