Berkeley Nuclear Data Software
|
#include <DigiState.h>
Public Member Functions | |
DigiState () | |
int | connect () |
int | disconnect () |
int | setConInfo (CAEN_DGTZ_ConnectionType a_linkType, uint32_t a_vmeAddress=0, int a_linkNum=0, int a_connetNode=0) |
int | startAcquisition () |
int | stopAcquisition () |
int | getAndPrintTemps () |
int | testSoftTriggeredReadout () |
int | setDPPAcquisitionMode (CAEN_DGTZ_DPP_AcqMode_t a_DPP_AcqMode) |
int | setChannelRecordLength (uint32_t a_length, int a_ch) |
int | setDCOffset (int a_ch, uint32_t a_DCOffset) |
int | setPreTrigSize (int a_ch, uint32_t a_preTrigSize) |
set the number of samples before the trigger More... | |
int | setPosPolarity (int a_ch, bool a_posPolarity) |
set the polarity of the aniticipated pulses 0 = negative More... | |
int | allChOff () |
int | setChStatus (int a_ch, bool a_onOff) |
int | readoutBoard () |
int | fetchReadoutChunk (int a_ch, std::vector< int16_t > &a_chargeShort, std::vector< int16_t > &a_chargeLong, std::vector< uint32_t > &a_extras, std::vector< uint32_t > &a_timeTag, std::vector< uint16_t > &a_wfData) |
int | clearData () |
this function dumps the internal arrays storing events and waveforms More... | |
int | setThreshold (int a_ch, int a_thr) |
int | setSelfTrigger (int a_ch, int a_selft) |
int | setChargeSensitivity (int a_ch, int a_csens) |
int | setShortGate (int a_ch, int a_sgate) |
int | setLongGate (int a_ch, int a_lgate) |
int | setPreGateWidth (int a_ch, int a_pgate) |
int | setTrigValWin (int a_ch, int a_tvaw) |
int | setNumBaseSample (int a_ch, int a_nsbl) |
int | setDiscrMode (int a_ch, int a_discr) |
int | setCFDFrac (int a_ch, int a_cfdf) |
int | setCFDDelay (int a_ch, int a_cfdd) |
int | writeGenericRegister (uint32_t a_dppReg, uint32_t a_dppRegVal) |
used to set generic registers in the DPP psd firmware More... | |
int | writeRegisterWithMask (uint32_t a_dppReg, uint32_t a_dppRegVal, uint32_t a_mask) |
std::vector< CAEN_DGTZ_DPP_PSD_Event_t > | getStoredEvents (int a_ch) |
this returns channel independent collection of CAEN_DGTZ_DPP_PSD_Event_t More... | |
~DigiState () | |
DigiState::DigiState | ( | ) |
DigiState::~DigiState | ( | ) |
int DigiState::allChOff | ( | ) |
int DigiState::clearData | ( | ) |
this function dumps the internal arrays storing events and waveforms
int DigiState::connect | ( | ) |
int DigiState::disconnect | ( | ) |
int DigiState::fetchReadoutChunk | ( | int | a_ch, |
std::vector< int16_t > & | a_chargeShort, | ||
std::vector< int16_t > & | a_chargeLong, | ||
std::vector< uint32_t > & | a_extras, | ||
std::vector< uint32_t > & | a_timeTag, | ||
std::vector< uint16_t > & | a_wfData | ||
) |
this function loads the supplied vectors with data from the internal class memory for a specified channel
int DigiState::getAndPrintTemps | ( | ) |
std::vector< CAEN_DGTZ_DPP_PSD_Event_t > DigiState::getStoredEvents | ( | int | a_ch | ) |
this returns channel independent collection of CAEN_DGTZ_DPP_PSD_Event_t
int DigiState::readoutBoard | ( | ) |
get the data from the board into a buffer
int DigiState::setCFDDelay | ( | int | a_ch, |
int | a_cfdd | ||
) |
int DigiState::setCFDFrac | ( | int | a_ch, |
int | a_cfdf | ||
) |
int DigiState::setChannelRecordLength | ( | uint32_t | a_length, |
int | a_ch | ||
) |
set the record length for an individual channel if the channels are grouped only set the even channel requires the board to have been connected.
set the record length for an individual channel if the channels are grouped only set the even channel
int DigiState::setChargeSensitivity | ( | int | a_ch, |
int | a_csens | ||
) |
int DigiState::setChStatus | ( | int | a_ch, |
bool | a_onOff | ||
) |
int DigiState::setConInfo | ( | CAEN_DGTZ_ConnectionType | a_linkType, |
uint32_t | a_vmeAddress = 0 , |
||
int | a_linkNum = 0 , |
||
int | a_connetNode = 0 |
||
) |
int DigiState::setDCOffset | ( | int | a_ch, |
uint32_t | a_DCOffset | ||
) |
set the DC offset for given channel takes values between 0 and 0x16383
set the DC offset for given channel takes values between 0 and 2^14
int DigiState::setDiscrMode | ( | int | a_ch, |
int | a_discr | ||
) |
int DigiState::setDPPAcquisitionMode | ( | CAEN_DGTZ_DPP_AcqMode_t | a_DPP_AcqMode | ) |
changes the acquisition mode for the digitizer between, list, mixed and oscilliscope valid inputs are CAEN_DGTZ_DPP_ACQ_MODE_Oscilloscope = 0 CAEN_DGTZ_DPP_ACQ_MODE_List = 1 CAEN_DGTZ_DPP_ACQ_MODE_Mixed = 2
int DigiState::setLongGate | ( | int | a_ch, |
int | a_lgate | ||
) |
int DigiState::setNumBaseSample | ( | int | a_ch, |
int | a_nsbl | ||
) |
int DigiState::setPosPolarity | ( | int | a_ch, |
bool | a_posPolarity | ||
) |
set the polarity of the aniticipated pulses 0 = negative
set the polarity of the aniticipated pulses
int DigiState::setPreGateWidth | ( | int | a_ch, |
int | a_pgate | ||
) |
int DigiState::setPreTrigSize | ( | int | a_ch, |
uint32_t | a_preTrigSize | ||
) |
set the number of samples before the trigger
int DigiState::setSelfTrigger | ( | int | a_ch, |
int | a_selft | ||
) |
int DigiState::setShortGate | ( | int | a_ch, |
int | a_sgate | ||
) |
int DigiState::setThreshold | ( | int | a_ch, |
int | a_thr | ||
) |
int DigiState::setTrigValWin | ( | int | a_ch, |
int | a_tvaw | ||
) |
int DigiState::startAcquisition | ( | ) |
int DigiState::stopAcquisition | ( | ) |
int DigiState::testSoftTriggeredReadout | ( | ) |
int DigiState::writeGenericRegister | ( | uint32_t | a_dppReg, |
uint32_t | a_dppRegVal | ||
) |
used to set generic registers in the DPP psd firmware
int DigiState::writeRegisterWithMask | ( | uint32_t | a_dppReg, |
uint32_t | a_dppRegVal, | ||
uint32_t | a_mask | ||
) |