CLHEP VERSION Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

eulerTest.cc File Reference

#include "CLHEP/Vector/Rotation.h"
#include "CLHEP/Vector/EulerAngles.h"
#include "CLHEP/Units/PhysicalConstants.h"
#include <iostream>
#include <math.h>

Go to the source code of this file.

Functions

void perturb (int i, const HepRotation &r, HepRotation &rp, double &del)
bool compareR (const HepRotation &r1, const HepRotation &r2, double tol)
bool test (double phi, double theta, double psi)
int main ()

Variables

const int Nperturbs = 24


Function Documentation

bool compareR ( const HepRotation r1,
const HepRotation r2,
double  tol 
)

Definition at line 144 of file eulerTest.cc.

References CLHEP::HepRotation::rep3x3(), CLHEP::HepRep3x3::xx_, CLHEP::HepRep3x3::xy_, CLHEP::HepRep3x3::xz_, CLHEP::HepRep3x3::yx_, CLHEP::HepRep3x3::yy_, CLHEP::HepRep3x3::yz_, CLHEP::HepRep3x3::zx_, CLHEP::HepRep3x3::zy_, and CLHEP::HepRep3x3::zz_.

Referenced by test().

int main (  ) 

Definition at line 73 of file eulerTest.cc.

References n_element_type::test().

void perturb ( int  i,
const HepRotation r,
HepRotation rp,
double &  del 
)

Definition at line 165 of file eulerTest.cc.

References n_constructors::p0, CLHEP::HepRotation::rep3x3(), CLHEP::HepRotation::set(), CLHEP::HepRep3x3::xx_, CLHEP::HepRep3x3::xy_, CLHEP::HepRep3x3::xz_, CLHEP::HepRep3x3::yx_, CLHEP::HepRep3x3::yy_, CLHEP::HepRep3x3::yz_, CLHEP::HepRep3x3::zx_, CLHEP::HepRep3x3::zy_, and CLHEP::HepRep3x3::zz_.

Referenced by test().

bool test ( double  phi,
double  theta,
double  psi 
)

Definition at line 25 of file eulerTest.cc.

References compareR(), CLHEP::HepRotation::eulerAngles(), Nperturbs, perturb(), CLHEP::HepRotation::phi(), CLHEP::HepEulerAngles::phi(), CLHEP::HepRotation::psi(), CLHEP::HepRotation::set(), and CLHEP::HepRotation::theta().


Variable Documentation

const int Nperturbs = 24

Definition at line 20 of file eulerTest.cc.

Referenced by test().


Generated on 15 Nov 2012 for CLHEP by  doxygen 1.4.7