GET library
|
#include "GETSignalFunctions.hh"
Functions | |
double | GETConvolutionGSC (double t, double sig, double scw, double(*fct)(const double[], const double[]), const double pf[]) |
double | GETConvolutionSinC (double t, double scw, double(*fct)(const double[], const double[]), const double pf[]) |
double | GETGaus (double t, double srf, double ctr, double sig) |
double | GETGausSinC (double t, double srf, double ctr, double sig, double scw) |
double | GETSinC (double t, double srf, double ctr, double scw) |
double | GETSquare (double t, double srf, double ctr, double wid) |
double | GETSquareCurrent (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[]) |
double | GETSquareCurrentGaus (const double x[], const double p[]) |
double | GETSquareCurrentGSC (const double x[], const double p[]) |
double | GETSquareGaus (double t, double srf, double ctr, double wid, double sig, double bg) |
double | GETSquareGSC (double t, double srf, double ctr, double wid, double sig, double scw, double bg) |
double | GETSquareSinC (double t, double srf, double ctr, double wid, double scw, double bg) |
Variables | |
u_int | getGSCConvPoints = 1000 |
double | getGSCConvWidth = 10. |
u_int | getIntegPoints = 1000 |
double | getIntegStep = 0. |
Source 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().
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().
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().
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().
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().
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().
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().
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 = 1000 |
number of points for convolution with GETGausSinC function.
Referenced by GETConvolutionGSC(), and GETConvolutionSinC().
double getGSCConvWidth = 10. |
integration size for convolution with GETGausSinC function (in units of sigma).
Referenced by GETConvolutionGSC(), and GETConvolutionSinC().
u_int getIntegPoints = 1000 |
global variable for integration step number.
Referenced by GETSystemAnalyser::ComputeAmplitudeData(), GETSquareGSC(), and GETSquareSinC().
double getIntegStep = 0. |
global variable for integration step size (if step number is 0).
Referenced by GETSystemAnalyser::ComputeAmplitudeData(), GETSquareGSC(), and GETSquareSinC().