DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Namespaces | Functions
SegmentationUtil.h File Reference
#include <DDSegmentation/Segmentation.h>
#include <cmath>
#include <vector>

Go to the source code of this file.

Namespaces

 dd4hep
 Namespace for the AIDA detector description toolkit.
 
 dd4hep::DDSegmentation
 Namespace for base segmentations.
 
 dd4hep::DDSegmentation::Util
 

Functions

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