Logo ROOT   6.08/07
Reference Guide
Enumerations | Functions | Variables
rotationApplication.cxx File Reference
#include "Math/GenVector/DisplacementVector3D.h"
#include "Math/GenVector/PositionVector3D.h"
#include "Math/GenVector/Cartesian3D.h"
#include "Math/GenVector/Polar3D.h"
#include "Math/GenVector/CylindricalEta3D.h"
#include "Math/GenVector/LorentzVector.h"
#include "Math/GenVector/Rotation3D.h"
#include "Math/GenVector/AxisAngle.h"
#include "Math/GenVector/EulerAngles.h"
#include "Math/GenVector/Quaternion.h"
#include "Math/GenVector/RotationZYX.h"
#include "Math/GenVector/RotationX.h"
#include "Math/GenVector/RotationY.h"
#include "Math/GenVector/RotationZ.h"
#include "Math/GenVector/VectorUtil.h"
#include "Math/Vector3Dfwd.h"
#include "CoordinateTraits.h"
#include "RotationTraits.h"
#include <iostream>
#include <limits>
#include <cmath>
#include <vector>
Include dependency graph for rotationApplication.cxx:

Enumerations

enum  XYZ { X, Y, Z }
 

Functions

XYZVector ans (TestRotation const &t, XYZVector const &v_in)
 
template<typename Scalar1 , typename Scalar2 >
int closeEnough (Scalar1 s1, Scalar2 s2, std::string const &coord, double ticks)
 
template<class V1 , class V2 >
int compare3D (const V1 &v1, const V2 &v2, double ticks)
 
double correctTicks (double ticks, double z, double r)
 
template<class R , class V >
int doTest (TestRotation const &testRotation, XYZVector const &testVector, double ticks)
 
template<class R , class V >
int doTestA (XYZVector const &testVector, double ticks)
 
template<class R , class C >
int doTestL (TestRotation const &testRotation, XYZVector const &testVector, double ticks)
 
template<class R , class C >
int doTestLA (XYZVector const &testVector, double ticks)
 
template<class R >
int doTestOfAxial (XYZVector const &testVector)
 
template<class R >
int doTestOfR (TestRotation const &testRotation, XYZVector const &testVector)
 
int exerciseAxialTest (XYZVector const &testVector)
 
int exerciseTestCase (TestRotation const &testRotation, XYZVector const &testVector)
 
int main ()
 
std::vector< TestRotation > makeTestRotations ()
 
std::vector< XYZVectormakeTestVectors ()
 
std::ostream & operator<< (std::ostream &os, const ForeignVector &v)
 
int rotationApplication (bool forceRun=false)
 
Rotation3D rrr (TestRotation const &t)
 
XYZVector rxv (double phi, XYZVector v)
 
XYZVector ryv (double phi, XYZVector v)
 
XYZVector rzv (double phi, XYZVector v)
 
template<class R , class V >
int testApplication (const R &r, const V &v, const XYZVector &answer, double t)
 

Variables

const double machEpsilon = pow (2.0, -52.0)
 
const double pi = 3.1415926535897932385
 

Enumeration Type Documentation

◆ XYZ

enum XYZ
Enumerator

Definition at line 230 of file rotationApplication.cxx.

Function Documentation

◆ ans()

XYZVector ans ( TestRotation const &  t,
XYZVector const &  v_in 
)

Definition at line 264 of file rotationApplication.cxx.

◆ closeEnough()

template<typename Scalar1 , typename Scalar2 >
int closeEnough ( Scalar1  s1,
Scalar2  s2,
std::string const &  coord,
double  ticks 
)

Definition at line 78 of file rotationApplication.cxx.

◆ compare3D()

template<class V1 , class V2 >
int compare3D ( const V1 &  v1,
const V2 &  v2,
double  ticks 
)

Definition at line 102 of file rotationApplication.cxx.

◆ correctTicks()

double correctTicks ( double  ticks,
double  z,
double  r 
)

Definition at line 130 of file rotationApplication.cxx.

◆ doTest()

template<class R , class V >
int doTest ( TestRotation const &  testRotation,
XYZVector const &  testVector,
double  ticks 
)

Definition at line 395 of file rotationApplication.cxx.

◆ doTestA()

template<class R , class V >
int doTestA ( XYZVector const &  testVector,
double  ticks 
)

Definition at line 547 of file rotationApplication.cxx.

◆ doTestL()

template<class R , class C >
int doTestL ( TestRotation const &  testRotation,
XYZVector const &  testVector,
double  ticks 
)

Definition at line 415 of file rotationApplication.cxx.

◆ doTestLA()

template<class R , class C >
int doTestLA ( XYZVector const &  testVector,
double  ticks 
)

Definition at line 573 of file rotationApplication.cxx.

◆ doTestOfAxial()

template<class R >
int doTestOfAxial ( XYZVector const &  testVector)

Definition at line 606 of file rotationApplication.cxx.

◆ doTestOfR()

template<class R >
int doTestOfR ( TestRotation const &  testRotation,
XYZVector const &  testVector 
)

Definition at line 457 of file rotationApplication.cxx.

◆ exerciseAxialTest()

int exerciseAxialTest ( XYZVector const &  testVector)

Definition at line 659 of file rotationApplication.cxx.

◆ exerciseTestCase()

int exerciseTestCase ( TestRotation const &  testRotation,
XYZVector const &  testVector 
)

Definition at line 515 of file rotationApplication.cxx.

◆ main()

int main ( )

Definition at line 724 of file rotationApplication.cxx.

◆ makeTestRotations()

std::vector<TestRotation> makeTestRotations ( )

Definition at line 285 of file rotationApplication.cxx.

◆ makeTestVectors()

std::vector<XYZVector> makeTestVectors ( )

Definition at line 372 of file rotationApplication.cxx.

◆ operator<<()

std::ostream& operator<< ( std::ostream &  os,
const ForeignVector &  v 
)

Definition at line 451 of file rotationApplication.cxx.

◆ rotationApplication()

int rotationApplication ( bool  forceRun = false)

Definition at line 692 of file rotationApplication.cxx.

◆ rrr()

Rotation3D rrr ( TestRotation const &  t)

Definition at line 240 of file rotationApplication.cxx.

◆ rxv()

XYZVector rxv ( double  phi,
XYZVector  v 
)

Definition at line 212 of file rotationApplication.cxx.

◆ ryv()

XYZVector ryv ( double  phi,
XYZVector  v 
)

Definition at line 218 of file rotationApplication.cxx.

◆ rzv()

XYZVector rzv ( double  phi,
XYZVector  v 
)

Definition at line 224 of file rotationApplication.cxx.

◆ testApplication()

template<class R , class V >
int testApplication ( const R r,
const V &  v,
const XYZVector answer,
double  t 
)

Definition at line 159 of file rotationApplication.cxx.

Variable Documentation

◆ machEpsilon

const double machEpsilon = pow (2.0, -52.0)

Definition at line 74 of file rotationApplication.cxx.

◆ pi

const double pi = 3.1415926535897932385

Definition at line 282 of file rotationApplication.cxx.