DD4hep  1.28.0
Detector Description Toolkit for High Energy Physics
Public Member Functions | Public Attributes | List of all members
dd4hep::DDSegmentation::Vector3D Struct Reference

Simple container for a physics vector. More...

#include <Segmentation.h>

Public Member Functions

 Vector3D (double x_val=0., double y_val=0., double z_val=0.)
 Default constructor. More...
 
template<typename T >
 Vector3D (const T &v)
 Constructor using a foreign vector class. Requires methods x(), y() and z() More...
 
double x () const
 Access to x value (required for use with ROOT GenVector) More...
 
double y () const
 Access to y value (required for use with ROOT GenVector) More...
 
double z () const
 Access to z value (required for use with ROOT GenVector) More...
 
template<>
 Vector3D (double x_val, double y_val, double z_val, Vector3D::Cartesian(&)())
 
template<>
 Vector3D (double rho_val, double phi_val, double z_val, Vector3D::Cylindrical(&)())
 
template<>
 Vector3D (double r_val, double phi_val, double theta_val, Vector3D::Spherical(&)())
 

Public Attributes

double X
 
double Y
 
double Z
 

Detailed Description

Simple container for a physics vector.

Definition at line 48 of file Segmentation.h.

Constructor & Destructor Documentation

◆ Vector3D() [1/5]

dd4hep::DDSegmentation::Vector3D::Vector3D ( double  x_val = 0.,
double  y_val = 0.,
double  z_val = 0. 
)
inline

Default constructor.

Definition at line 50 of file Segmentation.h.

◆ Vector3D() [2/5]

template<typename T >
dd4hep::DDSegmentation::Vector3D::Vector3D ( const T &  v)
inline

Constructor using a foreign vector class. Requires methods x(), y() and z()

Definition at line 54 of file Segmentation.h.

◆ Vector3D() [3/5]

template<>
dd4hep::DDSegmentation::Vector3D::Vector3D ( double  x_val,
double  y_val,
double  z_val,
Vector3D::Cartesian(&)()   
)
inline

Cartesian c'tor - example:
Vector3D v( x, y, c , Vector3D::cartesian ) ;

Definition at line 326 of file Vector3D.h.

◆ Vector3D() [4/5]

template<>
dd4hep::DDSegmentation::Vector3D::Vector3D ( double  rho_val,
double  phi_val,
double  z_val,
Vector3D::Cylindrical(&)()   
)
inline

Cylindrical c'tor - example:
Vector3D v( rho, phi, z , Vector3D::cylindrical ) ;

Definition at line 336 of file Vector3D.h.

◆ Vector3D() [5/5]

template<>
dd4hep::DDSegmentation::Vector3D::Vector3D ( double  r_val,
double  phi_val,
double  theta_val,
Vector3D::Spherical(&)()   
)
inline

Spherical c'tor - example:
Vector3D v( r, phi, theta , Vector3D::spherical ) ;

Definition at line 347 of file Vector3D.h.

Member Function Documentation

◆ x()

double dd4hep::DDSegmentation::Vector3D::x ( ) const
inline

Access to x value (required for use with ROOT GenVector)

Definition at line 60 of file Segmentation.h.

◆ y()

double dd4hep::DDSegmentation::Vector3D::y ( ) const
inline

Access to y value (required for use with ROOT GenVector)

Definition at line 64 of file Segmentation.h.

◆ z()

double dd4hep::DDSegmentation::Vector3D::z ( ) const
inline

Access to z value (required for use with ROOT GenVector)

Definition at line 68 of file Segmentation.h.

Member Data Documentation

◆ X

double dd4hep::DDSegmentation::Vector3D::X

Definition at line 71 of file Segmentation.h.

◆ Y

double dd4hep::DDSegmentation::Vector3D::Y

Definition at line 71 of file Segmentation.h.

◆ Z

double dd4hep::DDSegmentation::Vector3D::Z

Definition at line 71 of file Segmentation.h.


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