ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HepGeom::Vector3D< double > Class Template Reference

#include <geant4/tree/geant4-10.6-release/source/externals/clhep/include/CLHEP/Geometry/Vector3D.h>

+ Inheritance diagram for HepGeom::Vector3D< double >:
+ Collaboration diagram for HepGeom::Vector3D< double >:

Public Member Functions

 Vector3D ()=default
 
 Vector3D (double x1, double y1, double z1)
 
 Vector3D (const float *a)
 
 Vector3D (const double *a)
 
 Vector3D (const Vector3D< double > &)=default
 
 Vector3D (Vector3D< double > &&)=default
 
 Vector3D (const BasicVector3D< float > &v)
 
 Vector3D (const BasicVector3D< double > &v)
 
 ~Vector3D ()=default
 
 Vector3D (const CLHEP::Hep3Vector &v)
 
 operator CLHEP::Hep3Vector () const
 
Vector3D< double > & operator= (const Vector3D< double > &)=default
 
Vector3D< double > & operator= (const BasicVector3D< float > &v)
 
Vector3D< double > & operator= (const BasicVector3D< double > &v)
 
Vector3D< double > & operator= (Vector3D< double > &&)=default
 
Vector3D< double > & transform (const Transform3D &m)
 
- Public Member Functions inherited from HepGeom::BasicVector3D< double >
 BasicVector3D (doublex1, doubley1, doublez1)
 
 BasicVector3D (const BasicVector3D< double > &)=default
 
 BasicVector3D (const BasicVector3D< float > &v)
 
 BasicVector3D (BasicVector3D< double > &&)=default
 
virtual ~BasicVector3D ()=default
 
 operator double * ()
 
 operator const double * () const
 
 operator CLHEP::Hep3Vector () const
 
BasicVector3D< double > & operator= (const BasicVector3D< double > &)=default
 
BasicVector3D< double > & operator= (BasicVector3D< double > &&)=default
 
BasicVector3D< double > & operator+= (const BasicVector3D< double > &v)
 
BasicVector3D< double > & operator-= (const BasicVector3D< double > &v)
 
BasicVector3D< double > & operator*= (double a)
 
BasicVector3D< double > & operator/= (double a)
 
double operator() (int i) const
 
double & operator() (int i)
 
double operator[] (int i) const
 
double & operator[] (int i)
 
double x () const
 
double y () const
 
double z () const
 
void setX (doublea)
 
void setY (doublea)
 
void setZ (doublea)
 
void set (doublex1, doubley1, doublez1)
 
double perp2 () const
 
double perp2 (const BasicVector3D< double > &v) const
 
double perp () const
 
double perp (const BasicVector3D< double > &v) const
 
double rho () const
 
void setPerp (doublerh)
 
double mag2 () const
 
double mag () const
 
double r () const
 
double phi () const
 
double theta () const
 
double cosTheta () const
 
double getR () const
 
double getPhi () const
 
double getTheta () const
 
void setMag (doublema)
 
void setR (doublema)
 
void setPhi (doubleph)
 
void setTheta (doubleth)
 
double pseudoRapidity () const
 
double eta () const
 
double getEta () const
 
void setEta (doublea)
 
double dot (const BasicVector3D< double > &v) const
 
BasicVector3D< double > cross (const BasicVector3D< double > &v) const
 
double angle (const BasicVector3D< double > &v) const
 
BasicVector3D< double > unit () const
 
BasicVector3D< double > orthogonal () const
 
BasicVector3D< double > & rotateX (doublea)
 
BasicVector3D< double > & rotateY (doublea)
 
BasicVector3D< double > & rotateZ (doublea)
 
BasicVector3D< double > & rotate (doublea, const BasicVector3D< double > &v)
 

Additional Inherited Members

- Public Types inherited from HepGeom::BasicVector3D< double >
enum  
 
- Protected Member Functions inherited from HepGeom::BasicVector3D< double >
 BasicVector3D ()
 
- Protected Attributes inherited from HepGeom::BasicVector3D< double >
double v_ [3]
 

Detailed Description

template<>
class HepGeom::Vector3D< double >

Geometrical 3D Vector with components of double type.

Author
Evgeni Chernyaev Evgue.nosp@m.ni.T.nosp@m.chern.nosp@m.iaev.nosp@m.@cern.nosp@m..ch

Definition at line 107 of file Vector3D.h.

View newest version in sPHENIX GitHub at line 107 of file Vector3D.h

Constructor & Destructor Documentation

HepGeom::Vector3D< double >::Vector3D ( )
default

Default constructor.

HepGeom::Vector3D< double >::Vector3D ( double  x1,
double  y1,
double  z1 
)
inline

Constructor from three numbers.

Definition at line 115 of file Vector3D.h.

View newest version in sPHENIX GitHub at line 115 of file Vector3D.h

HepGeom::Vector3D< double >::Vector3D ( const float *  a)
inlineexplicit

Constructor from array of floats.

Definition at line 119 of file Vector3D.h.

View newest version in sPHENIX GitHub at line 119 of file Vector3D.h

HepGeom::Vector3D< double >::Vector3D ( const double *  a)
inlineexplicit

Constructor from array of doubles.

Definition at line 124 of file Vector3D.h.

View newest version in sPHENIX GitHub at line 124 of file Vector3D.h

HepGeom::Vector3D< double >::Vector3D ( const Vector3D< double > &  )
default

Copy constructor.

HepGeom::Vector3D< double >::Vector3D ( Vector3D< double > &&  )
default

Move constructor.

HepGeom::Vector3D< double >::Vector3D ( const BasicVector3D< float > &  v)
inline

Constructor from BasicVector3D<float>.

Definition at line 137 of file Vector3D.h.

View newest version in sPHENIX GitHub at line 137 of file Vector3D.h

HepGeom::Vector3D< double >::Vector3D ( const BasicVector3D< double > &  v)
inline

Constructor from BasicVector3D<double>.

Definition at line 141 of file Vector3D.h.

View newest version in sPHENIX GitHub at line 141 of file Vector3D.h

HepGeom::Vector3D< double >::~Vector3D ( )
default

Destructor.

HepGeom::Vector3D< double >::Vector3D ( const CLHEP::Hep3Vector v)
inline

Constructor from CLHEP::Hep3Vector. This constructor is needed only for backward compatibility and in principle should be absent.

Definition at line 152 of file Vector3D.h.

View newest version in sPHENIX GitHub at line 152 of file Vector3D.h

Member Function Documentation

HepGeom::Vector3D< double >::operator CLHEP::Hep3Vector ( ) const
inline

Conversion (cast) to CLHEP::Hep3Vector. This operator is needed only for backward compatibility and in principle should not exit.

Definition at line 160 of file Vector3D.h.

View newest version in sPHENIX GitHub at line 160 of file Vector3D.h

References HepGeom::BasicVector3D< T >::x(), HepGeom::BasicVector3D< T >::y(), and HepGeom::BasicVector3D< T >::z().

+ Here is the call graph for this function:

Vector3D<double>& HepGeom::Vector3D< double >::operator= ( const Vector3D< double > &  )
default

Assignment.

Vector3D<double>& HepGeom::Vector3D< double >::operator= ( const BasicVector3D< float > &  v)
inline

Assignment from BasicVector3D<float>.

Definition at line 168 of file Vector3D.h.

View newest version in sPHENIX GitHub at line 168 of file Vector3D.h

References HepGeom::BasicVector3D< T >::operator=().

+ Here is the call graph for this function:

Vector3D<double>& HepGeom::Vector3D< double >::operator= ( const BasicVector3D< double > &  v)
inline

Assignment from BasicVector3D<double>.

Definition at line 175 of file Vector3D.h.

View newest version in sPHENIX GitHub at line 175 of file Vector3D.h

References HepGeom::BasicVector3D< T >::operator=().

+ Here is the call graph for this function:

Vector3D<double>& HepGeom::Vector3D< double >::operator= ( Vector3D< double > &&  )
default

Move assignment.

Vector3D< double > & HepGeom::Vector3D< double >::transform ( const Transform3D m)

Transformation by Transform3D.

Definition at line 30 of file Vector3D.cc.

View newest version in sPHENIX GitHub at line 30 of file Vector3D.cc

References HepGeom::BasicVector3D< T >::x(), HepGeom::Transform3D::xx(), HepGeom::Transform3D::xy(), HepGeom::Transform3D::xz(), HepGeom::BasicVector3D< T >::y(), HepGeom::Transform3D::yx(), HepGeom::Transform3D::yy(), HepGeom::Transform3D::yz(), HepGeom::BasicVector3D< T >::z(), HepGeom::Transform3D::zx(), HepGeom::Transform3D::zy(), and HepGeom::Transform3D::zz().

+ Here is the call graph for this function:


The documentation for this class was generated from the following files: