diff --git a/etc/scdaq/scdaq.json5 b/etc/scdaq/scdaq.json5 new file mode 100644 index 0000000000000000000000000000000000000000..45b70ce16552fc86181d73dedb479b40bcd1685e --- /dev/null +++ b/etc/scdaq/scdaq.json5 @@ -0,0 +1,40 @@ +{ + // Input settings ////////////////////////////////////////////////// + // Input type, one of: + // "wzdma" for DMA driver from Wojciech M. Zabolotny + // "filedma" for reading from file and simulating DMA + // "micronDMA" for PICO driver + // "tcpip" for TCP/IP input receving + input: "tcpip", + // DMA device + dma_dev: "", + // Max received packet size in bytes (buffer to reserve) + dma_packet_buffer_size: 1261568, + // Number of packet buffers to allocate + dma_number_of_packet_buffers: 1000, + // Print report each N packets, use 0 to disable + packets_per_report: 200000, + // Extra settings for "filedma" input + input_files: [ + // Must have at least the same cardinality as input_streams; kept isolated since `FileDMA` is a development feature + ], + // Processor settings ////////////////////////////////////////////// + enable_stream_processor: "yes", + // Enable software zero-suppression. Does not affect Calo. + doZS: "yes", + // Output settings ///////////////////////////////////////////////// + output_filename_prefix: "", + output_filename_suffix: ".raw", + max_file_size: 8589934592, + // Always write data to a file regardless of the run status + output_force_write: "no", + // Generic settings //////////////////////////////////////////////// + port: 8000, + dev_TCPAutoReconnectOnFailure: "true", + // (Minimum) Logging severity: TRACE DEBUG INFO WARNING ERROR FATAL. + // Use TRACE to log everything. + log_min_severity: "DEBUG", + threads: 4, + cmsswHeaders: "yes", + dthHeaders: "yes" +} diff --git a/scripts/scdaqrpm.sh b/scripts/scdaqrpm.sh index 7bb5c2e0ed63c4889d99da2fdf119e528862eda0..e25714abd7ceda985fd450be077b8e01fde4e3fe 100755 --- a/scripts/scdaqrpm.sh +++ b/scripts/scdaqrpm.sh @@ -170,7 +170,7 @@ if [ "$BUILDSYS" = "cmake" ]; then else cp $TOPDIR/RPMBUILD/BUILD/src/scdaq opt/scdaq/bin/ fi -cp -R $BASEDIR/etc/scdaq/scdaq.conf etc/scdaq/ +cp -R $BASEDIR/etc/scdaq/scdaq.json5 etc/scdaq/ #touch opt/scdaq/scratch/new-version @@ -188,7 +188,7 @@ systemctl daemon-reload %dir %attr(777, -, -) /var/log/scdaq/pid %defattr(-, scouter, root, -) /opt/scdaq/ -%config /etc/scdaq/scdaq.conf +%config /etc/scdaq/scdaq.json5 %attr( 644 ,root, root) /usr/lib/systemd/system/runSCdaq.service %preun