CLHEP 2.4.7.1
C++ Class Library for High Energy Physics
|
#include <CLHEP/Vector/ThreeVector.h>
Public Types | |
enum | { X =0 , Y =1 , Z =2 , NUM_COORDINATES =3 , SIZE =NUM_COORDINATES } |
Public Member Functions | |
Hep3Vector () | |
Hep3Vector (double x) | |
Hep3Vector (double x, double y) | |
Hep3Vector (double x, double y, double z) | |
Hep3Vector (const Hep3Vector &) | |
Hep3Vector (Hep3Vector &&)=default | |
~Hep3Vector () | |
double | operator() (int) const |
double | operator[] (int) const |
double & | operator() (int) |
double & | operator[] (int) |
double | x () const |
double | y () const |
double | z () const |
void | setX (double) |
void | setY (double) |
void | setZ (double) |
void | set (double x, double y, double z) |
double | phi () const |
double | theta () const |
double | cosTheta () const |
double | cos2Theta () const |
double | mag2 () const |
double | mag () const |
void | setPhi (double) |
void | setTheta (double) |
void | setMag (double) |
double | perp2 () const |
double | perp () const |
void | setPerp (double) |
void | setCylTheta (double) |
double | perp2 (const Hep3Vector &) const |
double | perp (const Hep3Vector &) const |
Hep3Vector & | operator= (const Hep3Vector &) |
Hep3Vector & | operator= (Hep3Vector &&)=default |
bool | operator== (const Hep3Vector &) const |
bool | operator!= (const Hep3Vector &) const |
bool | isNear (const Hep3Vector &, double epsilon=tolerance) const |
double | howNear (const Hep3Vector &v) const |
double | deltaR (const Hep3Vector &v) const |
Hep3Vector & | operator+= (const Hep3Vector &) |
Hep3Vector & | operator-= (const Hep3Vector &) |
Hep3Vector | operator- () const |
Hep3Vector & | operator*= (double) |
Hep3Vector & | operator/= (double) |
Hep3Vector | unit () const |
Hep3Vector | orthogonal () const |
double | dot (const Hep3Vector &) const |
Hep3Vector | cross (const Hep3Vector &) const |
double | angle (const Hep3Vector &) const |
double | pseudoRapidity () const |
void | setEta (double p) |
void | setCylEta (double p) |
Hep3Vector & | rotateX (double) |
Hep3Vector & | rotateY (double) |
Hep3Vector & | rotateZ (double) |
Hep3Vector & | rotateUz (const Hep3Vector &) |
Hep3Vector & | rotate (double, const Hep3Vector &) |
Hep3Vector & | operator*= (const HepRotation &) |
Hep3Vector & | transform (const HepRotation &) |
void | setRThetaPhi (double r, double theta, double phi) |
void | setREtaPhi (double r, double eta, double phi) |
void | setRhoPhiZ (double rho, double phi, double z) |
void | setRhoPhiTheta (double rho, double phi, double theta) |
void | setRhoPhiEta (double rho, double phi, double eta) |
double | getX () const |
double | getY () const |
double | getZ () const |
double | getR () const |
double | getTheta () const |
double | getPhi () const |
double | r () const |
double | rho () const |
double | getRho () const |
double | eta () const |
double | getEta () const |
void | setR (double s) |
void | setRho (double s) |
int | compare (const Hep3Vector &v) const |
bool | operator> (const Hep3Vector &v) const |
bool | operator< (const Hep3Vector &v) const |
bool | operator>= (const Hep3Vector &v) const |
bool | operator<= (const Hep3Vector &v) const |
double | diff2 (const Hep3Vector &v) const |
bool | isParallel (const Hep3Vector &v, double epsilon=tolerance) const |
bool | isOrthogonal (const Hep3Vector &v, double epsilon=tolerance) const |
double | howParallel (const Hep3Vector &v) const |
double | howOrthogonal (const Hep3Vector &v) const |
double | beta () const |
double | gamma () const |
double | coLinearRapidity () const |
double | angle () const |
double | theta (const Hep3Vector &v2) const |
double | cosTheta (const Hep3Vector &v2) const |
double | cos2Theta (const Hep3Vector &v2) const |
Hep3Vector | project () const |
Hep3Vector | project (const Hep3Vector &v2) const |
Hep3Vector | perpPart () const |
Hep3Vector | perpPart (const Hep3Vector &v2) const |
double | rapidity () const |
double | rapidity (const Hep3Vector &v2) const |
double | eta (const Hep3Vector &v2) const |
double | polarAngle (const Hep3Vector &v2) const |
double | deltaPhi (const Hep3Vector &v2) const |
double | azimAngle (const Hep3Vector &v2) const |
double | polarAngle (const Hep3Vector &v2, const Hep3Vector &ref) const |
double | azimAngle (const Hep3Vector &v2, const Hep3Vector &ref) const |
Hep3Vector & | rotate (const Hep3Vector &axis, double delta) |
Hep3Vector & | rotate (const HepAxisAngle &ax) |
Hep3Vector & | rotate (const HepEulerAngles &e) |
Hep3Vector & | rotate (double phi, double theta, double psi) |
Static Public Member Functions | |
static double | setTolerance (double tol) |
static double | getTolerance () |
Static Public Attributes | |
static const int | ToleranceTicks = 100 |
Protected Member Functions | |
void | setSpherical (double r, double theta, double phi) |
void | setCylindrical (double r, double phi, double z) |
double | negativeInfinity () const |
Protected Attributes | |
double | data [3] |
Static Protected Attributes | |
static double | tolerance |
Definition at line 36 of file ThreeVector.h.
anonymous enum |
Enumerator | |
---|---|
X | |
Y | |
Z | |
NUM_COORDINATES | |
SIZE |
Definition at line 42 of file ThreeVector.h.
|
inline |
Definition at line 96 of file ThreeVector.icc.
References data.
Referenced by angle(), azimAngle(), azimAngle(), coLinearRapidity(), compare(), cos2Theta(), cosTheta(), cross(), deltaPhi(), deltaR(), diff2(), dot(), eta(), Hep3Vector(), Hep3Vector(), howNear(), howOrthogonal(), howParallel(), isNear(), isOrthogonal(), isParallel(), operator!=(), operator*=(), operator*=(), operator+=(), operator-(), operator-=(), operator/=(), operator<(), operator<=(), operator=(), operator=(), operator==(), operator>(), operator>=(), orthogonal(), perp(), perp2(), perpPart(), perpPart(), polarAngle(), polarAngle(), project(), project(), rapidity(), rotate(), rotate(), rotate(), rotate(), rotate(), rotateUz(), rotateX(), rotateY(), rotateZ(), setCylTheta(), theta(), transform(), and unit().
|
inlineexplicit |
Definition at line 98 of file ThreeVector.icc.
|
inline |
Definition at line 100 of file ThreeVector.icc.
|
inline |
|
inline |
Definition at line 105 of file ThreeVector.icc.
References data, Hep3Vector(), x(), y(), and z().
|
inlinedefault |
References Hep3Vector(), x(), y(), and z().
|
inline |
Definition at line 108 of file ThreeVector.icc.
|
inline |
|
inline |
Definition at line 264 of file ThreeVector.icc.
References cosTheta(), and Hep3Vector().
|
inline |
Definition at line 272 of file ThreeVector.icc.
References deltaPhi(), and Hep3Vector().
double CLHEP::Hep3Vector::azimAngle | ( | const Hep3Vector & | v2, |
const Hep3Vector & | ref ) const |
References Hep3Vector().
double CLHEP::Hep3Vector::beta | ( | ) | const |
double CLHEP::Hep3Vector::coLinearRapidity | ( | ) | const |
References Hep3Vector().
int CLHEP::Hep3Vector::compare | ( | const Hep3Vector & | v | ) | const |
References Hep3Vector().
|
inline |
Definition at line 142 of file ThreeVector.icc.
double CLHEP::Hep3Vector::cos2Theta | ( | const Hep3Vector & | v2 | ) | const |
References Hep3Vector().
|
inline |
double CLHEP::Hep3Vector::cosTheta | ( | const Hep3Vector & | v2 | ) | const |
References Hep3Vector().
|
inline |
Definition at line 239 of file ThreeVector.icc.
References Hep3Vector(), x(), y(), and z().
double CLHEP::Hep3Vector::deltaPhi | ( | const Hep3Vector & | v2 | ) | const |
References Hep3Vector().
Referenced by azimAngle().
double CLHEP::Hep3Vector::deltaR | ( | const Hep3Vector & | v | ) | const |
References Hep3Vector().
|
inline |
Definition at line 231 of file ThreeVector.icc.
References Hep3Vector(), and mag2().
|
inline |
Definition at line 235 of file ThreeVector.icc.
References Hep3Vector(), x(), y(), and z().
Referenced by CLHEP::operator*(), and perp2().
|
inline |
Definition at line 168 of file ThreeVector.icc.
References pseudoRapidity().
Referenced by setRhoPhiEta(), and transform().
double CLHEP::Hep3Vector::eta | ( | const Hep3Vector & | v2 | ) | const |
References Hep3Vector().
double CLHEP::Hep3Vector::gamma | ( | ) | const |
|
inline |
Definition at line 171 of file ThreeVector.icc.
References pseudoRapidity().
|
inline |
Definition at line 134 of file ThreeVector.icc.
References phi().
|
inline |
Definition at line 132 of file ThreeVector.icc.
References mag().
|
inline |
Definition at line 170 of file ThreeVector.icc.
References perp().
|
inline |
Definition at line 133 of file ThreeVector.icc.
References theta().
|
inlinestatic |
Definition at line 194 of file ThreeVector.icc.
References tolerance.
|
inline |
Definition at line 27 of file ThreeVector.icc.
References X.
|
inline |
Definition at line 28 of file ThreeVector.icc.
References Y.
|
inline |
Definition at line 29 of file ThreeVector.icc.
References Z.
double CLHEP::Hep3Vector::howNear | ( | const Hep3Vector & | v | ) | const |
References Hep3Vector().
double CLHEP::Hep3Vector::howOrthogonal | ( | const Hep3Vector & | v | ) | const |
References Hep3Vector().
double CLHEP::Hep3Vector::howParallel | ( | const Hep3Vector & | v | ) | const |
References Hep3Vector().
bool CLHEP::Hep3Vector::isNear | ( | const Hep3Vector & | , |
double | epsilon = tolerance ) const |
References Hep3Vector(), and tolerance.
bool CLHEP::Hep3Vector::isOrthogonal | ( | const Hep3Vector & | v, |
double | epsilon = tolerance ) const |
References Hep3Vector(), and tolerance.
bool CLHEP::Hep3Vector::isParallel | ( | const Hep3Vector & | v, |
double | epsilon = tolerance ) const |
References Hep3Vector(), and tolerance.
|
inline |
Definition at line 122 of file ThreeVector.icc.
References mag2().
Referenced by cosTheta(), getR(), CLHEP::HepBoost::HepBoost(), r(), and setTheta().
|
inline |
Definition at line 121 of file ThreeVector.icc.
Referenced by cos2Theta(), diff2(), mag(), perp2(), and unit().
|
protected |
|
inline |
Definition at line 190 of file ThreeVector.icc.
References Hep3Vector(), x(), y(), and z().
|
inline |
Definition at line 45 of file ThreeVector.icc.
References data.
|
inline |
Definition at line 41 of file ThreeVector.icc.
References data.
Hep3Vector & CLHEP::Hep3Vector::operator*= | ( | const HepRotation & | ) |
References Hep3Vector().
|
inline |
Definition at line 220 of file ThreeVector.icc.
References Hep3Vector(), X, Y, and Z.
|
inline |
Definition at line 202 of file ThreeVector.icc.
|
inline |
Definition at line 216 of file ThreeVector.icc.
References Hep3Vector(), x(), y(), and z().
|
inline |
Definition at line 209 of file ThreeVector.icc.
Hep3Vector & CLHEP::Hep3Vector::operator/= | ( | double | ) |
References Hep3Vector().
bool CLHEP::Hep3Vector::operator< | ( | const Hep3Vector & | v | ) | const |
References Hep3Vector().
bool CLHEP::Hep3Vector::operator<= | ( | const Hep3Vector & | v | ) | const |
References Hep3Vector().
|
inline |
Definition at line 110 of file ThreeVector.icc.
References Hep3Vector(), set(), x(), y(), and z().
|
inlinedefault |
References Hep3Vector().
|
inline |
Definition at line 186 of file ThreeVector.icc.
References Hep3Vector(), x(), y(), and z().
bool CLHEP::Hep3Vector::operator> | ( | const Hep3Vector & | v | ) | const |
References Hep3Vector().
bool CLHEP::Hep3Vector::operator>= | ( | const Hep3Vector & | v | ) | const |
References Hep3Vector().
|
inline |
Definition at line 20 of file ThreeVector.icc.
References data.
|
inline |
Definition at line 21 of file ThreeVector.icc.
References data.
|
inline |
Definition at line 286 of file ThreeVector.icc.
References Hep3Vector(), x(), y(), and z().
|
inline |
|
inline |
Definition at line 249 of file ThreeVector.icc.
References Hep3Vector(), and perp2().
|
inline |
|
inline |
Definition at line 243 of file ThreeVector.icc.
References dot(), Hep3Vector(), and mag2().
|
inline |
Definition at line 253 of file ThreeVector.icc.
References Hep3Vector(), x(), and y().
|
inline |
Definition at line 260 of file ThreeVector.icc.
References Hep3Vector(), and project().
|
inline |
Definition at line 128 of file ThreeVector.icc.
Referenced by getPhi(), rotate(), setCylindrical(), setRhoPhiEta(), setRhoPhiTheta(), setSpherical(), setTheta(), and transform().
double CLHEP::Hep3Vector::polarAngle | ( | const Hep3Vector & | v2 | ) | const |
References Hep3Vector().
double CLHEP::Hep3Vector::polarAngle | ( | const Hep3Vector & | v2, |
const Hep3Vector & | ref ) const |
References Hep3Vector().
|
inline |
Definition at line 256 of file ThreeVector.icc.
References Hep3Vector(), and z().
Referenced by perpPart().
Hep3Vector CLHEP::Hep3Vector::project | ( | const Hep3Vector & | v2 | ) | const |
References Hep3Vector().
|
inline |
Definition at line 123 of file ThreeVector.icc.
References mag().
Referenced by setCylindrical(), setSpherical(), and transform().
double CLHEP::Hep3Vector::rapidity | ( | ) | const |
double CLHEP::Hep3Vector::rapidity | ( | const Hep3Vector & | v2 | ) | const |
References Hep3Vector().
|
inline |
Definition at line 167 of file ThreeVector.icc.
References perp().
Referenced by setRhoPhiEta(), setRhoPhiTheta(), and transform().
Hep3Vector & CLHEP::Hep3Vector::rotate | ( | const Hep3Vector & | axis, |
double | delta ) |
References Hep3Vector().
Hep3Vector & CLHEP::Hep3Vector::rotate | ( | const HepAxisAngle & | ax | ) |
References Hep3Vector().
Hep3Vector & CLHEP::Hep3Vector::rotate | ( | const HepEulerAngles & | e | ) |
References Hep3Vector().
Hep3Vector & CLHEP::Hep3Vector::rotate | ( | double | phi, |
double | theta, | ||
double | psi ) |
References Hep3Vector(), phi(), and theta().
Hep3Vector & CLHEP::Hep3Vector::rotate | ( | double | , |
const Hep3Vector & | ) |
References Hep3Vector().
Hep3Vector & CLHEP::Hep3Vector::rotateUz | ( | const Hep3Vector & | ) |
References Hep3Vector().
Hep3Vector & CLHEP::Hep3Vector::rotateX | ( | double | ) |
References Hep3Vector().
Hep3Vector & CLHEP::Hep3Vector::rotateY | ( | double | ) |
References Hep3Vector().
Hep3Vector & CLHEP::Hep3Vector::rotateZ | ( | double | ) |
References Hep3Vector().
|
inline |
Definition at line 35 of file ThreeVector.icc.
References X, x(), Y, y(), Z, and z().
Referenced by operator=(), and CLHEP::HepLorentzVector::setV().
void CLHEP::Hep3Vector::setCylEta | ( | double | p | ) |
|
protected |
References phi(), r(), and z().
Referenced by setRhoPhiZ().
void CLHEP::Hep3Vector::setCylTheta | ( | double | ) |
References Hep3Vector().
void CLHEP::Hep3Vector::setEta | ( | double | p | ) |
void CLHEP::Hep3Vector::setMag | ( | double | ) |
Referenced by setR().
|
inline |
|
inline |
Definition at line 157 of file ThreeVector.icc.
|
inline |
Definition at line 147 of file ThreeVector.icc.
References setMag().
|
inline |
Definition at line 82 of file ThreeVector.icc.
References setSpherical().
|
inline |
Definition at line 180 of file ThreeVector.icc.
References setPerp().
void CLHEP::Hep3Vector::setRhoPhiEta | ( | double | rho, |
double | phi, | ||
double | eta ) |
void CLHEP::Hep3Vector::setRhoPhiTheta | ( | double | rho, |
double | phi, | ||
double | theta ) |
|
inline |
Definition at line 87 of file ThreeVector.icc.
References setCylindrical().
|
inline |
Definition at line 77 of file ThreeVector.icc.
References setSpherical().
|
protected |
References phi(), r(), and theta().
Referenced by setREtaPhi(), and setRThetaPhi().
|
inline |
|
static |
|
inline |
Definition at line 31 of file ThreeVector.icc.
Referenced by setPhi(), setTheta(), and CLHEP::HepLorentzVector::setX().
|
inline |
Definition at line 32 of file ThreeVector.icc.
Referenced by setPhi(), and setTheta().
|
inline |
|
inline |
Definition at line 125 of file ThreeVector.icc.
References perp(), x(), y(), and z().
Referenced by angle(), getTheta(), rotate(), setRhoPhiTheta(), setSpherical(), CLHEP::HepLorentzVector::theta(), and transform().
|
inline |
Definition at line 268 of file ThreeVector.icc.
References angle(), and Hep3Vector().
Hep3Vector & CLHEP::Hep3Vector::transform | ( | const HepRotation & | ) |
|
inline |
Definition at line 280 of file ThreeVector.icc.
References Hep3Vector(), mag2(), x(), y(), and z().
Referenced by CLHEP::HepLorentzVector::et2(), CLHEP::HepAxisAngle::set(), and CLHEP::HepAxisAngle::setAxis().
|
inline |
Definition at line 23 of file ThreeVector.icc.
References X.
Referenced by CLHEP::HepLorentzVector::boost(), cross(), dot(), CLHEP::HepLorentzVector::getX(), Hep3Vector(), Hep3Vector(), Hep3Vector(), Hep3Vector(), Hep3Vector(), CLHEP::HepBoost::HepBoost(), CLHEP::HepBoost::HepBoost(), CLHEP::HepLorentzRotation::HepLorentzRotation(), mag2(), operator!=(), CLHEP::HepRotation::operator()(), CLHEP::HepRotationX::operator()(), CLHEP::HepRotationY::operator()(), CLHEP::HepRotationZ::operator()(), CLHEP::HepRotation::operator*(), CLHEP::operator*(), CLHEP::operator*(), CLHEP::operator+(), operator+=(), operator-(), CLHEP::operator-(), operator-=(), operator=(), operator==(), orthogonal(), perp2(), perpPart(), phi(), set(), CLHEP::HepLorentzRotation::set(), setX(), theta(), HepGeom::Transform3D::Transform3D(), and unit().
|
inline |
Definition at line 24 of file ThreeVector.icc.
References Y.
Referenced by CLHEP::HepLorentzVector::boost(), cross(), dot(), Hep3Vector(), Hep3Vector(), Hep3Vector(), Hep3Vector(), CLHEP::HepBoost::HepBoost(), CLHEP::HepBoost::HepBoost(), CLHEP::HepLorentzRotation::HepLorentzRotation(), mag2(), operator!=(), CLHEP::HepRotation::operator()(), CLHEP::HepRotationX::operator()(), CLHEP::HepRotationY::operator()(), CLHEP::HepRotationZ::operator()(), CLHEP::HepRotation::operator*(), CLHEP::operator*(), CLHEP::operator*(), CLHEP::operator+(), operator+=(), operator-(), CLHEP::operator-(), operator-=(), operator=(), operator==(), orthogonal(), perp2(), perpPart(), phi(), set(), CLHEP::HepLorentzRotation::set(), setY(), theta(), HepGeom::Transform3D::Transform3D(), and unit().
|
inline |
Definition at line 25 of file ThreeVector.icc.
References Z.
Referenced by CLHEP::HepLorentzVector::boost(), cos2Theta(), cosTheta(), cross(), dot(), Hep3Vector(), Hep3Vector(), Hep3Vector(), CLHEP::HepBoost::HepBoost(), CLHEP::HepBoost::HepBoost(), CLHEP::HepLorentzRotation::HepLorentzRotation(), mag2(), operator!=(), CLHEP::HepRotation::operator()(), CLHEP::HepRotationX::operator()(), CLHEP::HepRotationY::operator()(), CLHEP::HepRotationZ::operator()(), CLHEP::HepRotation::operator*(), CLHEP::operator*(), CLHEP::operator*(), CLHEP::operator+(), operator+=(), operator-(), CLHEP::operator-(), operator-=(), operator=(), operator==(), orthogonal(), project(), set(), CLHEP::HepLorentzRotation::set(), setCylindrical(), setZ(), theta(), transform(), HepGeom::Transform3D::Transform3D(), and unit().
|
protected |
Definition at line 391 of file ThreeVector.h.
Referenced by Hep3Vector(), Hep3Vector(), Hep3Vector(), Hep3Vector(), Hep3Vector(), operator()(), operator()(), operator[](), and operator[]().
|
staticprotected |
Definition at line 394 of file ThreeVector.h.
Referenced by getTolerance(), isNear(), isOrthogonal(), and isParallel().
|
static |
Definition at line 295 of file ThreeVector.h.