\section{Cluster\-Shapes Class Reference}
\label{classClusterShapes}\index{Cluster\-Shapes@{Cluster\-Shapes}}


Utility class to derive properties of clusters, such as centre of gravity, axes of inertia, fits of the cluster shape and so on.  




{\ttfamily \#include $<$Cluster\-Shapes.\-h$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
{\bf Cluster\-Shapes} (int nhits, float $\ast$a, float $\ast$x, float $\ast$y, float $\ast$z)
\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
{\bf $\sim$\-Cluster\-Shapes} ()\label{classClusterShapes_a4b2bb08a2d71eb54e3d8459ae6fa06b5}

\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
void {\bf set\-Errors} (float $\ast$ex, float $\ast$ey, float $\ast$ez)\label{classClusterShapes_af14c7c32b0f2440fa7e875302df6ec3a}

\begin{DoxyCompactList}\small\item\em Defining errors for Helix Fit. \end{DoxyCompactList}\item 
void {\bf set\-Hit\-Types} (int $\ast$ityp)\label{classClusterShapes_a1689803f0761446f09b8d819ba1c55f0}

\begin{DoxyCompactList}\small\item\em Defining hit types for Helix Fit \-: type 1 -\/ cyllindrical detector type 2 -\/ Z disk detector. \end{DoxyCompactList}\item 
int {\bf get\-Number\-Of\-Hits} ()\label{classClusterShapes_a5f04a1b64a416adf07f8f3a434806f84}

\begin{DoxyCompactList}\small\item\em returns the number of elements of the cluster \end{DoxyCompactList}\item 
float {\bf get\-Total\-Amplitude} ()\label{classClusterShapes_a90da438041850775de82f6954dcafbec}

\begin{DoxyCompactList}\small\item\em returns the accumulated amplitude for the whole cluster (just the sum of the energy in all the entries of the cluster) \end{DoxyCompactList}\item 
float $\ast$ {\bf get\-Centre\-Of\-Gravity} ()
\begin{DoxyCompactList}\small\item\em returns an array, which represents a vector from the origin of the coordiante system, i. e. I\-P, to the centre of gravity of the cluster. \end{DoxyCompactList}\item 
float $\ast$ {\bfseries get\-Centre\-Of\-Gravity\-Errors} ()\label{classClusterShapes_a9ceb21a406f2f61176732dc51b727910}

\item 
float $\ast$ {\bf get\-Center\-Of\-Gravity} ()\label{classClusterShapes_a2dbe2025c4970659460c91ef9e25f34d}

\begin{DoxyCompactList}\small\item\em U\-S spelling of get\-Centre\-Of\-Gravity. \end{DoxyCompactList}\item 
float $\ast$ {\bfseries get\-Center\-Of\-Gravity\-Errors} ()\label{classClusterShapes_ad132d8da67a51552ed1ff65ccd09cd47}

\item 
float $\ast$ {\bf get\-Eigen\-Val\-Inertia} ()
\begin{DoxyCompactList}\small\item\em array of the inertias of mass (i. e. energy) corresponding to the three main axes of inertia. \end{DoxyCompactList}\item 
float $\ast$ {\bfseries get\-Eigen\-Val\-Inertia\-Errors} ()\label{classClusterShapes_a9b502c5e78df51407a22c577a87f468f}

\item 
float $\ast$ {\bf get\-Eigen\-Vec\-Inertia} ()
\begin{DoxyCompactList}\small\item\em array of the three main axes of inertia (9 entries) starting with the axis corresponding to the smallest inertia of mass (main principal axis). \end{DoxyCompactList}\item 
float $\ast$ {\bfseries get\-Eigen\-Vec\-Inertia\-Errors} ()\label{classClusterShapes_a2cc6b527f00c6d2a070802bc488b004e}

\item 
float {\bf get\-Width} ()\label{classClusterShapes_abf9c2d8aec9690c6393908054ef59874}

\begin{DoxyCompactList}\small\item\em 'mean' width of the cluster perpendicular to the main principal axis, defined as\-: width \-:= sqrt( 1/\-Total\-Amplitude $\ast$ Sum(a[i]$\ast$d[i]$\ast$d[i]) ), where d[i] is the distance of the i-\/th point to the main principal axis. \end{DoxyCompactList}\item 
int {\bf get\-Eigen\-Sytem\-Coordinates} (float $\ast$xlong, float $\ast$xtrans)
\begin{DoxyCompactList}\small\item\em returns the coordinates of the cluster transformed into the Co\-G-\/\-System. \end{DoxyCompactList}\item 
int {\bf get\-Eigen\-Sytem\-Coordinates} (float $\ast$xlong, float $\ast$xtrans, float $\ast$a)
\begin{DoxyCompactList}\small\item\em returns the coordinates and the amplitudes of the cluster transformed into the Co\-G-\/\-System. \end{DoxyCompactList}\item 
int {\bf fit3\-D\-Profile} (float \&chi2, float \&a, float \&b, float \&c, float \&d, float \&xl0, float $\ast$x\-Start, int \&index\-\_\-x\-Start, float $\ast$X0, float $\ast$Rm)
\begin{DoxyCompactList}\small\item\em performs a least square fit on the shape of an electro-\/ magnetic-\/shower, which is defined as\-: A[i] = a $\ast$ (xl[i]-\/xl0)$^\wedge$b $\ast$ exp(-\/c$\ast$(xl[i]-\/xl0)) $\ast$ exp(-\/d$\ast$xt[i]), where A[i] is the array of amplitudes, xl[i] is the coordinate of the actual point along the main principal axis and xt[i] the coordinate perpendicular to it. \end{DoxyCompactList}\item 
float {\bf get\-Chi2\-Fit3\-D\-Profile\-Simple} (float a, float b, float c, float d, float $\ast$X0, float $\ast$Rm)
\begin{DoxyCompactList}\small\item\em returns the chi2 of the fit in the method Fit3\-D\-Profile (if simple parametrisation is used)for a given set of parameters a,b,c,d \end{DoxyCompactList}\item 
float {\bf get\-Chi2\-Fit3\-D\-Profile\-Advanced} (float E0, float a, float b, float d, float t0, float $\ast$X0, float $\ast$Rm)
\begin{DoxyCompactList}\small\item\em returns the chi2 of the fit in the method Fit3\-D\-Profile (if advanced parametrisation is used) for a given set of parameters E0,a,b,d,t0 \end{DoxyCompactList}\item 
int {\bf Fit\-Helix} (int max\-\_\-iter, int status\-\_\-out, int parametrisation, double $\ast$parameter, double $\ast$dparameter, double \&chi2, double \&distmax, int direction=1)
\begin{DoxyCompactList}\small\item\em performs a least square fit on a helix path in space, which which is defined as (Cartesian coordiantes)\-: \end{DoxyCompactList}\item 
int {\bfseries Fit\-Helix} (int max\-\_\-iter, int status\-\_\-out, int parametrisation, float $\ast$parameter, float $\ast$dparameter, float \&chi2, float \&distmax, int direction=1)\label{classClusterShapes_aada81229b7b0a25ef2125d540164e6a7}

\item 
float {\bfseries get\-Emax} (float $\ast$x\-Start, int \&index\-\_\-x\-Start, float $\ast$X0, float $\ast$Rm)\label{classClusterShapes_afcbc00ab1610233387b6b3a71773e40c}

\item 
float {\bfseries getsmax} (float $\ast$x\-Start, int \&index\-\_\-x\-Start, float $\ast$X0, float $\ast$Rm)\label{classClusterShapes_ad55ec88df9da8c8be6a3fef6de5580c2}

\item 
float {\bfseries getxt90} (float $\ast$x\-Start, int \&index\-\_\-x\-Start, float $\ast$X0, float $\ast$Rm)\label{classClusterShapes_a0d823aaaf96f43eb122fb7c7865a19fd}

\item 
float {\bfseries getxl20} (float $\ast$x\-Start, int \&index\-\_\-x\-Start, float $\ast$X0, float $\ast$Rm)\label{classClusterShapes_a599464548ced0a654089e638e8353832}

\item 
void {\bfseries gethits} (float $\ast$x\-Start, int \&index\-\_\-x\-Start, float $\ast$X0, float $\ast$Rm, float $\ast$okxl, float $\ast$okxt, float $\ast$oke)\label{classClusterShapes_a8838be9d89215bab230fded7706842b9}

\item 
float {\bf radius} ()\label{classClusterShapes_a9a96385256fdf3f52ea60dbb2a498c49}

\begin{DoxyCompactList}\small\item\em distance to the centre of gravity measured from I\-P (absolut value of the vector to the centre of gravity) \end{DoxyCompactList}\item 
float {\bf get\-Elipsoid\-\_\-r1} ()\label{classClusterShapes_ac89075a40221b47eb07821742f60013a}

\begin{DoxyCompactList}\small\item\em largest spatial axis length of the ellipsoid derived by the inertia tensor (by their eigenvalues and eigen-\/ vectors) \end{DoxyCompactList}\item 
float {\bf get\-Elipsoid\-\_\-r2} ()\label{classClusterShapes_a791ac1bc5f65c8244b2ca758538ff46d}

\begin{DoxyCompactList}\small\item\em medium spatial axis length of the ellipsoid derived by the inertia tensor (by their eigenvalues and eigen-\/ vectors) \end{DoxyCompactList}\item 
float {\bf get\-Elipsoid\-\_\-r3} ()\label{classClusterShapes_adaf15385e767d73fdebf2afaee7c00ff}

\begin{DoxyCompactList}\small\item\em smallest spatial axis length of the ellipsoid derived by the inertia tensor (by their eigenvalues and eigen-\/ vectors) \end{DoxyCompactList}\item 
float {\bf get\-Elipsoid\-\_\-vol} ()\label{classClusterShapes_abcdf5acde785ec970e9a50ba83d9570a}

\begin{DoxyCompactList}\small\item\em volume of the ellipsoid \end{DoxyCompactList}\item 
float {\bf get\-Elipsoid\-\_\-r\-\_\-ave} ()\label{classClusterShapes_a4aeb029f62dad248c2bbf98411be0ee9}

\begin{DoxyCompactList}\small\item\em average radius of the ellipsoid (qubic root of volume) \end{DoxyCompactList}\item 
float {\bf get\-Elipsoid\-\_\-density} ()\label{classClusterShapes_a4c65c37f616695ae215d70c8ef1e08c9}

\begin{DoxyCompactList}\small\item\em density of the ellipsoid defined by\-: tot\-Ampl/vol \end{DoxyCompactList}\item 
float {\bf get\-Elipsoid\-\_\-eccentricity} ()\label{classClusterShapes_a61a317876bf7a6bd5cc5a4115a032fde}

\begin{DoxyCompactList}\small\item\em eccentricity of the ellipsoid defined by\-: Width/r1 \end{DoxyCompactList}\item 
float {\bf get\-Elipsoid\-\_\-r\-\_\-forw} ()\label{classClusterShapes_a7108874a0b29d1a6c5fa41f58f0b764a}

\begin{DoxyCompactList}\small\item\em distance from centre of gravity to the point most far away from I\-P projected on the main principal axis \end{DoxyCompactList}\item 
float {\bf get\-Elipsoid\-\_\-r\-\_\-back} ()\label{classClusterShapes_a36a02ffa1ca59bcf36693ac45fe2b1f9}

\begin{DoxyCompactList}\small\item\em distance from centre of gravity to the point nearest to I\-P projected on the main principal axis \end{DoxyCompactList}\item 
float {\bfseries get\-Rhit\-Mean} (float $\ast$x\-Start, int \&index\-\_\-x\-Start, float $\ast$X0, float $\ast$Rm)\label{classClusterShapes_af706463ae7f059272051c71d5eb71b3b}

\item 
float {\bfseries get\-Rhit\-R\-M\-S} (float $\ast$x\-Start, int \&index\-\_\-x\-Start, float $\ast$X0, float $\ast$Rm)\label{classClusterShapes_ac9d55ab746f93737fdbcfc88ac1fd4b8}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
Utility class to derive properties of clusters, such as centre of gravity, axes of inertia, fits of the cluster shape and so on. 

All the details are explained in the documentation of the methods. Several classes of the G\-S\-L (G\-N\-U Scientific Library) are needed in this class.

\begin{DoxyAuthor}{Authors}
V. Morgunov (I\-T\-E\-P/\-D\-E\-S\-Y), A. Raspereza (D\-E\-S\-Y), O. Wendt (D\-E\-S\-Y) 
\end{DoxyAuthor}
\begin{DoxyVersion}{Version}

\end{DoxyVersion}
\begin{DoxyParagraph}{Id\-:}
\doxyref{Cluster\-Shapes.\-h}{p.}{ClusterShapes_8h_source},v 1.\-14 2007-\/04-\/27 13\-:56\-:53 owendt Exp 
\end{DoxyParagraph}


\subsection{Constructor \& Destructor Documentation}
\index{Cluster\-Shapes@{Cluster\-Shapes}!Cluster\-Shapes@{Cluster\-Shapes}}
\index{Cluster\-Shapes@{Cluster\-Shapes}!ClusterShapes@{Cluster\-Shapes}}
\subsubsection[{Cluster\-Shapes}]{\setlength{\rightskip}{0pt plus 5cm}Cluster\-Shapes\-::\-Cluster\-Shapes (
\begin{DoxyParamCaption}
\item[{int}]{nhits, }
\item[{float $\ast$}]{a, }
\item[{float $\ast$}]{x, }
\item[{float $\ast$}]{y, }
\item[{float $\ast$}]{z}
\end{DoxyParamCaption}
)}\label{classClusterShapes_aa3fa4f385b49efeb6c1b0ca3229d5ef7}


Constructor. 


\begin{DoxyParams}{Parameters}
{\em nhits} & \-: number of hits in the cluster \\
\hline
{\em a} & \-: amplitudes of elements ('cells') of the cluster. Stored in an array, with one entry for each element ('cell'). Each entry is depending on coordinates x,y,z (Cartesian), which are stored in the arrays x,y,z. \\
\hline
{\em x,y,z} & \-: array of coordinates corresponding to the array of amplitudes a. \\
\hline
\end{DoxyParams}


\subsection{Member Function Documentation}
\index{Cluster\-Shapes@{Cluster\-Shapes}!fit3\-D\-Profile@{fit3\-D\-Profile}}
\index{fit3\-D\-Profile@{fit3\-D\-Profile}!ClusterShapes@{Cluster\-Shapes}}
\subsubsection[{fit3\-D\-Profile}]{\setlength{\rightskip}{0pt plus 5cm}int Cluster\-Shapes\-::fit3\-D\-Profile (
\begin{DoxyParamCaption}
\item[{float \&}]{chi2, }
\item[{float \&}]{a, }
\item[{float \&}]{b, }
\item[{float \&}]{c, }
\item[{float \&}]{d, }
\item[{float \&}]{xl0, }
\item[{float $\ast$}]{x\-Start, }
\item[{int \&}]{index\-\_\-x\-Start, }
\item[{float $\ast$}]{X0, }
\item[{float $\ast$}]{Rm}
\end{DoxyParamCaption}
)}\label{classClusterShapes_ac06662e491349e08e98c85c78ffe7368}


performs a least square fit on the shape of an electro-\/ magnetic-\/shower, which is defined as\-: A[i] = a $\ast$ (xl[i]-\/xl0)$^\wedge$b $\ast$ exp(-\/c$\ast$(xl[i]-\/xl0)) $\ast$ exp(-\/d$\ast$xt[i]), where A[i] is the array of amplitudes, xl[i] is the coordinate of the actual point along the main principal axis and xt[i] the coordinate perpendicular to it. 

The return value of the method itself is not used at the moment (always returns 0). 
\begin{DoxyParams}{Parameters}
{\em a,b,c,d,xl0} & \-: references to the parameters, which are fitted. \\
\hline
{\em chi2} & \-: reference to the chi2 of the fit \\
\hline
{\em x\-Start} & \-: pointer to the 'initial hit' of the cluster. It is defined as the point with the largest distance to the Co\-G measured in the direction towards the I\-P. \\
\hline
{\em index\-\_\-x\-Start} & \-: index of the point in the cluster corresponding to x\-Start \\
\hline
{\em X0} & \-: radiation length of the detector material. For a composite detector this is meant to be the 'mean' radiation length. \\
\hline
{\em Rm} & \-: Moliere radius of the the detector material. For a composite detector this is meant to be the 'mean' Moliere radius. \\
\hline
\end{DoxyParams}
\index{Cluster\-Shapes@{Cluster\-Shapes}!Fit\-Helix@{Fit\-Helix}}
\index{Fit\-Helix@{Fit\-Helix}!ClusterShapes@{Cluster\-Shapes}}
\subsubsection[{Fit\-Helix}]{\setlength{\rightskip}{0pt plus 5cm}int Cluster\-Shapes\-::\-Fit\-Helix (
\begin{DoxyParamCaption}
\item[{int}]{max\-\_\-iter, }
\item[{int}]{status\-\_\-out, }
\item[{int}]{parametrisation, }
\item[{double $\ast$}]{parameter, }
\item[{double $\ast$}]{dparameter, }
\item[{double \&}]{chi2, }
\item[{double \&}]{distmax, }
\item[{int}]{direction = {\ttfamily 1}}
\end{DoxyParamCaption}
)}\label{classClusterShapes_a1790fb48312fdc04abef702017e09b57}


performs a least square fit on a helix path in space, which which is defined as (Cartesian coordiantes)\-: 


\begin{DoxyEnumerate}
\item parametrisation\-: x[i] = x0 + R$\ast$cos(b$\ast$z[i] + phi0) y[i] = y0 + R$\ast$sin(b$\ast$z[i] + phi0) z[i] = z[i], where x0,y0,R,b and phi0 are the parameters to be fitted and x[i],y[i],z[i] are the (Cartesian) coordiantes of the space points.
\item parametrisation\-: x[i] = x0 + R$\ast$cos(phi) y[i] = y0 + R$\ast$sin(phi) z[i] = z0 + b$\ast$phi and phi = atan2( y[i]-\/y0 , x[i]-\/x0 ), where x0,y0,z0,R and b are the parameters to be fitted and x[i],y[i],z[i] are the (Cartesian) coordiantes of the space points.
\end{DoxyEnumerate}

The method returns 1 if an error occured and 0 if not.

The following output/input parameters are returned/needed\-:

O\-U\-T\-P\-U\-T\-S\-: 
\begin{DoxyParams}{Parameters}
{\em parameter} & \-: array of parameters to be fitted. For parametrisation 1\-: parameter[5] = \{x0,y0,R,b,phi0\} For parametrisation 2\-: parameter[5] = \{x0,y0,z0,R,b\} \\
\hline
{\em dparameter} & \-: error on the parameters, that means\-: dparameter[i] = sqrt( Covar\-Matrix[i][i] ) \\
\hline
{\em chi2} & \-: chi2 of the fit \\
\hline
{\em distmax} & \-: maximal distance between the points x[i],y[i] z[i] and the fitted function\\
\hline
\end{DoxyParams}
I\-N\-P\-U\-T\-S\-: 
\begin{DoxyParams}{Parameters}
{\em parametrisation} & \-: 1 for first and 2 for second parametrisation (see above) \\
\hline
{\em max\-\_\-iter} & \-: maximal number of iterations, before fit cancels \\
\hline
{\em status\-\_\-out} & \-: if set to 1, only the initial parameters of the fit are calculated and are stored in parameter. The entries of dparameter are set to 0.\-0 \\
\hline
\end{DoxyParams}
\index{Cluster\-Shapes@{Cluster\-Shapes}!get\-Centre\-Of\-Gravity@{get\-Centre\-Of\-Gravity}}
\index{get\-Centre\-Of\-Gravity@{get\-Centre\-Of\-Gravity}!ClusterShapes@{Cluster\-Shapes}}
\subsubsection[{get\-Centre\-Of\-Gravity}]{\setlength{\rightskip}{0pt plus 5cm}float $\ast$ Cluster\-Shapes\-::get\-Centre\-Of\-Gravity (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{classClusterShapes_aa90e34e6c05926ea6a8371518e239568}


returns an array, which represents a vector from the origin of the coordiante system, i. e. I\-P, to the centre of gravity of the cluster. 

The centre of gravity is calculated with the energy of the entries of the cluster. 

Referenced by get\-Center\-Of\-Gravity().

\index{Cluster\-Shapes@{Cluster\-Shapes}!get\-Chi2\-Fit3\-D\-Profile\-Advanced@{get\-Chi2\-Fit3\-D\-Profile\-Advanced}}
\index{get\-Chi2\-Fit3\-D\-Profile\-Advanced@{get\-Chi2\-Fit3\-D\-Profile\-Advanced}!ClusterShapes@{Cluster\-Shapes}}
\subsubsection[{get\-Chi2\-Fit3\-D\-Profile\-Advanced}]{\setlength{\rightskip}{0pt plus 5cm}float Cluster\-Shapes\-::get\-Chi2\-Fit3\-D\-Profile\-Advanced (
\begin{DoxyParamCaption}
\item[{float}]{E0, }
\item[{float}]{a, }
\item[{float}]{b, }
\item[{float}]{d, }
\item[{float}]{t0, }
\item[{float $\ast$}]{X0, }
\item[{float $\ast$}]{Rm}
\end{DoxyParamCaption}
)}\label{classClusterShapes_a56ed2923bf7bd568edfdaec12f8345a4}


returns the chi2 of the fit in the method Fit3\-D\-Profile (if advanced parametrisation is used) for a given set of parameters E0,a,b,d,t0 


\begin{DoxyParams}{Parameters}
{\em E0,a,b,d,t0} & \-: fitted parameters, which have been calculated before \\
\hline
{\em X0} & \-: radiation length of the detector material. For a composite detector this is meant to be the 'mean' radiation length. \\
\hline
{\em Rm} & \-: Moliere radius of the the detector material. For a composite detector this is meant to be the 'mean' Moliere radius. \\
\hline
\end{DoxyParams}
\index{Cluster\-Shapes@{Cluster\-Shapes}!get\-Chi2\-Fit3\-D\-Profile\-Simple@{get\-Chi2\-Fit3\-D\-Profile\-Simple}}
\index{get\-Chi2\-Fit3\-D\-Profile\-Simple@{get\-Chi2\-Fit3\-D\-Profile\-Simple}!ClusterShapes@{Cluster\-Shapes}}
\subsubsection[{get\-Chi2\-Fit3\-D\-Profile\-Simple}]{\setlength{\rightskip}{0pt plus 5cm}float Cluster\-Shapes\-::get\-Chi2\-Fit3\-D\-Profile\-Simple (
\begin{DoxyParamCaption}
\item[{float}]{a, }
\item[{float}]{b, }
\item[{float}]{c, }
\item[{float}]{d, }
\item[{float $\ast$}]{X0, }
\item[{float $\ast$}]{Rm}
\end{DoxyParamCaption}
)}\label{classClusterShapes_ad8c35531686bb15dc16672122877544d}


returns the chi2 of the fit in the method Fit3\-D\-Profile (if simple parametrisation is used)for a given set of parameters a,b,c,d 


\begin{DoxyParams}{Parameters}
{\em a,b,c,d,xl0} & \-: fitted parameters, which have been calculated before \\
\hline
{\em X0} & \-: radiation length of the detector material. For a composite detector this is meant to be the 'mean' radiation length. \\
\hline
{\em Rm} & \-: Moliere radius of the the detector material. For a composite detector this is meant to be the 'mean' Moliere radius. \\
\hline
\end{DoxyParams}
\index{Cluster\-Shapes@{Cluster\-Shapes}!get\-Eigen\-Sytem\-Coordinates@{get\-Eigen\-Sytem\-Coordinates}}
\index{get\-Eigen\-Sytem\-Coordinates@{get\-Eigen\-Sytem\-Coordinates}!ClusterShapes@{Cluster\-Shapes}}
\subsubsection[{get\-Eigen\-Sytem\-Coordinates}]{\setlength{\rightskip}{0pt plus 5cm}int Cluster\-Shapes\-::get\-Eigen\-Sytem\-Coordinates (
\begin{DoxyParamCaption}
\item[{float $\ast$}]{xlong, }
\item[{float $\ast$}]{xtrans}
\end{DoxyParamCaption}
)}\label{classClusterShapes_a4961bad51a9a09e1eeecdacc42234404}


returns the coordinates of the cluster transformed into the Co\-G-\/\-System. 


\begin{DoxyParams}{Parameters}
{\em xlong} & \-: pointer to an array, where the calculated longitudinal coordiantes are stored in. \\
\hline
{\em xtrans} & \-: pointer to an array, where the calculated transversal coordiantes are stored in. \\
\hline
\end{DoxyParams}
\index{Cluster\-Shapes@{Cluster\-Shapes}!get\-Eigen\-Sytem\-Coordinates@{get\-Eigen\-Sytem\-Coordinates}}
\index{get\-Eigen\-Sytem\-Coordinates@{get\-Eigen\-Sytem\-Coordinates}!ClusterShapes@{Cluster\-Shapes}}
\subsubsection[{get\-Eigen\-Sytem\-Coordinates}]{\setlength{\rightskip}{0pt plus 5cm}int Cluster\-Shapes\-::get\-Eigen\-Sytem\-Coordinates (
\begin{DoxyParamCaption}
\item[{float $\ast$}]{xlong, }
\item[{float $\ast$}]{xtrans, }
\item[{float $\ast$}]{a}
\end{DoxyParamCaption}
)}\label{classClusterShapes_a9bf83cfc72db6d20317b684dfe720044}


returns the coordinates and the amplitudes of the cluster transformed into the Co\-G-\/\-System. 


\begin{DoxyParams}{Parameters}
{\em xlong} & \-: pointer to an array, where the calculated longitudinal coordiantes are stored in. \\
\hline
{\em xtrans} & \-: pointer to an array, where the calculated transversal coordiantes are stored in. \\
\hline
{\em a} & \-: pointer to an array, where the amplitudes corresponding to the longitudinal and transversal coordiantes are stored in. \\
\hline
\end{DoxyParams}
\index{Cluster\-Shapes@{Cluster\-Shapes}!get\-Eigen\-Val\-Inertia@{get\-Eigen\-Val\-Inertia}}
\index{get\-Eigen\-Val\-Inertia@{get\-Eigen\-Val\-Inertia}!ClusterShapes@{Cluster\-Shapes}}
\subsubsection[{get\-Eigen\-Val\-Inertia}]{\setlength{\rightskip}{0pt plus 5cm}float $\ast$ Cluster\-Shapes\-::get\-Eigen\-Val\-Inertia (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{classClusterShapes_a41ce6722758cd8a4ab4364cf7f1cc4e1}


array of the inertias of mass (i. e. energy) corresponding to the three main axes of inertia. 

The array is sorted in ascending order. \index{Cluster\-Shapes@{Cluster\-Shapes}!get\-Eigen\-Vec\-Inertia@{get\-Eigen\-Vec\-Inertia}}
\index{get\-Eigen\-Vec\-Inertia@{get\-Eigen\-Vec\-Inertia}!ClusterShapes@{Cluster\-Shapes}}
\subsubsection[{get\-Eigen\-Vec\-Inertia}]{\setlength{\rightskip}{0pt plus 5cm}float $\ast$ Cluster\-Shapes\-::get\-Eigen\-Vec\-Inertia (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{classClusterShapes_a35078a085d998e123985a5666eeaa25d}


array of the three main axes of inertia (9 entries) starting with the axis corresponding to the smallest inertia of mass (main principal axis). 

All axes are normalised to a length of 1. 

The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
Cluster\-Shapes.\-h\item 
Cluster\-Shapes.\-cc\end{DoxyCompactItemize}
