The purpose of this software is to interface the CAEN libraries with a clean GUI and save the files in the SBC Binary format while minimizing dead time.
- Have Git, CMake (3.11 or higher) and a C++20 compatible compiler.
- Install the CAEN libraries: CAENVMElib, CAENComm and CAENDigitizer.
- (optional) VULKAN-SDK (if using the vulkan backend)
- Have SiPMCharacterization in the same folder as this git.
If compiling this for windows make sure you have downloaded and installed:
- MSYS2 (with build-essentials, clang-tools-extra PREFERRED). Click MSYS2 for more instructions.
- Git for windows
Then clone the repository
git clone https://github.com/SBC-Collaboration/SBC-SIPM-Testing-Software
In a Windows terminal, the compilation steps are:
cd ${PROJECT_LOCATION}
cmake . -B build -G "MinGW Makefiles" -DCAEN_DIR=${CAEN_LOCATION} -DUSE_VULKAN=ON
If not using the Vulkan backend set USE_VULKAN to OFF.mingw32-make -j
CAEN_LOCATION should be C:\CAEN or whenever it was installed.
Have a working C++ compiler with C++20 features, cmake, and git. Then clone the repository:
git clone https://github.com/SBC-Collaboration/SBC-SIPM-Testing-Software
The compilation steps are (Linux):
cd ${PROJECT_LOCATION}
cmake . -B build -G "MinGW Makefiles" -DCAEN_DIR=${CAEN_LOCATION} -DUSE_VULKAN=ON
If not using the Vulkan backend set USE_VULKAN to OFF.make -j
You will probably have some errors in the cmake running, most of them can be solved by googling the library that is required!
Good luck.
If the intention is to use this software to run the CAEN digitizer functionalities. It is required to install CAEN libraries. For both linux and windows, this can be done by following the CAENVME, CAENComm and CAENDigitizer libraries installation instruction.
If they are installed in an unusual location, it is possible to add -DCAEN_DIR=dir\to\CAEN
while running cmake.
If the intention is to develop the code:
- Install Sublime text
- Install the package manager in Sublime text.
- Then, follow this link to install SublimeLinter, SublimeLinter-cpplint, and LSP.
- Follow the Windows/Linux compiling instructions
- WINDOWS ONLY: to make step 2 work and after installing MSYS2, it is required to install clang-tidy and clangd. For that, click this link.
- During cmake add the option
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
- With all of this, Sublime Text should turn into a full IDE with code completion and error checking!
or
- Get Clion. It should be free as long as you are a student.
-- Nothing so far, but I bet they are there. Lurking in the shadows.
You do not need to install any of these dependencies directly, I just want to have a space to thank all of these awesome people. Without them, this project would not have been possible!