|
DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
#include <DAPHNEEthStreamFrameProcessor.hpp>
Public Types | |
| using | inherited = datahandlinglibs::TaskRawDataProcessorModel<types::DAPHNEEthStreamTypeAdapter> |
| using | frameptr = types::DAPHNEEthStreamTypeAdapter* |
| using | daphneframeptr = dunedaq::fddetdataformats::DAPHNEEthStreamFrame* |
| using | timestamp_t = std::uint64_t |
Public Types inherited from dunedaq::opmonlib::MonitorableObject | |
| using | NodePtr = std::weak_ptr<MonitorableObject> |
| using | NewNodePtr = std::shared_ptr<MonitorableObject> |
| using | ElementId = std::string |
Public Member Functions | |
| DAPHNEEthStreamFrameProcessor (std::unique_ptr< datahandlinglibs::FrameErrorRegistry > &error_registry, bool post_processing_enabled) | |
| void | conf (const appmodel::DataHandlerModule *conf) override |
| Set the emulator mode, if active, timestamps of processed packets are overwritten with new ones. | |
Public Member Functions inherited from dunedaq::datahandlinglibs::TaskRawDataProcessorModel< types::DAPHNEEthStreamTypeAdapter > | |
| TaskRawDataProcessorModel (std::unique_ptr< FrameErrorRegistry > &error_registry, bool post_processing_enabled) | |
| ~TaskRawDataProcessorModel () | |
| void | conf (const appmodel::DataHandlerModule *conf) override |
| Set the emulator mode, if active, timestamps of processed packets are overwritten with new ones. | |
| void | scrap (const appfwk::DAQModule::CommandData_t &) override |
| Unconfigure. | |
| void | start (const appfwk::DAQModule::CommandData_t &) override |
| Start operation. | |
| void | stop (const appfwk::DAQModule::CommandData_t &) override |
| Stop operation. | |
| void | reset_last_daq_time () |
| std::uint64_t | get_last_daq_time () override |
| Get newest timestamp of last seen packet. | |
| void | preprocess_item (types::DAPHNEEthStreamTypeAdapter *item) override |
| Preprocess one element. | |
| void | postprocess_item (const types::DAPHNEEthStreamTypeAdapter *item) override |
| Postprocess one element. | |
| void | invoke_postprocess_schedule_timeout_policy (std::uint64_t accumilated_timeout_ticks) override |
| Handle postprocess timeout event. | |
| void | add_preprocess_task (Task &&task) |
| void | add_postprocess_task (Task &&task) |
| void | invoke_all_preprocess_functions (types::DAPHNEEthStreamTypeAdapter *item) |
| void | launch_all_preprocess_functions (types::DAPHNEEthStreamTypeAdapter *item) |
Public Member Functions inherited from dunedaq::datahandlinglibs::RawDataProcessorConcept< types::DAPHNEEthStreamTypeAdapter > | |
| RawDataProcessorConcept () | |
| RawDataProcessorConcept (const RawDataProcessorConcept &)=delete | |
| RawDataProcessorConcept is not copy-constructible. | |
| RawDataProcessorConcept (RawDataProcessorConcept &&)=delete | |
| RawDataProcessorConcept is not move-constructible. | |
| virtual | ~RawDataProcessorConcept () |
| RawDataProcessorConcept & | operator= (const RawDataProcessorConcept &)=delete |
| RawDataProcessorConcept is not copy-assginable. | |
| RawDataProcessorConcept & | operator= (RawDataProcessorConcept &&)=delete |
| RawDataProcessorConcept is not move-assignable. | |
Public Member Functions inherited from dunedaq::opmonlib::MonitorableObject | |
| MonitorableObject (const MonitorableObject &)=delete | |
| MonitorableObject & | operator= (const MonitorableObject &)=delete |
| MonitorableObject (MonitorableObject &&)=delete | |
| MonitorableObject & | operator= (MonitorableObject &&)=delete |
| virtual | ~MonitorableObject ()=default |
| auto | get_opmon_id () const noexcept |
| auto | get_opmon_level () const noexcept |
Protected Member Functions | |
| void | timestamp_check (frameptr) |
| void | frame_error_check (frameptr) |
Protected Member Functions inherited from dunedaq::datahandlinglibs::TaskRawDataProcessorModel< types::DAPHNEEthStreamTypeAdapter > | |
| virtual void | generate_opmon_data () override |
| void | run_post_processing_thread (std::function< void(const types::DAPHNEEthStreamTypeAdapter *)> &function, folly::ProducerConsumerQueue< const types::DAPHNEEthStreamTypeAdapter * > &queue) |
Protected Member Functions inherited from dunedaq::opmonlib::MonitorableObject | |
| MonitorableObject ()=default | |
| void | register_node (ElementId name, NewNodePtr) |
| void | publish (google::protobuf::Message &&, CustomOrigin &&co={}, OpMonLevel l=to_level(EntryOpMonLevel::kDefault)) const noexcept |
Protected Attributes | |
| timestamp_t | m_previous_ts = 0 |
| timestamp_t | m_current_ts = 0 |
| bool | m_first_ts_fake = true |
| bool | m_first_ts_missmatch = true |
| bool | m_problem_reported = false |
| std::atomic< int > | m_ts_error_ctr { 0 } |
Protected Attributes inherited from dunedaq::datahandlinglibs::TaskRawDataProcessorModel< types::DAPHNEEthStreamTypeAdapter > | |
| std::vector< std::function< void(types::DAPHNEEthStreamTypeAdapter *)> > | m_preprocess_functions |
| std::unique_ptr< FrameErrorRegistry > & | m_error_registry |
| bool | m_post_processing_enabled |
| std::atomic< bool > | m_run_marker |
| std::vector< std::function< void(const types::DAPHNEEthStreamTypeAdapter *)> > | m_post_process_functions |
| std::vector< std::unique_ptr< folly::ProducerConsumerQueue< const types::DAPHNEEthStreamTypeAdapter * > > > | m_items_to_postprocess_queues |
| std::vector< std::unique_ptr< utilities::ReusableThread > > | m_post_process_threads |
| size_t | m_postprocess_queue_sizes |
| daqdataformats::SourceID | m_sourceid |
| std::atomic< uint64_t > | m_last_processed_daq_ts |
Additional Inherited Members | |
Static Public Member Functions inherited from dunedaq::opmonlib::MonitorableObject | |
| static bool | publishable_metric (OpMonLevel entry, OpMonLevel system) noexcept |
Definition at line 32 of file DAPHNEEthStreamFrameProcessor.hpp.
| using dunedaq::fdreadoutlibs::DAPHNEEthStreamFrameProcessor::daphneframeptr = dunedaq::fddetdataformats::DAPHNEEthStreamFrame* |
Definition at line 38 of file DAPHNEEthStreamFrameProcessor.hpp.
| using dunedaq::fdreadoutlibs::DAPHNEEthStreamFrameProcessor::frameptr = types::DAPHNEEthStreamTypeAdapter* |
Definition at line 37 of file DAPHNEEthStreamFrameProcessor.hpp.
| using dunedaq::fdreadoutlibs::DAPHNEEthStreamFrameProcessor::inherited = datahandlinglibs::TaskRawDataProcessorModel<types::DAPHNEEthStreamTypeAdapter> |
Definition at line 36 of file DAPHNEEthStreamFrameProcessor.hpp.
| using dunedaq::fdreadoutlibs::DAPHNEEthStreamFrameProcessor::timestamp_t = std::uint64_t |
Definition at line 39 of file DAPHNEEthStreamFrameProcessor.hpp.
|
inlineexplicit |
Definition at line 41 of file DAPHNEEthStreamFrameProcessor.hpp.
|
overridevirtual |
Set the emulator mode, if active, timestamps of processed packets are overwritten with new ones.
Implements dunedaq::datahandlinglibs::RawDataProcessorConcept< types::DAPHNEEthStreamTypeAdapter >.
Definition at line 24 of file DAPHNEEthStreamFrameProcessor.cpp.
|
protected |
Pipeline Stage 2.: Check DAPHNE headers for error flags
Definition at line 80 of file DAPHNEEthStreamFrameProcessor.cpp.
|
protected |
Pipeline Stage 1.: Check proper timestamp increments in DAPHNE frame
Definition at line 36 of file DAPHNEEthStreamFrameProcessor.cpp.
|
protected |
Definition at line 61 of file DAPHNEEthStreamFrameProcessor.hpp.
|
protected |
Definition at line 62 of file DAPHNEEthStreamFrameProcessor.hpp.
|
protected |
Definition at line 63 of file DAPHNEEthStreamFrameProcessor.hpp.
|
protected |
Definition at line 60 of file DAPHNEEthStreamFrameProcessor.hpp.
|
protected |
Definition at line 64 of file DAPHNEEthStreamFrameProcessor.hpp.
|
protected |
Definition at line 65 of file DAPHNEEthStreamFrameProcessor.hpp.