DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
sourcecode
datahandlinglibs
include
datahandlinglibs
RawDataHandlerBase.hpp
Go to the documentation of this file.
1
11
#ifndef DATAHANDLINGLIBS_INCLUDE_DATAHANDLINGLIBS_DATALINKHANDLERBASE_HPP_
12
#define DATAHANDLINGLIBS_INCLUDE_DATAHANDLINGLIBS_DATALINKHANDLERBASE_HPP_
13
14
#include "
datahandlinglibs/DataHandlingIssues.hpp
"
15
#include "
datahandlinglibs/concepts/DataHandlingConcept.hpp
"
16
#include "
datahandlinglibs/ReadoutLogging.hpp
"
17
#include "
daqdataformats/Types.hpp
"
18
#include "
logging/Logging.hpp
"
19
20
#include "
rcif/cmd/Nljs.hpp
"
21
22
#include "
appfwk/DAQModule.hpp
"
23
#include "
appfwk/ConfigurationManager.hpp
"
24
#include "
appmodel/DataHandlerModule.hpp
"
25
26
#include <chrono>
27
#include <memory>
28
#include <string>
29
#include <vector>
30
31
namespace
dunedaq
{
32
namespace
datahandlinglibs
{
33
34
class
RawDataHandlerBase
35
{
36
public
:
41
explicit
RawDataHandlerBase
(
const
std::string& name);
42
virtual
~RawDataHandlerBase
() {}
43
44
RawDataHandlerBase
(
const
RawDataHandlerBase
&) =
delete
;
45
RawDataHandlerBase
&
operator=
(
const
RawDataHandlerBase
&) =
delete
;
46
RawDataHandlerBase
(
RawDataHandlerBase
&&) =
delete
;
47
RawDataHandlerBase
&
operator=
(
RawDataHandlerBase
&&) =
delete
;
48
49
void
init
(std::shared_ptr<appfwk::ConfigurationManager> cfg);
50
// void get_info(opmonlib::InfoCollector& ci, int level);
51
52
virtual
std::shared_ptr<dunedaq::datahandlinglibs::DataHandlingConcept>
53
create_readout
(
const
appmodel::DataHandlerModule
* modconf, std::atomic<bool>&
run_marker
) = 0;
54
55
// Commands
56
void
do_conf
(
const
appfwk::DAQModule::CommandData_t&
/*args*/
);
57
void
do_scrap
(
const
appfwk::DAQModule::CommandData_t&
/*args*/
);
58
void
do_start
(
const
appfwk::DAQModule::CommandData_t&
/*args*/
);
59
void
do_stop
(
const
appfwk::DAQModule::CommandData_t&
/*args*/
);
60
void
do_record
(
const
appfwk::DAQModule::CommandData_t&
/*args*/
);
61
62
std::string
get_dlh_name
() {
return
m_name
; }
63
64
private
:
65
66
// Configuration
67
bool
m_configured
;
68
daqdataformats::run_number_t
m_run_number
;
69
70
// Name
71
std::string
m_name
;
72
73
// Internal
74
std::shared_ptr<datahandlinglibs::DataHandlingConcept>
m_readout_impl
;
75
76
// Threading
77
std::atomic<bool>
m_run_marker
;
78
};
79
80
}
// namespace datahandlinglibs
81
}
// namespace dunedaq
82
83
// Declarations
84
#include "
detail/RawDataHandlerBase.hxx
"
85
86
#endif
// DATAHANDLINGLIBS_INCLUDE_DATAHANDLINGLIBS_DATALINKHANDLERBASE_HPP_
ConfigurationManager.hpp
DAQModule.hpp
DataHandlingConcept.hpp
DataHandlingIssues.hpp
RawDataHandlerBase.hxx
ReadoutLogging.hpp
dunedaq::appmodel::DataHandlerModule
Definition
DataHandlerModule.hpp:36
dunedaq::datahandlinglibs::RawDataHandlerBase::create_readout
virtual std::shared_ptr< dunedaq::datahandlinglibs::DataHandlingConcept > create_readout(const appmodel::DataHandlerModule *modconf, std::atomic< bool > &run_marker)=0
dunedaq::datahandlinglibs::RawDataHandlerBase::operator=
RawDataHandlerBase & operator=(RawDataHandlerBase &&)=delete
RawDataHandlerBase is not move-assignable.
dunedaq::datahandlinglibs::RawDataHandlerBase::m_run_number
daqdataformats::run_number_t m_run_number
Definition
RawDataHandlerBase.hpp:68
dunedaq::datahandlinglibs::RawDataHandlerBase::operator=
RawDataHandlerBase & operator=(const RawDataHandlerBase &)=delete
RawDataHandlerBase is not copy-assignable.
dunedaq::datahandlinglibs::RawDataHandlerBase::do_conf
void do_conf(const appfwk::DAQModule::CommandData_t &)
Definition
RawDataHandlerBase.hxx:45
dunedaq::datahandlinglibs::RawDataHandlerBase::RawDataHandlerBase
RawDataHandlerBase(const std::string &name)
RawDataHandlerBase Constructor.
Definition
RawDataHandlerBase.hxx:4
dunedaq::datahandlinglibs::RawDataHandlerBase::init
void init(std::shared_ptr< appfwk::ConfigurationManager > cfg)
Definition
RawDataHandlerBase.hxx:21
dunedaq::datahandlinglibs::RawDataHandlerBase::do_stop
void do_stop(const appfwk::DAQModule::CommandData_t &)
Definition
RawDataHandlerBase.hxx:74
dunedaq::datahandlinglibs::RawDataHandlerBase::m_configured
bool m_configured
Definition
RawDataHandlerBase.hpp:67
dunedaq::datahandlinglibs::RawDataHandlerBase::do_start
void do_start(const appfwk::DAQModule::CommandData_t &)
Definition
RawDataHandlerBase.hxx:62
dunedaq::datahandlinglibs::RawDataHandlerBase::RawDataHandlerBase
RawDataHandlerBase(const RawDataHandlerBase &)=delete
RawDataHandlerBase is not copy-constructible.
dunedaq::datahandlinglibs::RawDataHandlerBase::get_dlh_name
std::string get_dlh_name()
Definition
RawDataHandlerBase.hpp:62
dunedaq::datahandlinglibs::RawDataHandlerBase::~RawDataHandlerBase
virtual ~RawDataHandlerBase()
Definition
RawDataHandlerBase.hpp:42
dunedaq::datahandlinglibs::RawDataHandlerBase::m_run_marker
std::atomic< bool > m_run_marker
Definition
RawDataHandlerBase.hpp:77
dunedaq::datahandlinglibs::RawDataHandlerBase::m_name
std::string m_name
Definition
RawDataHandlerBase.hpp:71
dunedaq::datahandlinglibs::RawDataHandlerBase::do_scrap
void do_scrap(const appfwk::DAQModule::CommandData_t &)
Definition
RawDataHandlerBase.hxx:54
dunedaq::datahandlinglibs::RawDataHandlerBase::RawDataHandlerBase
RawDataHandlerBase(RawDataHandlerBase &&)=delete
RawDataHandlerBase is not move-constructible.
dunedaq::datahandlinglibs::RawDataHandlerBase::do_record
void do_record(const appfwk::DAQModule::CommandData_t &)
Definition
RawDataHandlerBase.hxx:84
dunedaq::datahandlinglibs::RawDataHandlerBase::m_readout_impl
std::shared_ptr< datahandlinglibs::DataHandlingConcept > m_readout_impl
Definition
RawDataHandlerBase.hpp:74
run_marker
std::atomic< bool > run_marker
Global atomic for process lifetime.
Definition
daq_application.cxx:26
Types.hpp
DataHandlerModule.hpp
Logging.hpp
dunedaq::daqdataformats::run_number_t
uint32_t run_number_t
Definition
Types.hpp:17
dunedaq::datahandlinglibs
Definition
DataHandlingConcept.hpp:16
dunedaq
Including Qt Headers.
Definition
module.cpp:16
Nljs.hpp
Generated on
for DUNE-DAQ by
1.17.0