Fix scanler channel in readme #3

Merged
soederqvist_a merged 1 commits from cleanup into main 2026-09-21 15:59:01 +02:00
+10 -5
View File
@@ -25,13 +25,18 @@ cmake --build <directory-to-build-in> --clean-first -- -j8
```
## Specifying number of TDC channels
The number of scaler the frontend should be built with, can be specified with a CMake configuration flag, before adding the module as a subdirectory.
Currently valid options are 1 or 2 sis3820 cards. I.e. the only valid values are 32 and 64:
## Including default frontend, scaler channels
The CMakeLists.txt creates a functions that instantiates the default frontend with a few parameters:
E.g. the number of scaler channels the frontend should be built with.
Currently 1 or 2 sis3820 cards are possible. I.e. the only valid values are 32 and 64 channels.
```CMake
set(Scaler_channels "32" CACHE STRING "Number of Scaler channels" FORCE)
add_subdirectory(struck_sis3820)
# The first argument is name of executable
# The second arguments is frontend/equipment name
# The third argument the midas event id, 2 in case from GPS
# The fourth argument, example from GPS, it has 64 scaler channels.
default_scaler_frontend(scaler_sis3820_fcfe "Scaler" 2 64)
```
## Including in Custom Frontend