8#ifndef TRIGGER_SRC_TRIGGER_TPPROCESSOR_HPP_
9#define TRIGGER_SRC_TRIGGER_TPPROCESSOR_HPP_
41 explicit TPProcessor(std::unique_ptr<datahandlinglibs::FrameErrorRegistry>& error_registry,
bool post_processing_enabled);
45 void start(
const nlohmann::json& args)
override;
47 void stop(
const nlohmann::json& args)
override;
51 void scrap(
const nlohmann::json& args)
override;
68 std::vector<std::shared_ptr<triggeralgs::TriggerActivityMaker>>
m_tams;
70 std::shared_ptr<iomanager::SenderConcept<triggeralgs::TriggerActivity>>
m_ta_sink;
dunedaq::trigger::Latency m_latency_instance
std::atomic< bool > m_latency_monitoring
std::atomic< metric_counter_type > m_latency_out
void start(const nlohmann::json &args) override
Start operation.
daqdataformats::SourceID m_sourceid
std::vector< std::shared_ptr< triggeralgs::TriggerActivityMaker > > m_tams
std::atomic< metric_counter_type > m_ta_failed_sent_count
uint64_t metric_counter_type
dunedaq::daqdataformats::timestamp_t m_current_ts
std::atomic< metric_counter_type > m_tp_received_count
std::atomic< metric_counter_type > m_ta_sent_count
TPProcessor(std::unique_ptr< datahandlinglibs::FrameErrorRegistry > &error_registry, bool post_processing_enabled)
void scrap(const nlohmann::json &args) override
Unconfigure.
void find_ta(const TriggerPrimitiveTypeAdapter *tp, std::shared_ptr< triggeralgs::TriggerActivityMaker > tam)
std::shared_ptr< iomanager::SenderConcept< triggeralgs::TriggerActivity > > m_ta_sink
dunedaq::daqdataformats::timestamp_t m_previous_ts
std::atomic< metric_counter_type > m_ta_made_count
void stop(const nlohmann::json &args) override
Stop operation.
void conf(const appmodel::DataHandlerModule *conf) override
Set the emulator mode, if active, timestamps of processed packets are overwritten with new ones.
std::atomic< bool > m_running_flag
std::atomic< metric_counter_type > m_latency_in
void generate_opmon_data() override