19#ifndef _MISCFUNCTION_HXX_
20#define _MISCFUNCTION_HXX_
34double PS(vector < double > U, vector < double > V);
43void RotateVector(vector < double > &V,
double phi,
double theta = 0,
double psi = 0);
52void RotatePoint(
double *P,
double phi,
double theta = 0,
double psi = 0,
double *center =
nullptr);
62void RotatePoint(vector < double > &P,
double phi,
double theta = 0,
double psi = 0,
double *center =
nullptr);
81void Regression(
int N,
const vector < double > &x,
const vector < double > &y,
const vector < double > &y_sdev,
82 double &A,
double &B,
double &A_sdev,
double &B_sdev,
double &chi2);
96void FindFitParameters(
int N,
const vector < double > &x,
const vector < double > &y,
const vector < double > &y_sdev,
97 double &A,
double &B);
110double CylVol(
double Radius,
double Height);
112double OnionRingVol(
double Radius_a,
double Radius_i,
double Height);
113double OnionRingVol(
double Radius_a,
double Radius_i,
double Height_a,
double Height_i);
string __macro_method_name__(string x)
this is for METHOD_NAME macro, extracting method name from PRETTY_FUNCTION
Definition MiscFunction.cxx:154
double CylVol(double Radius, double Height)
Definition MiscFunction.cxx:281
void FindFitParameters(int N, const vector< double > &x, const vector< double > &y, const vector< double > &y_sdev, double &A, double &B)
Find Slope and Intersept of fit.
Definition MiscFunction.cxx:239
void RotateVector(vector< double > &V, double phi, double theta=0, double psi=0)
Rotate a Vector clockwise. ??? why a shape member?
Definition MiscFunction.cxx:35
void RotatePoint(double *P, double phi, double theta=0, double psi=0, double *center=nullptr)
Rotate a Point clockwise.??? why a shape member?
Definition MiscFunction.cxx:68
double PS(vector< double > U, vector< double > V)
Scalar product of 3D vectors U and V.
Definition MiscFunction.cxx:110
void Regression(int N, const vector< double > &x, const vector< double > &y, const vector< double > &y_sdev, double &A, double &B, double &A_sdev, double &B_sdev, double &chi2)
Linear Regression function.
Definition MiscFunction.cxx:170
double OnionRingVol(double Radius_a, double Radius_i, double Height)
Definition MiscFunction.cxx:288
string wordwrap(string x, int w)
word-wrap a string
Definition MiscFunction.cxx:122
the namespace of the Standard C++