|
GET library
|
#include "GETChannel.hh"Go to the source code of this file.
Macros | |
| #define | GET_FWHM_TO_SIGMA 0.424660900144009534340483469350147061050L |
| Conversion factor from FWHM to standard deviation. | |
| #define | GET_SIGMA_TO_FWHM 2.354820045030949327014013761072419583797L |
| Conversion factor from standard deviation to FWHM. | |
| #define | GET_SQRT_2PI 2.506628274631000241612 |
| Value of sqrt(2*pi) constant. | |
Functions | |
Base function | |
| double | GETGaus (const double x[], const double p[]) |
| double | GETGaus (double t, double srf, double ctr, double sig) |
| double | GETSinC (const double x[], const double p[]) |
| double | GETSinC (double t, double srf, double ctr, double scw) |
| double | GETSquare (const double x[], const double p[]) |
| double | GETSquare (double t, double srf, double ctr, double wid) |
| double | GETGausSinC (const double x[], const double p[]) |
| double | GETGausSinC (double t, double srf, double ctr, double sig, double w) |
Functions for fitting the signals | |
| double | GETSquareGaus (const double x[], const double p[]) |
| double | GETSquareGaus (double t, double srf, double ctr, double wid, double sig, double bg) |
| double | GETSquareSinC (const double x[], const double p[]) |
| double | GETSquareSinC (double t, double srf, double ctr, double wid, double scw, double bg) |
| double | GETSquareGSC (const double x[], const double p[]) |
| double | GETSquareGSC (double t, double srf, double ctr, double wid, double sig, double scw, double bg) |
| double | GETConvolutionSinC (double t, double scw, double(*fct)(const double[], const double[]), const double pf[]) |
| double | GETConvolutionGSC (double t, double sig, double scw, double(*fct)(const double[], const double[]), const double pf[]) |
| double | GETSquareCurrent (const double x[], const double p[]) |
| double | GETSquareCurrentGaus (const double x[], const double p[]) |
| double | GETSquareCurrentGSC (const double x[], const double p[]) |
| double | GETSquareCurrent2 (const double x[], const double p[]) |
| double | GETSquareCurrent2Gaus (const double x[], const double p[]) |
| double | GETSquareCurrent2GSC (const double x[], const double p[]) |
Variables | |
| u_int | getGSCConvPoints |
| double | getGSCConvWidth |
| u_int | getIntegPoints |
| double | getIntegStep |
Include file for signal analysis functions.
| double GETConvolutionGSC | ( | double | t, |
| double | sig, | ||
| double | scw, | ||
| double(*)(const double[], const double[]) | fct, | ||
| const double | pf[] | ||
| ) |
Function computing the convolution of a user function with the GETGausSinC function.
| t | point to compute |
| sig | sigma of the convolution gaus function |
| scw | sine cardinal dilatation factor |
| fct | user function pointer |
| pf | parameters of the user function |
References GETGausSinC(), getGSCConvPoints, and getGSCConvWidth.
Referenced by GETSquareCurrent2GSC(), and GETSquareCurrentGSC().
| double GETConvolutionSinC | ( | double | t, |
| double | scw, | ||
| double(*)(const double[], const double[]) | fct, | ||
| const double | pf[] | ||
| ) |
Function computing the convolution of a user function with the GETGausSinC function.
| t | point to compute |
| scw | sine cardinal dilatation factor |
| fct | user function pointer |
| pf | parameters of the user function |
References getGSCConvPoints, getGSCConvWidth, and GETSinC().
|
inline |
Gaus function with integral parameter.
| x | array of coordinates (only x[0] is used) |
| p | array of parameters |
References GETGaus().
| double GETGaus | ( | double | t, |
| double | srf, | ||
| double | ctr, | ||
| double | sig | ||
| ) |
Gaus function with integral parameter.
| t | point to compute |
| srf | integral (1 for normalized function) |
| ctr | center |
| sig | sigma |
References GET_SQRT_2PI.
Referenced by GETGaus().
|
inline |
Product of a Gaus function with sinc function: G(x) * sin(x/w) / (x/w).
| x | array of coordinates (only x[0] is used) |
| p | array of parameters |
References GETGausSinC().
| double GETGausSinC | ( | double | t, |
| double | srf, | ||
| double | ctr, | ||
| double | sig, | ||
| double | scw | ||
| ) |
Product of a Gaus function with sinc function: G(x) * sin(x/w) / (x/w).
| t | point to compute |
| srf | integral (1 for normalized function) |
| ctr | center |
| sig | sigma |
| scw | sine cardinal dilatation factor |
Referenced by GETConvolutionGSC(), GETGausSinC(), and GETSquareGSC().
|
inline |
SinC function with integral parameter.
| x | array of coordinates (only x[0] is used) |
| p | array of parameters |
References GETSinC().
| double GETSinC | ( | double | t, |
| double | srf, | ||
| double | ctr, | ||
| double | scw | ||
| ) |
Sinc function with integral parameter:
| t | point to compute |
| srf | integral (1 for normalized function) |
| ctr | center |
| scw | scale factor |
Referenced by GETConvolutionSinC(), GETSinC(), and GETSquareSinC().
|
inline |
Function for a square current distribution.
| x | coordinates array (only 1 used) |
| p | parameters array |
References GETSquare().
| double GETSquare | ( | double | t, |
| double | srf, | ||
| double | ctr, | ||
| double | wid | ||
| ) |
Function for a square current distribution.
| t | point to compute |
| srf | integral (1 for normalized function) |
| ctr | center |
| wid | width of the square current |
Referenced by GETSquare().
| double GETSquareCurrent | ( | const double | x[], |
| const double | p[] | ||
| ) |
Function for a square current distribution.
| x | coordinates array (only 1 used) |
| p | parameters array |
Referenced by GETSquareCurrent2GSC(), and GETSquareCurrentGSC().
| double GETSquareCurrent2 | ( | const double | x[], |
| const double | p[] | ||
| ) |
Function for a square current distribution.
| x | coordinates array (only 1 used) |
| p | parameters array |
| double GETSquareCurrent2Gaus | ( | const double | x[], |
| const double | p[] | ||
| ) |
Function for a square current distribution, convoluted with a gaus function (smoothing).
| x | coordinates array (only 1 used) |
| p | parameters array |
| double GETSquareCurrent2GSC | ( | const double | x[], |
| const double | p[] | ||
| ) |
Function for a square current distribution, convoluted with a gaus function (smoothing).
| x | coordinates array (only 1 used) |
| p | parameters array |
References GETConvolutionGSC(), and GETSquareCurrent().
| double GETSquareCurrentGaus | ( | const double | x[], |
| const double | p[] | ||
| ) |
Function for a square current distribution, convoluted with a gaus function (smoothing).
| x | coordinates array (only 1 used) |
| p | parameters array |
| double GETSquareCurrentGSC | ( | const double | x[], |
| const double | p[] | ||
| ) |
Function for a square current distribution, convoluted with a gaus function (smoothing).
| x | coordinates array (only 1 used) |
| p | parameters array |
References GETConvolutionGSC(), and GETSquareCurrent().
|
inline |
Function for a square current distribution, convoluted with a gaus function (smoothing).
| x | array of coordinates (only x[0] is used) |
| p | array of parameters |
References GETSquareGaus().
| double GETSquareGaus | ( | double | t, |
| double | srf, | ||
| double | ctr, | ||
| double | wid, | ||
| double | sig, | ||
| double | bg | ||
| ) |
Function for a square current distribution, convoluted with a gaus function (smoothing).
| t | point to compute |
| srf | total charge: time width multiplied by the current value |
| ctr | distribution center time |
| wid | width of the square current |
| sig | sigma of the convolution gaus function |
| bg | offset (background) |
Referenced by GETSquareGaus(), and GETSystemAnalyser::GETSystemAnalyser().
|
inline |
Function for a square current distribution, convoluted with a Gaus x SinC function.
| x | coordinates array (only 1 used) |
| p | parameters array |
References GETSquareGSC().
| double GETSquareGSC | ( | double | t, |
| double | srf, | ||
| double | ctr, | ||
| double | wid, | ||
| double | sig, | ||
| double | scw, | ||
| double | bg | ||
| ) |
Function for a square current distribution, convoluted with a Gaus x SinC function.
| t | point to compute |
| srf | total charge: time width multiplied by the current value |
| ctr | distribution center time |
| wid | width of the square current |
| sig | sigma of the convolution gaus function |
| scw | sinc coordinate factor |
| bg | offset (background) |
References GETGausSinC(), getIntegPoints, and getIntegStep.
Referenced by GETSquareGSC(), and GETSystemAnalyser::GETSystemAnalyser().
|
inline |
Function for a square current distribution, convoluted with a SinC function.
| x | coordinates array (only 1 used) |
| p | parameters array |
References GETSquareSinC().
| double GETSquareSinC | ( | double | t, |
| double | srf, | ||
| double | ctr, | ||
| double | wid, | ||
| double | scw, | ||
| double | bg | ||
| ) |
Function for a square current distribution, convoluted with a SinC function.
| t | point to compute |
| srf | total charge: time width multiplied by the current value |
| ctr | distribution center time |
| wid | width of the square current |
| scw | sinc coordinate factor |
| bg | offset (background) |
References getIntegPoints, getIntegStep, and GETSinC().
Referenced by GETSquareSinC().
| u_int getGSCConvPoints |
number of points for convolution with GETGausSinC function.
Referenced by GETConvolutionGSC(), and GETConvolutionSinC().
| double getGSCConvWidth |
integration size for convolution with GETGausSinC function (in units of sigma).
Referenced by GETConvolutionGSC(), and GETConvolutionSinC().
| u_int getIntegPoints |
global variable for integration step number.
Referenced by GETSystemAnalyser::ComputeAmplitudeData(), GETSquareGSC(), and GETSquareSinC().
| double getIntegStep |
global variable for integration step size (if step number is 0).
Referenced by GETSystemAnalyser::ComputeAmplitudeData(), GETSquareGSC(), and GETSquareSinC().