This is a remake of the FSUDAQ using Qt6
Go to file
2023-10-04 13:13:38 -04:00
.vscode fixed EventBuilder.cpp 2023-09-06 13:24:38 -04:00
analyzers various fixes 2023-08-28 15:02:56 -04:00
.gitignore added FSU2ROOT.cpp, a simple convertor 2023-09-05 14:23:52 -04:00
ClassData.h update PSD and PHA register 2023-10-04 13:13:38 -04:00
ClassDigitizer.cpp Make ClassData.h and event builder independent of CAEN Library, some improvement of DAQ UI 2023-09-08 17:21:05 -04:00
ClassDigitizer.h add some for DPP-QDC, not much 2023-06-20 16:18:02 -04:00
CustomThreads.h Make ClassData.h and event builder independent of CAEN Library, some improvement of DAQ UI 2023-09-08 17:21:05 -04:00
CustomWidgets.h improve Histogram1D and trace View 2023-06-01 17:51:00 -04:00
DataGenerator.cpp clean repository, update gitignore 2023-06-14 16:32:49 -04:00
DataReaderScript.cpp in progress to fix the EventBuilder.cpp 2023-09-06 09:59:06 -04:00
DigiSettingsPanel.cpp update PSD and PHA register 2023-10-04 13:13:38 -04:00
DigiSettingsPanel.h update PSD and PHA register 2023-10-04 13:13:38 -04:00
EventBuilder.cpp fixed EventBuilder.cpp 2023-09-06 13:24:38 -04:00
FSU2ROOT.cpp added FSU2ROOT.cpp, a simple convertor 2023-09-05 14:23:52 -04:00
FSUDAQ_Qt6.pro a folder to group all analyzer, make Encore analyzer 2023-08-25 11:23:23 -04:00
FSUDAQ.cpp Make ClassData.h and event builder independent of CAEN Library, some improvement of DAQ UI 2023-09-08 17:21:05 -04:00
FSUDAQ.h various fixes 2023-08-28 15:02:56 -04:00
Histogram1D.h histogram bug fix. histogram internal counter not reset after ACQ stop or histogram clear 2023-08-16 17:54:35 -04:00
Histogram2D.h testes many things with pulser (except backward event building). All parts looks good at 10 Hz 2023-06-20 11:57:39 -04:00
influxdb.cpp histogram bug fix. histogram internal counter not reset after ACQ stop or histogram clear 2023-08-16 17:54:35 -04:00
influxdb.h add influxdb 2023-05-24 16:04:32 -04:00
macro.h various fixs and improvements duraing Encore run, rate ~ 1k/ch 2023-08-24 13:27:16 -04:00
main.cpp added program lock, only one instance 2023-08-17 12:50:45 -04:00
Makefile_Aux added FSU2ROOT.cpp, a simple convertor 2023-09-05 14:23:52 -04:00
MultiBuilder.cpp fixed EventBuilder.cpp 2023-09-06 13:24:38 -04:00
MultiBuilder.h in progress to fix the EventBuilder.cpp 2023-09-06 09:59:06 -04:00
qcustomplot.cpp change histogram2D with qcustomplot 2023-05-30 13:57:45 -04:00
qcustomplot.h change histogram2D with qcustomplot 2023-05-30 13:57:45 -04:00
README.md disable digiSetting panel when ACQ started, fix prfix not working bug 2023-09-06 15:05:27 -04:00
RegisterAddress.h update PSD and PHA register 2023-10-04 13:13:38 -04:00
Scope.cpp various fixs and improvements duraing Encore run, rate ~ 1k/ch 2023-08-24 13:27:16 -04:00
Scope.h added debug code and solve the peak average issue 2023-08-17 12:38:15 -04:00
SingleSpectra.cpp histogram bug fix. histogram internal counter not reset after ACQ stop or histogram clear 2023-08-16 17:54:35 -04:00
SingleSpectra.h histogram bug fix. histogram internal counter not reset after ACQ stop or histogram clear 2023-08-16 17:54:35 -04:00
test_indep.cpp testes many things with pulser (except backward event building). All parts looks good at 10 Hz 2023-06-20 11:57:39 -04:00
test.cpp testes many things with pulser (except backward event building). All parts looks good at 10 Hz 2023-06-20 11:57:39 -04:00

Introduction

This is a DAQ for 1st gen CAEN digitizer for V1725, V17255S, V1230 with PHA and PSD firmware.

It has scope (updated every half-sec), allow full control of the digitizer (except LVDS), and allow saving waveform.

It can be connected to InfluxDB v1.8 and Elog.

Each channel has it own 1D histogram. It will not be filled by default, but can enable it in the "Online 1D histgram" panel. The binning of each histogram will be saved under the raw data path as singleSpectaSetting.txt

Online analyzer

A Multi-builder (event builder that can build event across multiple digitizer) is made. It has normal event building code and also a backward event building code that build events from the latest data up to certain amont of event.

A 1-D and 2-D histogram is avalible. In the 2-D histogram, graphical cuts can be created and rename.

An online analyzer class is created as a template for online analysis. An example is the SplitPoleAnalyzer.h. It demo a 2-D histogram and a 1-D histogram, and the way to output the rates of cuts to influxDB.

Notice that, when the FSUDAQ is started, the online analyzer is a null pointer, no event will be built. Once the online anlyzer is created and opened, event will be built, event the window is closed.

Operation

When programSettings.txt is presented in the same folder as the FSUDAQ_Qt, the program will load it can config the following

  • (line 1) raw data path, where the data will be stored.
  • (line 2) the influxDB v1.8 IP
  • (line 3) the database name
  • (line 4) the elog IP
  • (line 5) the elog logbook name
  • (line 6) elog user name
  • (line 7) elog user password

If no programSettings.txt is found. The program can still search for all digitizers that connected using optical cable. Missing the raw data path will disable save data run, but still can start the ACQ. Missing InfluxDB (elog) variables will disable influxDB (elog).

Undergoing

the following additional functions are planned and I am working on them

  • support V1740 DPP-QDC

ToDo

  • Gaussians fitting for 1D Histogram
  • log scale for 1D and 2D Histogram
  • Improve the color scheme for 2D histogram

Required / Development enviroment

Ubuntu 22.04

  • CAENVMELib v3.3

  • CAENCOmm v1.5.3

  • CAENDigitizer v2.17.1

  • CAEN A3818 Driver v1.6.8

  • qt6-base-dev

  • libqt6charts6-dec

  • libcurl4-openssl-dev

  • elog

The CAEN Libraries need to download and install manually. The other libraries can be installed using the following command:

sudo apt install qt6-base-dev libqt6charts6-dev libcurl4-openssl-dev elog

The elog installed using apt is 3.1.3. If a higher version is needed. Please go to https://elog.psi.ch/elog/

The libcurl4 is need for pushing data to InfluxDB v1.8

The QCustomPlot (https://www.qcustomplot.com/index.php/introduction) source files are already included in the repository.

Compile

in case the *.pro not exist

use qmake6 -project to generate the *.pro

in the *.pro, add

QT += core widgets charts printsupport

LIBS += -lCAENDigitizer -lcurl

if *.pro exist

then run qmake6 *.pro it will generate Makefile

then make

if you want to use GDB debugger, in the *.pro file add

QMAKE_CXXFLAGS += -g

exclude some files from the auto-gen *.pro

The following files must be excluded from the *.pro, as they are not related to the GUI

  • DataGenerator.cpp
  • DataReaderScript.cpp
  • EventBuilder.cpp
  • test.cpp
  • test_indep.cpp

Those file can be compiled using

make -f Makefile_test

Known Issues

  • DC offset issue. When porgram default settings, the DC offset is not the same for all channels.
  • for PHA firmware, when the trigger average changed, the Events per Agg need to be changed.
  • Sometimes, the buffer is not in time order, and make the trigger/Accept rate to be nagative. This is nothing to do with the program but the digitizer settings. Recommand reporgram the digitizer.

Known Bugs