JG ROOT Tools libraries  version 5.0 - august 2014
RGauss2DFunctions.cpp File Reference

Functions

Double_t RGaus2D_XYR (const Double_t x, const Double_t y, const Double_t Sx, const Double_t Sy, const Double_t Rho)
 
Double_t RGaus2D_ABT (const Double_t x, const Double_t y, const Double_t Sa, const Double_t Sb, const Double_t Theta)
 
bool REllipseABTtoXYR (const Double_t Sa, const Double_t Sb, const Double_t Theta, Double_t &Sx, Double_t &Sy, Double_t &Rho)
 
bool REllipseXYRtoABT (const Double_t Sx, const Double_t Sy, const Double_t Rho, Double_t &Sa, Double_t &Sb, Double_t &Theta)
 

Detailed Description

Source file for 2D Gauss functions.

Function Documentation

Double_t RGaus2D_XYR ( const Double_t  x,
const Double_t  y,
const Double_t  Sx,
const Double_t  Sy,
const Double_t  Rho 
)

2D Gauss function. Amplitude (maximum) is 1 and center at (0,0).

Parameters
xpoint X coordinate
ypoint Y coordinate
Sxwidth along X axis
Sywidth along Y axis
Rhocorrelation coefficient

Referenced by RFitGaus2DFunction().

Double_t RGaus2D_ABT ( const Double_t  x,
const Double_t  y,
const Double_t  Sa,
const Double_t  Sb,
const Double_t  Theta 
)

2D Gauss function. Amplitude (maximum) is 1 and center at (0,0).

Parameters
xpoint X coordinate
ypoint Y coordinate
Sawidth along first principal axis
Sbwidth along second principal axis
Thetarotation angle of principal axis

References PI.

Referenced by RFitGaus2DFunction().

bool REllipseABTtoXYR ( const Double_t  Sa,
const Double_t  Sb,
const Double_t  Theta,
Double_t &  Sx,
Double_t &  Sy,
Double_t &  Rho 
)

Function converting parameters (Sa,Sb,theta) (width along principal axis and rotation angle) to (Sa,Sb,theta) (width along X and Y and correlation coefficient). The function returns true if calculation is possible.

Parameters
Sawidth along first principal axis
Sbwidth along second principal axis
Thetarotation angle of principal axis
Sxwidth along X axis
Sywidth along Y axis
Rhocorrelation coefficient

References PI.

Referenced by RGFitGaus2D::PointsToParamComponent(), and RGFitGaus2D::PointsToWidgetComponent().

bool REllipseXYRtoABT ( const Double_t  Sx,
const Double_t  Sy,
const Double_t  Rho,
Double_t &  Sa,
Double_t &  Sb,
Double_t &  Theta 
)

Function converting parameters (Sa,Sb,theta) (width along X and Y and correlation coefficient) to (Sa,Sb,theta) (width along principal axis and rotation angle). The function returns true if calculation is possible.

Parameters
Sxwidth along X axis
Sywidth along Y axis
Rhocorrelation coefficient
Sawidth along first principal axis
Sbwidth along second principal axis
Thetarotation angle of principal axis

References PI.

Referenced by RFitGaus2D::DrawEllipse(), RFitGaus2D::GetEllipse(), RFitGaus2D::GetTheta(), RGFitGaus2D::ParamToPointComponent(), and RGFitGaus2D::WidgetsToPointComponent().