DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
RawDataProcessor.hpp
Go to the documentation of this file.
1// *** this file is generated by oksdalgen, do not modify it ***
2
3#ifndef _RawDataProcessor_0_dunedaq__appmodel_0_appmodel_H_
4#define _RawDataProcessor_0_dunedaq__appmodel_0_appmodel_H_
5
6#include <stdint.h> // to define 64 bits types
7#include <iostream>
8#include <sstream>
9#include <string>
10#include <map>
11#include <vector>
12
14#include "conffwk/DalObject.hpp"
15
16 // include files for classes used in inheritance hierarchy
17
19
20namespace dunedaq {
21 namespace appmodel {
22
23 class RawDataProcessor : public dunedaq::appmodel::DataProcessor {
24
26 friend class conffwk::DalObject;
27 friend class conffwk::DalFactory;
29
30 protected:
31
33 virtual ~RawDataProcessor() noexcept;
34 virtual void init(bool init_children);
35
36 public:
37
40 static const std::string& s_class_name;
41
42
52 virtual void print(unsigned int offset, bool print_header, std::ostream& s) const;
53
54
64 virtual std::vector<const dunedaq::conffwk::DalObject *> get(const std::string& name, bool upcast_unregistered = true) const;
65
66
67 protected:
68
69 bool get(const std::string& name, std::vector<const dunedaq::conffwk::DalObject *>& vec, bool upcast_unregistered, bool first_call) const;
70
71
72 private:
73
74 std::vector<uint32_t> m_channel_mask;
76
77
78 public:
79
80 // attribute names
81
82 inline static const std::string s_channel_mask = "channel_mask";
83 inline static const std::string s_channel_map = "channel_map";
84
85 static const std::string& __get_channel_mask_str() noexcept { return s_channel_mask; }
86 static const std::string& __get_channel_map_str() noexcept { return s_channel_map; }
87
88
96 const std::vector<uint32_t>&
98 {
99 std::lock_guard scoped_lock(m_mutex);
100 check();
101 check_init();
102 return m_channel_mask;
103 }
104
112 void
113 set_channel_mask(const std::vector<uint32_t>& value)
114 {
115 std::lock_guard scoped_lock(m_mutex);
116 check();
117 clear();
119 }
120
121
128 const std::string&
130 {
131 std::lock_guard scoped_lock(m_mutex);
132 check();
133 check_init();
134 return m_channel_map;
135 }
136
143 void
144 set_channel_map(const std::string& value)
145 {
146 std::lock_guard scoped_lock(m_mutex);
147 check();
148 clear();
150 }
151
152
153 };
154
155 // out stream operator
156
157 inline std::ostream& operator<<(std::ostream& s, const RawDataProcessor& obj)
158 {
159 return obj.print_object(s);
160 }
161
162 typedef std::vector<const RawDataProcessor*>::const_iterator RawDataProcessorIterator;
163
164 }
165}
166
167#endif
virtual void init(bool init_children)
void set_channel_map(const std::string &value)
Set "channel_map" attribute value.
const std::vector< uint32_t > & get_channel_mask() const
Get "channel_mask" attribute value. List of channels to be masked from TP generation.
virtual std::vector< const dunedaq::conffwk::DalObject * > get(const std::string &name, bool upcast_unregistered=true) const
Get values of relationships and results of some algorithms as a vector of dunedaq::conffwk::DalObject...
const std::string & get_channel_map() const
Get "channel_map" attribute value.
RawDataProcessor(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
static const std::string & __get_channel_map_str() noexcept
static const std::string s_channel_map
void set_channel_mask(const std::vector< uint32_t > &value)
Set "channel_mask" attribute value. List of channels to be masked from TP generation.
static const std::string & __get_channel_mask_str() noexcept
static const std::string s_channel_mask
static const std::string & s_class_name
void set_by_val(const std::string &name, T value)
Set attribute value.
void set_by_ref(const std::string &name, T &value)
Set attribute value.
The base class for any generated DAL object.
Definition DalObject.hpp:45
std::mutex m_mutex
Used to protect changes of DAL object.
ConfigObject p_obj
Config object used by given template object.
void check_init() const
Check and initialize object if necessary.
DalRegistry: A registry of DalObjects It provides a single interface to create, cache and manage DalO...
conffwk entry point
double offset
std::ostream & operator<<(std::ostream &s, const AVXAbsRunSumProcessor &obj)
std::vector< constRawDataProcessor * >::const_iterator RawDataProcessorIterator
The DUNE-DAQ namespace.
Definition DataStore.hpp:57
msgpack::object obj