CMS 3D CMS Logo

Namespaces | Typedefs | Functions
fourvec.h File Reference

Define three-vector and four-vector classes for the HitFit package, and supply a few additional operations. More...

#include "CLHEP/Vector/LorentzVector.h"

Go to the source code of this file.

Namespaces

 hitfit
 

Typedefs

typedef CLHEP::HepLorentzVector hitfit::Fourvec
 Typedef for a HepLorentzVector. More...
 
typedef CLHEP::Hep3Vector hitfit::Threevec
 Typedef for a Hep3Vector. More...
 

Functions

void hitfit::adjust_e_for_mass (Fourvec &v, double mass)
 Adjust the energy component of four-vector v (leaving the three-vector part unchanged) so that the four-vector has mass as specified in the argument. More...
 
void hitfit::adjust_p_for_mass (Fourvec &v, double mass)
 Adjust the three-vector part of v, leaving the energy unchanged,. More...
 
double hitfit::delta_r (const Fourvec &a, const Fourvec &b)
 Find the distance between two four-vectors in the two-dimensional space $\eta-\phi$. More...
 
double hitfit::deteta (const Fourvec &v, double zvert)
 NOT USED ANYMORE: Get the detector $\eta$ (D0-specific), requires z-vertex. More...
 
double hitfit::eta_to_theta (double eta)
 Convert pseudorapidity to polar angle. More...
 
double hitfit::phidiff (double phi)
 Normalized difference in azimuthal angles to a range between $[-\pi \dot \pi]$. More...
 
void hitfit::roteta (Fourvec &v, double eta)
 Rotate four-vector v through a polar angle such that the four-vector pseudorapidity changes by a desired value. More...
 
void hitfit::rottheta (Fourvec &v, double theta)
 Rotate four-vector v through a polar angle. More...
 
double hitfit::theta_to_eta (double theta)
 Convert polar angle to pseudorapidity. More...
 

Detailed Description

Define three-vector and four-vector classes for the HitFit package, and supply a few additional operations.

This file defines the type Threevec and Fourvec to be used in HitFit. These classes are based on the corresponding CLHEP classes. This file also provides some other operations in addition to those that CLHEP has.

Author
Scott Stuart Snyder snyde.nosp@m.r@bn.nosp@m.l.gov
Creation date:
Jul 2000.
Modification History:
Apr 2009: Haryo Sumowidagdo Suhar.nosp@m.yo.S.nosp@m.umowi.nosp@m.dagd.nosp@m.o@cer.nosp@m.n.ch: Imported to CMSSW.
Nov 2009: Haryo Sumowidagdo Suhar.nosp@m.yo.S.nosp@m.umowi.nosp@m.dagd.nosp@m.o@cer.nosp@m.n.ch: Added Doxygen tags for automatic generation of documentation.
Terms of Usage:
With consent from the original author (Scott Snyder).

Definition in file fourvec.h.