1 #ifndef __JMATHTOOLKIT__ 
    2 #define __JMATHTOOLKIT__ 
   30 namespace JPP { 
using namespace JMATH; }
 
   63   inline long long int factorial(
const long long int n, 
const long long int m)
 
   65     if (n < 0 || m < 0 || n < m) {
 
   86   template<
class JFirst_t, 
class JSecond_t>
 
   88                      const JSecond_t& second,
 
   89                      const double     precision = std::numeric_limits<double>::min())
 
   91     return first.equals(second, precision);
 
  102   template<
class JFirst_t, 
class JSecond_t>
 
  104                                    const JSecond_t& second)
 
  106     return first.getDistanceSquared(second);    
 
  117   template<
class JFirst_t, 
class JSecond_t>
 
  119                             const JSecond_t& second)
 
  121     return first.getDistance(second);
 
  132   template<
class JFirst_t, 
class JSecond_t>
 
  133   inline double getDot(
const JFirst_t&  first,
 
  134                        const JSecond_t& second)
 
  136     return first.getDot(second);
 
  147   template<
class JFirst_t, 
class JSecond_t>
 
  149                          const JSecond_t& second)
 
  151     const double dot = 
getDot(first,second);
 
  155     else if (dot <= -1.0)
 
  158       return acos(dot) * 180.0 / acos(-1.0);
 
  169   template<
class JFirst_t, 
class JSecond_t>
 
  171                            const JSecond_t& second)
 
  173     return first.getPerpDot(second);
 
  188     return T().getCross(first, second);
 
  202     const size_t k = kernel.size();
 
  203     const size_t n = input .size() - k + 1;
 
  207     for (
size_t i = 0; 
i != 
n; ++
i) {
 
  208       for (
size_t j = 0; 
j != 
k; ++
j) {
 
  209         out[
i] += input[
i + 
j] * kernel[k - 
j - 1]; 
 
double getAngle(const JQuaternion3D &first, const JQuaternion3D &second)
Get space angle between quanternions. 
then fatal No hydrophone data file $HYDROPHONE_TXT fi sort gr k
double getDot(const JNeutrinoDirection &first, const JNeutrinoDirection &second)
Dot product. 
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message. 
double getDistanceSquared(const JFirst_t &first, const JSecond_t &second)
Get square of distance between objects. 
Definition of zero value for any class. 
double getPerpDot(const JFirst_t &first, const JSecond_t &second)
Get perpendicular dot product of objects. 
long long int factorial(const long long int n)
Determine factorial. 
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. 
do set_variable OUTPUT_DIRECTORY $WORKDIR T
std::vector< T > convolve(const std::vector< T > &input, const std::vector< T > &kernel)
Convolute data with given kernel. 
bool equals(const JFirst_t &first, const JSecond_t &second, const double precision=std::numeric_limits< double >::min())
Check equality. 
Exception for accessing a value in a collection that is outside of its range. 
T getCross(const T &first, const T &second)
Get cross product of objects.