controls scripts of eiger and debug msgs

This commit is contained in:
lhdamiani
2021-03-05 16:47:18 +01:00
parent edb9b94fa5
commit 22f73b0273
11 changed files with 268 additions and 34 deletions
+12
View File
@@ -5,6 +5,8 @@
#include <BufferUtils.hpp>
#include <AssemblerStats.hpp>
#include "date.h"
#include <chrono>
#include "assembler_config.hpp"
#include "ZmqPulseSyncReceiver.hpp"
@@ -40,6 +42,16 @@ int main (int argc, char *argv[])
AssemblerStats stats(config.detector_name, ASSEMBLER_STATS_MODULO);
ImageMetadata meta;
#ifdef DEBUG_OUTPUT
using namespace date;
cout << " [" << std::chrono::system_clock::now();
cout << "] [Assembler] :";
cout << " Details of Assembler:";
cout << "detector_name: " << config.detector_name;
cout << "n_modules: " << config.n_modules;
#endif
while (true) {
auto pulse_and_sync = receiver.get_next_pulse_id();
ram_buffer.assemble_image(pulse_and_sync.pulse_id, meta);