DD4hep - The AIDA detector description toolkit for high energy physics experiments
DD4hep  Rev:Unversioneddirectory
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Functions
SegmentationUtil.h File Reference
#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::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...
 
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...