mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-04 20:04:14 +02:00
more debug info. bunch/pulseid adjusts.
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <ostream>
|
||||
|
||||
namespace BufferUtils
|
||||
{
|
||||
@@ -19,6 +20,20 @@ namespace BufferUtils
|
||||
const int n_modules;
|
||||
const int start_udp_port;
|
||||
const std::string buffer_folder;
|
||||
|
||||
friend std::ostream& operator <<(std::ostream& os, DetectorConfig const& det_config)
|
||||
{
|
||||
return os << det_config.streamvis_address << ' '
|
||||
<< det_config.reduction_factor_streamvis << ' '
|
||||
<< det_config.live_analysis_address << ' '
|
||||
<< det_config.reduction_factor_live_analysis << ' '
|
||||
<< det_config.PEDE_FILENAME << ' '
|
||||
<< det_config.GAIN_FILENAME << ' '
|
||||
<< det_config.detector_name << ' '
|
||||
<< det_config.n_modules << ' '
|
||||
<< det_config.start_udp_port << ' '
|
||||
<< det_config.buffer_folder << ' ';
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -6,8 +6,12 @@
|
||||
#define N_MODULES 1
|
||||
#define BYTES_PER_PACKET 1072
|
||||
#define DATA_BYTES_PER_PACKET 1024
|
||||
#define N_PACKETS_PER_FRAME 128
|
||||
#define DATA_BYTES_PER_FRAME 131072
|
||||
// DR 16
|
||||
#define N_PACKETS_PER_FRAME 256
|
||||
#define DATA_BYTES_PER_FRAME 262144
|
||||
// DR 32
|
||||
// #define N_PACKETS_PER_FRAME 512
|
||||
// #define DATA_BYTES_PER_FRAME 524288
|
||||
|
||||
#pragma pack(push)
|
||||
#pragma pack(2)
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#endif
|
||||
|
||||
#ifdef DEBUG_OUTPUT
|
||||
#define EIGER_DATA_BYTES_PER_PACKET_VALIDATION 131072
|
||||
#define EIGER_DATA_BYTES_PER_PACKET_VALIDATION 262144
|
||||
#define JUNGFRAU_DATA_BYTES_PER_PACKET_VALIDATION 1048576
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user