main
SCS2001 High Voltage APD
This repository contains the driver code and Midas frontend for the SCS2001 High Voltage Avalanche Photodiode system developed at PSI.
Requirements
Requires a Midas installation with the environment variable MIDASSYS pointing
to the built Midas artifacts and headers.
Build
Clone this repository, enter the cloned directory, and then build via CMake.
cmake -S "$(pwd)" -B <directory-to-build-in> -DBUILD_FRONTEND=ON
cmake --build <directory-to-build-in> --clean-first -- -j8
Run
<directory-to-build-in>/scs2001_hv_apd_fe -e flame
Including in Custom Frontend
To include this driver in a custom frontend, you should ensure the environment
variable MIDASSYS points to your system install and include a snippet in your
CMakeLists.txt similar to the following:
# If the path to the scs2001 repository is outside of the frontend
# repository, you also need to provide a location for the scs2001
# artifacts as a second argument to `add_subdirectory`
# e.g. `./device/SCS2001-High-Voltage-APD`
add_subdirectory(
<path-to-scs2001-repository>
)
default_scs2001_frontend(
HV_scfe # Target Name
HV # Frontend Name
213 # Event ID
64 # Number of channels
)
Languages
C
55.7%
C++
40.6%
CMake
3.7%