ALERT
Loading...
Searching...
No Matches
ahdcExtractor Class Reference

#include <ahdcExtractor.h>

Public Member Functions

 ahdcExtractor ()=default
 Default constructor.
 
 ahdcExtractor (float _samplingTime, float _amplitudeFractionCFA, int _binDelayCFD, float _fractionCFD)
 Constructor.
 
 ~ahdcExtractor ()
 Destructor.
 
std::map< std::string, double > extract (const std::vector< short > samples)
 
void Show (const char *filename)
 Show the extracted data in a figure.
 
void ShowCFD (const char *filename)
 Show the CFD signal.
 

Public Attributes

float samplingTime
 time between two ADC bins
 
int sparseSample = 0
 used to defined binOffset
 
short adcOffset = 0
 pedestal or noise level
 
long timeStamp = 0
 timeStamp timing informations (used to make fine corrections)
 
float fineTimeStampResolution = 0
 precision of dream clock (usually 8)
 
float amplitudeFractionCFA
 amplitude fraction between 0 and 1
 
int binDelayCFD
 CFD delay parameter.
 
float fractionCFD
 CFD fraction parameter between 0 and 1.
 
int binMax
 Bin of the max ADC over the pulse.
 
int binOffset
 Offset due to sparse sample.
 
float adcMax
 Max value of ADC over the pulse (fitted)
 
float timeMax
 Time of the max ADC over the pulse (fitted)
 
float integral
 Sum of ADCs over the pulse (not fitted)
 
std::vector< short > samplesCorr
 Waveform after offset (pedestal) correction.
 
int binNumber
 Number of bins in one waveform.
 
float timeRiseCFA
 moment when the signal reaches a Constant Fraction of its Amplitude uphill (fitted)
 
float timeFallCFA
 moment when the signal reaches a Constant Fraction of its Amplitude downhill (fitted)
 
float timeOverThresholdCFA
 is equal to (timeFallCFA - timeRiseCFA)
 
float timeCFD
 time extracted using the Constant Fraction Discriminator (CFD) algorithm (fitted)
 
std::vector< float > samplesCFD
 samples corresponding to the CFD signal
 

Static Public Attributes

static const short ADC_LIMIT = 4095
 Maximum value of ADC : 2^12-1.
 

Detailed Description

Author
Felix Touchte Codjo

Member Function Documentation

◆ extract()

std::map< std::string, double > ahdcExtractor::extract ( const std::vector< short > samples)

This method extracts relevant informations from the digitized signal (the samples) and store them in a Pulse

Parameters
samplesADC samples

◆ Show()

void ahdcExtractor::Show ( const char * filename)

Show the extracted data in a figure.

Returns
generate pdf file

◆ ShowCFD()

void ahdcExtractor::ShowCFD ( const char * filename)

Show the CFD signal.

Returns
generate a pdf file

The documentation for this class was generated from the following files: