GET library
GETSampleAnalysis.cpp File Reference

Functions

GETSample * GETCreateCFDDelayedSample (GETSample &sample, double frac, double delay)
 
GETSample * GETCreateCFDDelayedSample (GETSample &sample, GETFilterShift &filter)
 
GETFilterShift * GETCreateCFDFilter (GETSample &sample, double frac, double delay)
 
GETSample * GETCreateCFDSample (GETSample &sample, double frac, double delay)
 
GETSample * GETCreateCFDSample (GETSample &sample, GETFilterShift &filter)
 
double GETTimingCFD (GETSample &sample, double frac, double delay)
 
double GETTimingCFD (GETSample &sample, GETFilterShift &filter)
 
double GETZeroCrossing (GETSample &sample)
 

Detailed Description

Source file for samples analysis functions.

Function Documentation

GETSample* GETCreateCFDDelayedSample ( GETSample &  sample,
double  frac,
double  delay 
)

Function that create the delayed and scaled sample from argument sample. Function used in the CFD timing analysis.

Parameters
sampleinput sample (to be analysed)
fracconstant fraction value
delayCFD delay (signal rise time)

References GETCreateCFDDelayedSample(), and GETCreateCFDFilter().

Referenced by GETCreateCFDDelayedSample(), and GETCreateCFDSample().

GETSample* GETCreateCFDDelayedSample ( GETSample &  sample,
GETFilterShift &  filter 
)

Function that create the delayed and scaled sample from argument sample. Function used in the CFD timing analysis.

Parameters
sampleinput sample (to be analysed)
filterfilter for shift and scale of the input sample

References GETFilter::GetFilter().

GETFilterShift* GETCreateCFDFilter ( GETSample &  sample,
double  frac,
double  delay 
)

Create the filter for the transformation of the signal in the CFD algorithm. The input sample is given only for filter initialisation.

Parameters
sampleinput sample
fracconstant fraction value
delayCFD delay (signal rise time)

References GETProcess::GetDimension(), and GETFilter::Scale().

Referenced by GETCreateCFDDelayedSample(), and GETCreateCFDSample().

GETSample* GETCreateCFDSample ( GETSample &  sample,
double  frac,
double  delay 
)

Function that create the differential sample from argument sample. Function used in the CFD timing analysis.

Parameters
sampleinput sample (to be analysed)
fracconstant fraction value
delayCFD delay (signal rise time)

References GETCreateCFDFilter(), and GETCreateCFDSample().

Referenced by GETCreateCFDSample(), and GETTimingCFD().

GETSample* GETCreateCFDSample ( GETSample &  sample,
GETFilterShift &  filter 
)

Function that create the differential sample from argument sample. Function used in the CFD timing analysis.

Parameters
sampleinput sample (to be analysed)
filterfilter for shift and scale of the input sample

References GETCreateCFDDelayedSample().

double GETTimingCFD ( GETSample &  sample,
double  frac,
double  delay 
)

Compute the signal timing from a Constant Fraction Discriminator (CFD) analysis. The sample is supposed to have a peak... When the zero-crossing is found, a linear interpolation is performed. If there is no zero crossing, the function returns a value that is lower than the sample start time.

Parameters
samplesample to analyse
fracconstant fraction value
delayCFD delay (signal rise time)

References GETCreateCFDSample(), and GETZeroCrossing().

Referenced by GETSystemAnalyser::CalcChannelOutput().

double GETTimingCFD ( GETSample &  sample,
GETFilterShift &  filter 
)

Compute the signal timing from a Constant Fraction Discriminator (CFD) analysis. The sample is supposed to have a peak... When the zero-crossing is found, a linear interpolation is performed. If there is no zero crossing, the function returns a value that is lower than the sample start time.

Parameters
samplesample to analyse
filterfilter for shift and scale of the input sample

References GETCreateCFDSample(), and GETZeroCrossing().

double GETZeroCrossing ( GETSample &  sample)

Find the time for zero crossing between the minimum and maximum values of the input sample. If there is no zero crossing, the function returns a value that is lower than the sample start time.

Parameters
sampleinput sample

Referenced by GETTimingCFD().