DD4hep  1.28.0
Detector Description Toolkit for High Energy Physics
Functions
dd4hep::DDSegmentation::Util Namespace Reference

Functions

double magFromXYZ (const Vector3D &position)
 Conversions from Cartesian to cylindrical/spherical coordinates ///. More...
 
double radiusFromXYZ (const Vector3D &position)
 calculates the radius in the xy-plane from Cartesian coordinates More...
 
double cosThetaFromXYZ (const Vector3D &position)
 Calculates cosine of the polar angle theat from Cartesian coodinates. More...
 
double thetaFromXYZ (const Vector3D &position)
 calculates the polar angle theta from Cartesian coordinates More...
 
double phiFromXYZ (const Vector3D &position)
 calculates the azimuthal angle phi from Cartesian coordinates More...
 
double etaFromXYZ (const Vector3D &aposition)
 calculates the pseudorapidity from Cartesian coordinates More...
 
Vector3D positionFromRPhiZ (double r, double phi, double z)
 Conversions from cylindrical to Cartesian coordinates ///. More...
 
double magFromRPhiZ (double r, double, double z)
 calculates the radius in xyz from cylindrical coordinates More...
 
double xFromRPhiZ (double r, double phi, double)
 calculates x from cylindrical coordinates More...
 
double yFromRPhiZ (double r, double phi, double)
 calculates y from cylindrical coordinates More...
 
double thetaFromRPhiZ (double r, double, double z)
 calculates the polar angle theta from cylindrical coordinates More...
 
Vector3D positionFromRThetaPhi (double r, double theta, double phi)
 Conversions from spherical to Cartesian coordinates ///. More...
 
Vector3D positionFromMagThetaPhi (double mag, double theta, double phi)
 calculates the Cartesian position from spherical coordinates More...
 
Vector3D positionFromREtaPhi (double ar, double aeta, double aphi)
 calculates the Cartesian position from spherical coordinates (r, phi, eta) More...
 

Function Documentation

◆ cosThetaFromXYZ()

double dd4hep::DDSegmentation::Util::cosThetaFromXYZ ( const Vector3D position)
inline

Calculates cosine of the polar angle theat from Cartesian coodinates.

Definition at line 44 of file SegmentationUtil.h.

◆ etaFromXYZ()

double dd4hep::DDSegmentation::Util::etaFromXYZ ( const Vector3D aposition)
inline

calculates the pseudorapidity from Cartesian coordinates

Definition at line 60 of file SegmentationUtil.h.

◆ magFromRPhiZ()

double dd4hep::DDSegmentation::Util::magFromRPhiZ ( double  r,
double  ,
double  z 
)
inline

calculates the radius in xyz from cylindrical coordinates

Definition at line 79 of file SegmentationUtil.h.

◆ magFromXYZ()

double dd4hep::DDSegmentation::Util::magFromXYZ ( const Vector3D position)
inline

Conversions from Cartesian to cylindrical/spherical coordinates ///.

      Conventions                                           ///
  • x, y, z are the Cartesian coordinates ///
  • r is the magnitude in the xy-plane ///
  • mag is the magnitude /// calculates the radius in xyz from Cartesian coordinates

Definition at line 34 of file SegmentationUtil.h.

◆ phiFromXYZ()

double dd4hep::DDSegmentation::Util::phiFromXYZ ( const Vector3D position)
inline

calculates the azimuthal angle phi from Cartesian coordinates

Definition at line 54 of file SegmentationUtil.h.

◆ positionFromMagThetaPhi()

Vector3D dd4hep::DDSegmentation::Util::positionFromMagThetaPhi ( double  mag,
double  theta,
double  phi 
)
inline

calculates the Cartesian position from spherical coordinates

Definition at line 108 of file SegmentationUtil.h.

◆ positionFromREtaPhi()

Vector3D dd4hep::DDSegmentation::Util::positionFromREtaPhi ( double  ar,
double  aeta,
double  aphi 
)
inline

calculates the Cartesian position from spherical coordinates (r, phi, eta)

Definition at line 113 of file SegmentationUtil.h.

◆ positionFromRPhiZ()

Vector3D dd4hep::DDSegmentation::Util::positionFromRPhiZ ( double  r,
double  phi,
double  z 
)
inline

Conversions from cylindrical to Cartesian coordinates ///.

calculates the Cartesian position from cylindrical coordinates

Definition at line 74 of file SegmentationUtil.h.

◆ positionFromRThetaPhi()

Vector3D dd4hep::DDSegmentation::Util::positionFromRThetaPhi ( double  r,
double  theta,
double  phi 
)
inline

Conversions from spherical to Cartesian coordinates ///.

calculates the Cartesian position from spherical coordinates

Definition at line 103 of file SegmentationUtil.h.

◆ radiusFromXYZ()

double dd4hep::DDSegmentation::Util::radiusFromXYZ ( const Vector3D position)
inline

calculates the radius in the xy-plane from Cartesian coordinates

Definition at line 39 of file SegmentationUtil.h.

◆ thetaFromRPhiZ()

double dd4hep::DDSegmentation::Util::thetaFromRPhiZ ( double  r,
double  ,
double  z 
)
inline

calculates the polar angle theta from cylindrical coordinates

Definition at line 94 of file SegmentationUtil.h.

◆ thetaFromXYZ()

double dd4hep::DDSegmentation::Util::thetaFromXYZ ( const Vector3D position)
inline

calculates the polar angle theta from Cartesian coordinates

Definition at line 49 of file SegmentationUtil.h.

◆ xFromRPhiZ()

double dd4hep::DDSegmentation::Util::xFromRPhiZ ( double  r,
double  phi,
double   
)
inline

calculates x from cylindrical coordinates

Definition at line 84 of file SegmentationUtil.h.

◆ yFromRPhiZ()

double dd4hep::DDSegmentation::Util::yFromRPhiZ ( double  r,
double  phi,
double   
)
inline

calculates y from cylindrical coordinates

Definition at line 89 of file SegmentationUtil.h.