Berkeley Nuclear Data Software
Public Member Functions | List of all members
DigiState Class Reference

#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 ()
 

Constructor & Destructor Documentation

◆ DigiState()

DigiState::DigiState ( )

◆ ~DigiState()

DigiState::~DigiState ( )
Here is the call graph for this function:

Member Function Documentation

◆ allChOff()

int DigiState::allChOff ( )
Here is the caller graph for this function:

◆ clearData()

int DigiState::clearData ( )

this function dumps the internal arrays storing events and waveforms

Here is the caller graph for this function:

◆ connect()

int DigiState::connect ( )
Here is the caller graph for this function:

◆ disconnect()

int DigiState::disconnect ( )
Here is the caller graph for this function:

◆ fetchReadoutChunk()

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

Here is the caller graph for this function:

◆ getAndPrintTemps()

int DigiState::getAndPrintTemps ( )
Here is the caller graph for this function:

◆ getStoredEvents()

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

Here is the caller graph for this function:

◆ readoutBoard()

int DigiState::readoutBoard ( )

get the data from the board into a buffer

Here is the caller graph for this function:

◆ setCFDDelay()

int DigiState::setCFDDelay ( int  a_ch,
int  a_cfdd 
)
Here is the caller graph for this function:

◆ setCFDFrac()

int DigiState::setCFDFrac ( int  a_ch,
int  a_cfdf 
)
Here is the caller graph for this function:

◆ setChannelRecordLength()

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

◆ setChargeSensitivity()

int DigiState::setChargeSensitivity ( int  a_ch,
int  a_csens 
)
Here is the caller graph for this function:

◆ setChStatus()

int DigiState::setChStatus ( int  a_ch,
bool  a_onOff 
)
Here is the caller graph for this function:

◆ setConInfo()

int DigiState::setConInfo ( CAEN_DGTZ_ConnectionType  a_linkType,
uint32_t  a_vmeAddress = 0,
int  a_linkNum = 0,
int  a_connetNode = 0 
)
Here is the caller graph for this function:

◆ setDCOffset()

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

Here is the caller graph for this function:

◆ setDiscrMode()

int DigiState::setDiscrMode ( int  a_ch,
int  a_discr 
)
Here is the caller graph for this function:

◆ setDPPAcquisitionMode()

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

◆ setLongGate()

int DigiState::setLongGate ( int  a_ch,
int  a_lgate 
)
Here is the caller graph for this function:

◆ setNumBaseSample()

int DigiState::setNumBaseSample ( int  a_ch,
int  a_nsbl 
)

◆ setPosPolarity()

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

Here is the caller graph for this function:

◆ setPreGateWidth()

int DigiState::setPreGateWidth ( int  a_ch,
int  a_pgate 
)
Here is the caller graph for this function:

◆ setPreTrigSize()

int DigiState::setPreTrigSize ( int  a_ch,
uint32_t  a_preTrigSize 
)

set the number of samples before the trigger

◆ setSelfTrigger()

int DigiState::setSelfTrigger ( int  a_ch,
int  a_selft 
)
Here is the caller graph for this function:

◆ setShortGate()

int DigiState::setShortGate ( int  a_ch,
int  a_sgate 
)
Here is the caller graph for this function:

◆ setThreshold()

int DigiState::setThreshold ( int  a_ch,
int  a_thr 
)
Here is the caller graph for this function:

◆ setTrigValWin()

int DigiState::setTrigValWin ( int  a_ch,
int  a_tvaw 
)

◆ startAcquisition()

int DigiState::startAcquisition ( )
Here is the caller graph for this function:

◆ stopAcquisition()

int DigiState::stopAcquisition ( )
Here is the caller graph for this function:

◆ testSoftTriggeredReadout()

int DigiState::testSoftTriggeredReadout ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeGenericRegister()

int DigiState::writeGenericRegister ( uint32_t  a_dppReg,
uint32_t  a_dppRegVal 
)

used to set generic registers in the DPP psd firmware

◆ writeRegisterWithMask()

int DigiState::writeRegisterWithMask ( uint32_t  a_dppReg,
uint32_t  a_dppRegVal,
uint32_t  a_mask 
)
Here is the caller graph for this function:

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