19 enableLogging(
"EventBuilder")
29 PhysicsEventData assemble_payload(
const std::vector<DataFragment> &fragments);
30 void write_event_binary(
const PhysicsEventData &ev,
const std::string &path =
"events.bin");
33 unsigned int m_event_id;
35 std::string m_input_file;
37 std::string m_output_name{
"BuilderOutput"};
38 long long m_coherence_window_ns{5000000};
41 int m_min_subsystems{2};
44 std::chrono::steady_clock::time_point m_start_time;
45 std::chrono::steady_clock::time_point m_event_start_time;
46 uint64_t m_total_bytes_read{0};
47 uint64_t m_total_events_built{0};
48 unsigned long m_events_since_last_report{0};
51 static constexpr unsigned int WINDOW_SIZE = 100;
52 std::chrono::steady_clock::time_point m_window_start_time;
53 uint64_t m_window_events_count{0};
54 uint64_t m_window_bytes_read{0};