|
NSCL DDAS
12.1-001
Support for XIA DDAS at FRIB
|
A class to read and fetch trace data from Pixie-16 modules. More...
#include <CPixieTraceUtilities.h>
Public Member Functions | |
| CPixieTraceUtilities () | |
| Constructor. More... | |
| int | ReadTrace (int module, int channel) |
| Read a validated ADC trace from single channel. More... | |
| int | ReadFastTrace (int module, int channel) |
| Read a validated ADC trace from single channel. More... | |
| unsigned short * | GetTraceData () |
| Return the trace data. More... | |
| void | SetUseGenerator (bool mode) |
| Set the flag for offline mode using the data generator. More... | |
A class to read and fetch trace data from Pixie-16 modules.
This class provides a ctypes-friendly interface to acquire "validated" (traces which are likely to contain a good signal pulse) and unvalidated traces. The class also provides methods to access the trace data.
| CPixieTraceUtilities::CPixieTraceUtilities | ( | ) |
Constructor.
The CPixieTraceUtilities class has ownership of a CDataGenerator object and is responsible for managing it.
|
inline |
Return the trace data.
| int CPixieTraceUtilities::ReadFastTrace | ( | int | module, |
| int | channel | ||
| ) |
Read a validated ADC trace from single channel.
| module | Module number. |
| channel | Channel number on module for trace read. |
| 0 | Success. |
| -1 | XIA API call fails. |
Read an ADC trace without signal validation.
| int CPixieTraceUtilities::ReadTrace | ( | int | module, |
| int | channel | ||
| ) |
Read a validated ADC trace from single channel.
| module | Module number. |
| channel | Channel number on module for trace read. |
| 0 | Success. |
| -1 | XIA API call fails. |
| -2 | Acquired trace is empty (median undefined). |
| -3 | Unhanded exception when reading trace and calculating median. |
Traces are "validated" (not triggered!) if:
|
inline |
Set the flag for offline mode using the data generator.
| mode | The generator flag is set to this input value. |