GET library
GETSignalFunctions.hh File Reference
#include "GETChannel.hh"

Go to the source code of this file.

Functions for fitting the signals

u_int getIntegPoints
 
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[])
 

Gauss function multiplied by sin(x)/x

TGraph * getGSCNorm
 
u_int getGSCConvPoints
 
double getGSCConvMax
 
void GETSetNormalizationGSC ()
 
double GETGausSinC (const double x[], const double p[])
 
double GETGausSinC (double t, double amp, double ctr, double sig, double w)
 
double GETConvolutionGSC (const double x[], const double pg[], double(*fct)(const double[], const double[]), const double pf[])
 

Detailed Description

Include file for signal analysis functions.

Function Documentation

double GETConvolutionGSC ( const double  x[],
const double  pg[],
double(*)(const double[], const double[])  fct,
const double  pf[] 
)

Function computing the convolution of a user function with the GETGausSinC function.

Parameters
xarray of coordinates (only x[0] is used)
pgparameters of the GETGausSinC function (4 parameters)
fctuser function pointer
pfparameters of the user function

References GETGausSinC(), getGSCConvMax, and getGSCConvPoints.

Referenced by GETSquareCurrent2GSC(), and GETSquareCurrentGSC().

double GETGausSinC ( double  t,
double  amp,
double  ctr,
double  sig,
double  w 
)

Product of a Gaus function with sinc function: G(x) * sin(x/w) / (x/w).

Parameters
tpoint to compute
ampamplitude (1 for normalized function)
ctrcenter
sigsigma
wsine cardinal dilatation factor

References getGSCNorm, and GETSetNormalizationGSC().

Referenced by GETConvolutionGSC().

void GETSetNormalizationGSC ( )

Function that computes the points for the calculation of the GETGausSinC normalization.

References getGSCNorm, and getIntegPoints.

Referenced by GETGausSinC().

double GETSquareCurrent ( const double  x[],
const double  p[] 
)

Function for a square current distribution.

  • p[0] total charge: time width multiplied by the current value
  • p[1] start time
  • p[2] width of the square current
    Parameters
    xcoordinates array (only 1 used)
    pparameters array

Referenced by GETSquareCurrent2GSC(), and GETSquareCurrentGSC().

double GETSquareCurrent2 ( const double  x[],
const double  p[] 
)

Function for a square current distribution.

  • p[0] total charge: time width multiplied by the current value
  • p[1] distribution center time
  • p[2] width of the square current
    Parameters
    xcoordinates array (only 1 used)
    pparameters array
double GETSquareCurrent2Gaus ( const double  x[],
const double  p[] 
)

Function for a square current distribution, convoluted with a gaus function (smoothing).

  • p[0] total charge: time width multiplied by the current value
  • p[1] distribution center time
  • p[2] width of the square current
  • p[3] sigma of the convolution gaus function
  • p[4] offset (background)
    Parameters
    xcoordinates array (only 1 used)
    pparameters array
double GETSquareCurrent2GSC ( const double  x[],
const double  p[] 
)

Function for a square current distribution, convoluted with a gaus function (smoothing).

  • p[0] total charge: time width multiplied by the current value
  • p[1] distribution center time
  • p[2] width of the square current
  • p[3] sigma of the convolution gaus function
  • p[4] sinc coordinate factor
  • p[5] offset (background)
    Parameters
    xcoordinates array (only 1 used)
    pparameters 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).

  • p[0] total charge: time width multiplied by the current value
  • p[1] start time
  • p[2] width of the square current
  • p[3] sigma of the convolution gaus function
  • p[4] offset (background)
    Parameters
    xcoordinates array (only 1 used)
    pparameters array
double GETSquareCurrentGSC ( const double  x[],
const double  p[] 
)

Function for a square current distribution, convoluted with a gaus function (smoothing).

  • p[0] total charge: time width multiplied by the current value
  • p[1] start time
  • p[2] width of the square current
  • p[3] sigma of the convolution gaus function
  • p[4] sinc coordinate factor
  • p[5] offset (background)
    Parameters
    xcoordinates array (only 1 used)
    pparameters array

References GETConvolutionGSC(), and GETSquareCurrent().

Variable Documentation

double getGSCConvMax

integration size for convolution with GETGausSinC function (in units of sigma).

Referenced by GETConvolutionGSC().

u_int getGSCConvPoints

number of points for convolution with GETGausSinC function.

Referenced by GETConvolutionGSC().

TGraph* getGSCNorm

Normalisation values for GETGausSinC function (computed by interpolation).

Referenced by GETGausSinC(), and GETSetNormalizationGSC().

u_int getIntegPoints

global variable for integration step number.

Referenced by GETSetNormalizationGSC().