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

testLorentzVector.cc File Reference

#include "CLHEP/Units/GlobalSystemOfUnits.h"
#include "CLHEP/Vector/defs.h"
#include "CLHEP/Vector/LorentzVector.h"
#include "CLHEP/Vector/LorentzRotation.h"
#include "CLHEP/Vector/Sqr.h"
#include <iostream>
#include <cmath>
#include <stdlib.h>
#include <assert.h>

Go to the source code of this file.

Defines

#define DEPS   1.0e-14
#define FEPS   1.0e-6

Functions

bool approx (double a, double b, double eps)
bool test (const HepLorentzVector &p, double x, double y, double z, double e, double eps)
void conversion_test (Hep3Vector &v3, HepLorentzVector &v4)
void conversion_test (const Hep3Vector &v3, const HepLorentzVector &v4)
bool test (const HepLorentzVector &p, const HepLorentzVector &q, double eps)
int main ()


Define Documentation

#define DEPS   1.0e-14

Definition at line 24 of file testLorentzVector.cc.

Referenced by main().

#define FEPS   1.0e-6

Definition at line 25 of file testLorentzVector.cc.

Referenced by main().


Function Documentation

bool approx ( double  a,
double  b,
double  eps 
)

Definition at line 27 of file testLorentzVector.cc.

Referenced by main(), test(), and test2().

void conversion_test ( const Hep3Vector v3,
const HepLorentzVector v4 
)

Definition at line 47 of file testLorentzVector.cc.

References CLHEP::HepLorentzVector::x(), CLHEP::Hep3Vector::x(), CLHEP::HepLorentzVector::y(), CLHEP::Hep3Vector::y(), CLHEP::HepLorentzVector::z(), and CLHEP::Hep3Vector::z().

void conversion_test ( Hep3Vector v3,
HepLorentzVector v4 
)

Definition at line 42 of file testLorentzVector.cc.

References CLHEP::HepLorentzVector::x(), CLHEP::Hep3Vector::x(), CLHEP::HepLorentzVector::y(), CLHEP::Hep3Vector::y(), CLHEP::HepLorentzVector::z(), and CLHEP::Hep3Vector::z().

Referenced by main().

int main (  ) 

Definition at line 62 of file testLorentzVector.cc.

References approx(), CLHEP::HepLorentzVector::boost(), conversion_test(), DEPS, exit, FEPS, CLHEP::HepRotation::inverse(), CLHEP::HepLorentzRotation::inverse(), CLHEP::HepLorentzRotation::invert(), CLHEP::Hep3Vector::mag(), CLHEP::HepLorentzVector::mag(), CLHEP::Hep3Vector::mag2(), CLHEP::HepLorentzVector::mag2(), CLHEP::HepLorentzVector::perp(), CLHEP::HepLorentzVector::perp2(), CLHEP::HepLorentzVector::phi(), CLHEP::HepLorentzRotation::rotateY(), CLHEP::HepLorentzVector::rotateY(), CLHEP::HepLorentzRotation::rotateZ(), CLHEP::HepRotation::rotateZ(), CLHEP::HepLorentzVector::rotateZ(), sqr(), n_element_type::test(), CLHEP::HepLorentzVector::theta(), CLHEP::HepLorentzRotation::transform(), CLHEP::HepLorentzVector::transform(), and CLHEP::HepLorentzVector::vect().

bool test ( const HepLorentzVector p,
const HepLorentzVector q,
double  eps 
)

Definition at line 52 of file testLorentzVector.cc.

References approx(), CLHEP::HepLorentzVector::t(), CLHEP::HepLorentzVector::x(), CLHEP::HepLorentzVector::y(), and CLHEP::HepLorentzVector::z().

bool test ( const HepLorentzVector p,
double  x,
double  y,
double  z,
double  e,
double  eps 
)

Definition at line 32 of file testLorentzVector.cc.

References approx(), CLHEP::HepLorentzVector::t(), CLHEP::HepLorentzVector::x(), CLHEP::HepLorentzVector::y(), and CLHEP::HepLorentzVector::z().


Generated on 15 Nov 2012 for CLHEP by  doxygen 1.4.7