5 #include "CAENDigitizer.h"
6 #include "CAENDigitizerType.h"
17 int setConInfo(CAEN_DGTZ_ConnectionType a_linkType,
18 uint32_t a_vmeAddress=0,
47 uint32_t a_preTrigSize
63 std::vector<int16_t>& a_chargeShort,
64 std::vector<int16_t>& a_chargeLong,
65 std::vector<uint32_t>& a_extras,
66 std::vector<uint32_t>& a_timeTag,
67 std::vector<uint16_t>& a_wfData
99 int setupDefaultDPPPSDParams();
101 int programDigitizer();
103 int setupDPPPSDEventStrucutures();
105 int deleteDPPPSDEventStrucutures();
107 int tempStabilizationLoop();
112 std::map<int, std::vector<CAEN_DGTZ_DPP_PSD_Event_t> > m_eventInfo;
113 std::map<int,std::vector<uint16_t> > m_waveforms;
119 bool m_memoryAllocated;
126 uint32_t m_vmeAddress;
130 uint32_t m_recordLength;
132 std::map<uint8_t,uint32_t> m_chRecordLength;
134 std::map<uint8_t, uint32_t> m_DCOffset;
136 std::map<uint8_t, uint32_t> m_preTrigSize;
138 std::map<uint8_t, CAEN_DGTZ_PulsePolarity_t> m_posPolarity;
140 uint32_t m_channelMask;
144 std::vector<std::pair<uint32_t,uint32_t > > m_genericRegisterWrites;
147 CAEN_DGTZ_ConnectionType m_ConnectionType;
148 CAEN_DGTZ_BoardModel_t m_BoardModel;
149 CAEN_DGTZ_DPP_PSD_Event_t** m_DPP_PSD_Event;
150 CAEN_DGTZ_DPP_PSD_Params_t m_DPP_PSD_Params;
151 CAEN_DGTZ_PulsePolarity_t m_PulsePolarity;
152 CAEN_DGTZ_AcquisitionMode_t m_AcquisitionMode;
153 CAEN_DGTZ_BoardInfo_t m_BoardInfo;
154 CAEN_DGTZ_DPP_PSD_Waveforms_t* m_DPP_PSD_Waveforms;
155 CAEN_DGTZ_DPPFirmware_t m_DPPFirmware;
156 CAEN_DGTZ_IOLevel_t m_IOLevel;
157 CAEN_DGTZ_TriggerMode_t m_extTriggerMode;
159 CAEN_DGTZ_DPP_SaveParam_t m_DPP_SaveParam;
160 CAEN_DGTZ_DPP_AcqMode_t m_DPP_AcqMode;
161 CAEN_DGTZ_AcqMode_t m_DGTZ_AcqMode;
162 CAEN_DGTZ_RunSyncMode_t m_RunSyncMode;
Definition: DigiState.h:11
int setConInfo(CAEN_DGTZ_ConnectionType a_linkType, uint32_t a_vmeAddress=0, int a_linkNum=0, int a_connetNode=0)
Definition: DigiState.cpp:131
int startAcquisition()
Definition: DigiState.cpp:220
int setShortGate(int a_ch, int a_sgate)
Definition: DigiState.cpp:573
int writeGenericRegister(uint32_t a_dppReg, uint32_t a_dppRegVal)
used to set generic registers in the DPP psd firmware
Definition: DigiState.cpp:760
int connect()
Definition: DigiState.cpp:37
int testSoftTriggeredReadout()
Definition: DigiState.cpp:265
int writeRegisterWithMask(uint32_t a_dppReg, uint32_t a_dppRegVal, uint32_t a_mask)
Definition: DigiState.cpp:774
int setPosPolarity(int a_ch, bool a_posPolarity)
set the polarity of the aniticipated pulses 0 = negative
Definition: DigiState.cpp:392
int setDCOffset(int a_ch, uint32_t a_DCOffset)
Definition: DigiState.cpp:333
int setTrigValWin(int a_ch, int a_tvaw)
Definition: DigiState.cpp:642
int setPreTrigSize(int a_ch, uint32_t a_preTrigSize)
set the number of samples before the trigger
Definition: DigiState.cpp:365
int stopAcquisition()
Definition: DigiState.cpp:247
int allChOff()
Definition: DigiState.cpp:428
int setThreshold(int a_ch, int a_thr)
Definition: DigiState.cpp:504
int setSelfTrigger(int a_ch, int a_selft)
Definition: DigiState.cpp:527
int getAndPrintTemps()
Definition: DigiState.cpp:1249
int setChargeSensitivity(int a_ch, int a_csens)
Definition: DigiState.cpp:550
int setPreGateWidth(int a_ch, int a_pgate)
Definition: DigiState.cpp:619
int setChannelRecordLength(uint32_t a_length, int a_ch)
Definition: DigiState.cpp:312
int setDPPAcquisitionMode(CAEN_DGTZ_DPP_AcqMode_t a_DPP_AcqMode)
Definition: DigiState.cpp:303
int setCFDFrac(int a_ch, int a_cfdf)
Definition: DigiState.cpp:713
DigiState()
Definition: DigiState.cpp:11
int disconnect()
Definition: DigiState.cpp:149
std::vector< CAEN_DGTZ_DPP_PSD_Event_t > getStoredEvents(int a_ch)
this returns channel independent collection of CAEN_DGTZ_DPP_PSD_Event_t
Definition: DigiState.cpp:813
int clearData()
this function dumps the internal arrays storing events and waveforms
Definition: DigiState.cpp:488
int setDiscrMode(int a_ch, int a_discr)
Definition: DigiState.cpp:689
int setNumBaseSample(int a_ch, int a_nsbl)
Definition: DigiState.cpp:665
int readoutBoard()
Definition: DigiState.cpp:1177
int setLongGate(int a_ch, int a_lgate)
Definition: DigiState.cpp:596
~DigiState()
Definition: DigiState.cpp:1312
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)
Definition: DigiState.cpp:454
int setChStatus(int a_ch, bool a_onOff)
Definition: DigiState.cpp:434
int setCFDDelay(int a_ch, int a_cfdd)
Definition: DigiState.cpp:737