NSCL DDAS
12.1-001
Support for XIA DDAS at FRIB
|
A class to generate test pulse, run, and baseline data for offline operation of QtScope. More...
#include <CDataGenerator.h>
Public Member Functions | |
CDataGenerator () | |
Constructor. More... | |
int | GetTraceData (unsigned short *data, int dataSize, double binWidth) |
Generate test trace data. More... | |
int | GetHistogramData (unsigned int *data, int dataSize) |
Generate test Gaussian-distributed data. More... | |
int | GetBaselineData (double *data, int dataSize) |
Generate randomly distributed test baseline data. More... | |
A class to generate test pulse, run, and baseline data for offline operation of QtScope.
|
inline |
Constructor.
int CDataGenerator::GetBaselineData | ( | double * | data, |
int | dataSize | ||
) |
Generate randomly distributed test baseline data.
[in,out] | data | Pointer to the start of the baseline data storarge. |
[in] | dataSize | How many data points to store. |
0 | Success. |
Params are a pointer to the start of the data storage and a size, as is done in the XIA API for easier integration/consistency.
int CDataGenerator::GetHistogramData | ( | unsigned int * | data, |
int | dataSize | ||
) |
Generate test Gaussian-distributed data.
[in,out] | data | Pointer to the start of the baseline data storage. |
[in] | dataSize | How many data points to store. |
Params are a pointer to the start of the data storage and a size, as is done in the XIA API for easier integration/consistency. Data is stored as a histogram, default binning 1 ADC unit per bin.
int CDataGenerator::GetTraceData | ( | unsigned short * | data, |
int | dataSize, | ||
double | binWidth | ||
) |
Generate test trace data.
[in,out] | data | Pointer to the start of the trace data storage. |
[in] | dataSize | How many data points to store. |
[in] | binWidth | Histogram bin width in microseconds. |
0 | Success. |
Params are a pointer to the start of the data storage and a size, as is done in the XIA API for easier integration/consistency.