![]() |
DD4hep
1.33.0
Detector Description Toolkit for High Energy Physics
|
#include <Vector3D.h>
Classes | |
| struct | Cartesian |
| struct | Cylindrical |
| struct | Spherical |
Public Member Functions | |
| Vector3D () | |
| Vector3D (const Vector3D &v) | |
| Vector3D (const float *v) | |
| Vector3D (const double *v) | |
| template<class T > | |
| Vector3D (double x, double y, double z, T(&)()) | |
| Vector3D (double x_val, double y_val, double z_val) | |
| Vector3D & | operator= (const Vector3D &v) |
| template<class T > | |
| const Vector3D & | fill (const T &v) |
| fill vector from arbitrary class that defines operator[] More... | |
| const Vector3D & | fill (const double *v) |
| fill vector from double array More... | |
| const Vector3D & | fill (double x_val, double y_val, double z_val) |
| fill from double values More... | |
| double | x () const |
| double | y () const |
| double | z () const |
| double & | x () |
| double & | y () |
| double & | z () |
| double | operator[] (int i) const |
| double & | operator[] (int i) |
| double | phi () const |
| double | rho () const |
| double | trans () const |
| double | trans2 () const |
| double | r () const |
| double | r2 () const |
| double | theta () const |
| double | dot (const Vector3D &v) const |
| Vector3D | cross (const Vector3D &v) const |
| Vector3D | unit () const |
| operator const double * () const | |
| direct access to data as const double* More... | |
| const double * | const_array () const |
| direct access to data as const double* More... | |
| double * | array () |
| direct access to data as double* - allows modification More... | |
| bool | isEqual (const Vector3D &b, double epsilon=1e-6) |
| template<class T > | |
| T | to () const |
Static Public Member Functions | |
| static Cartesian | cartesian () |
| static Cylindrical | cylindrical () |
| static Spherical | spherical () |
Protected Attributes | |
| double | _x |
| double | _y |
| double | _z |
Simple three dimensional vector providing the components for cartesian, cylindrical and spherical coordinate systems - internal reperesentation is cartesian. (copy of original version from gear).
Definition at line 32 of file Vector3D.h.
|
inline |
Default c'tor - zero vector
Definition at line 37 of file Vector3D.h.
|
inline |
Copy constructor
Definition at line 41 of file Vector3D.h.
|
inline |
Constructor for float array.
Definition at line 44 of file Vector3D.h.
|
inline |
Constructor for double array.
Definition at line 47 of file Vector3D.h.
| dd4hep::rec::Vector3D::Vector3D | ( | double | x, |
| double | y, | ||
| double | z, | ||
| T(&)() | |||
| ) |
Templated c'tor - allows to have overloaded c'tors for different coordinates
|
inline |
Default corrdinate system for initialization is cartesian
Definition at line 56 of file Vector3D.h.
|
inline |
direct access to data as double* - allows modification
Definition at line 216 of file Vector3D.h.
|
inlinestatic |
Definition at line 277 of file Vector3D.h.
|
inline |
direct access to data as const double*
Definition at line 211 of file Vector3D.h.
Vector product
Definition at line 191 of file Vector3D.h.
|
inlinestatic |
Definition at line 278 of file Vector3D.h.
|
inline |
Scalar product
Definition at line 185 of file Vector3D.h.
|
inline |
fill vector from double array
Definition at line 89 of file Vector3D.h.
|
inline |
fill vector from arbitrary class that defines operator[]
Definition at line 82 of file Vector3D.h.
|
inline |
fill from double values
Definition at line 96 of file Vector3D.h.
|
inline |
Component wise comparison of two vectors - true if all components differ less than epsilon
Definition at line 222 of file Vector3D.h.
|
inline |
direct access to data as const double*
Definition at line 207 of file Vector3D.h.
Definition at line 73 of file Vector3D.h.
|
inline |
Accessing x,y,z with bracket operator for assignment
Definition at line 131 of file Vector3D.h.
|
inline |
Accessing x,y,z with bracket operator
Definition at line 122 of file Vector3D.h.
|
inline |
Azimuthal angle - cylindrical and spherical
Definition at line 142 of file Vector3D.h.
|
inline |
Spherical r/magnitude
Definition at line 166 of file Vector3D.h.
|
inline |
Spherical r/magnitude, squared
Definition at line 173 of file Vector3D.h.
|
inline |
Transversal component - cylindrical 'r'
Definition at line 148 of file Vector3D.h.
|
inlinestatic |
Definition at line 279 of file Vector3D.h.
|
inline |
Polar angle - spherical
Definition at line 179 of file Vector3D.h.
|
inline |
Explicit, unchecked conversion to anything that has a c'tor T(x,y,z). Example: CLHEP::Vector3D clhv = v.to< CLHEP::Vector3D>() ;
Definition at line 261 of file Vector3D.h.
|
inline |
Transversal component
Definition at line 154 of file Vector3D.h.
|
inline |
Transversal component squared
Definition at line 160 of file Vector3D.h.
|
inline |
Parallel unit vector
Definition at line 199 of file Vector3D.h.
|
inline |
Assign to cartesian x coordinate
Definition at line 112 of file Vector3D.h.
|
inline |
Cartesian x coordinate
Definition at line 103 of file Vector3D.h.
|
inline |
Assign to cartesian y coordinate
Definition at line 115 of file Vector3D.h.
|
inline |
Cartesian y coordinate
Definition at line 106 of file Vector3D.h.
|
inline |
Assign to cartesian z coordinate
Definition at line 118 of file Vector3D.h.
|
inline |
Cartesian cartesian z coordinate
Definition at line 109 of file Vector3D.h.
|
protected |
Definition at line 266 of file Vector3D.h.
|
protected |
Definition at line 266 of file Vector3D.h.
|
protected |
Definition at line 266 of file Vector3D.h.
1.8.18