\hypertarget{_segmentation_util_8h}{\section{/opt/ilcsoft/\-H\-E\-A\-D-\/2016-\/12-\/02/\-D\-D4hep/\-H\-E\-A\-D/\-D\-D\-Segmentation/include/\-D\-D\-Segmentation/\-Segmentation\-Util.h File Reference}
\label{_segmentation_util_8h}\index{/opt/ilcsoft/\-H\-E\-A\-D-\/2016-\/12-\/02/\-D\-D4hep/\-H\-E\-A\-D/\-D\-D\-Segmentation/include/\-D\-D\-Segmentation/\-Segmentation\-Util.\-h@{/opt/ilcsoft/\-H\-E\-A\-D-\/2016-\/12-\/02/\-D\-D4hep/\-H\-E\-A\-D/\-D\-D\-Segmentation/include/\-D\-D\-Segmentation/\-Segmentation\-Util.\-h}}
}
{\ttfamily \#include $<$cmath$>$}\\*
{\ttfamily \#include $<$vector$>$}\\*
\subsection*{Namespaces}
\begin{DoxyCompactItemize}
\item 
\hyperlink{namespace_d_d4hep}{D\-D4hep}
\begin{DoxyCompactList}\small\item\em Namespace for the A\-I\-D\-A detector description toolkit. \end{DoxyCompactList}\item 
\hyperlink{namespace_d_d4hep_1_1_d_d_segmentation}{D\-D4hep\-::\-D\-D\-Segmentation}
\begin{DoxyCompactList}\small\item\em Namespace for base segmentations. \end{DoxyCompactList}\item 
\hyperlink{namespace_d_d4hep_1_1_d_d_segmentation_1_1_util}{D\-D4hep\-::\-D\-D\-Segmentation\-::\-Util}
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
double \hyperlink{namespace_d_d4hep_1_1_d_d_segmentation_1_1_util_a696e414df89c2948f71d83861bb91f96}{D\-D4hep\-::\-D\-D\-Segmentation\-::\-Util\-::mag\-From\-X\-Y\-Z} (const Vector3\-D \&position)
\begin{DoxyCompactList}\small\item\em Conversions from Cartesian to cylindrical/spherical coordinates ///. \end{DoxyCompactList}\item 
double \hyperlink{namespace_d_d4hep_1_1_d_d_segmentation_1_1_util_a27d8eaa8e3001150da1b4cf657eecbb0}{D\-D4hep\-::\-D\-D\-Segmentation\-::\-Util\-::radius\-From\-X\-Y\-Z} (const Vector3\-D \&position)
\begin{DoxyCompactList}\small\item\em calculates the radius in the xy-\/plane from Cartesian coordinates \end{DoxyCompactList}\item 
double \hyperlink{namespace_d_d4hep_1_1_d_d_segmentation_1_1_util_a91c9acb845023538b301430609481e0e}{D\-D4hep\-::\-D\-D\-Segmentation\-::\-Util\-::theta\-From\-X\-Y\-Z} (const Vector3\-D \&position)
\begin{DoxyCompactList}\small\item\em calculates the polar angle theta from Cartesian coordinates \end{DoxyCompactList}\item 
double \hyperlink{namespace_d_d4hep_1_1_d_d_segmentation_1_1_util_aa8b3866b06a01bd33c74b6b4d5ff48a7}{D\-D4hep\-::\-D\-D\-Segmentation\-::\-Util\-::phi\-From\-X\-Y\-Z} (const Vector3\-D \&position)
\begin{DoxyCompactList}\small\item\em calculates the azimuthal angle phi from Cartesian coordinates \end{DoxyCompactList}\item 
Vector3\-D \hyperlink{namespace_d_d4hep_1_1_d_d_segmentation_1_1_util_a26afeef0487b44d0d1c634f43e1de11a}{D\-D4hep\-::\-D\-D\-Segmentation\-::\-Util\-::position\-From\-R\-Phi\-Z} (double r, double phi, double z)
\begin{DoxyCompactList}\small\item\em Conversions from cylindrical to Cartesian coordinates ///. \end{DoxyCompactList}\item 
double \hyperlink{namespace_d_d4hep_1_1_d_d_segmentation_1_1_util_aa316184b02cf82f628558fc2f543d973}{D\-D4hep\-::\-D\-D\-Segmentation\-::\-Util\-::mag\-From\-R\-Phi\-Z} (double r, double, double z)
\begin{DoxyCompactList}\small\item\em calculates the radius in xyz from cylindrical coordinates \end{DoxyCompactList}\item 
double \hyperlink{namespace_d_d4hep_1_1_d_d_segmentation_1_1_util_aef69bb74835c52ef738740d16db3343e}{D\-D4hep\-::\-D\-D\-Segmentation\-::\-Util\-::x\-From\-R\-Phi\-Z} (double r, double phi, double)
\begin{DoxyCompactList}\small\item\em calculates x from cylindrical coordinates \end{DoxyCompactList}\item 
double \hyperlink{namespace_d_d4hep_1_1_d_d_segmentation_1_1_util_a7c2700f5933a62c0f9f2977adfbf6deb}{D\-D4hep\-::\-D\-D\-Segmentation\-::\-Util\-::y\-From\-R\-Phi\-Z} (double r, double phi, double)
\begin{DoxyCompactList}\small\item\em calculates y from cylindrical coordinates \end{DoxyCompactList}\item 
double \hyperlink{namespace_d_d4hep_1_1_d_d_segmentation_1_1_util_a810a2371a6bb37d88321f100026f35c3}{D\-D4hep\-::\-D\-D\-Segmentation\-::\-Util\-::theta\-From\-R\-Phi\-Z} (double r, double, double z)
\begin{DoxyCompactList}\small\item\em calculates the polar angle theta from cylindrical coordinates \end{DoxyCompactList}\item 
Vector3\-D \hyperlink{namespace_d_d4hep_1_1_d_d_segmentation_1_1_util_a9da66f5c45a3396609860916f296ae0c}{D\-D4hep\-::\-D\-D\-Segmentation\-::\-Util\-::position\-From\-R\-Theta\-Phi} (double r, double theta, double phi)
\begin{DoxyCompactList}\small\item\em Conversions from spherical to Cartesian coordinates ///. \end{DoxyCompactList}\item 
Vector3\-D \hyperlink{namespace_d_d4hep_1_1_d_d_segmentation_1_1_util_a7856bceaaa7bcfa56ad6fe03ef007f8e}{D\-D4hep\-::\-D\-D\-Segmentation\-::\-Util\-::position\-From\-Mag\-Theta\-Phi} (double mag, double theta, double phi)
\begin{DoxyCompactList}\small\item\em calculates the Cartesian position from spherical coordinates \end{DoxyCompactList}\end{DoxyCompactItemize}
