DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq::appmodel::RawDataProcessor Class Reference

#include <RawDataProcessor.hpp>

Inheritance diagram for dunedaq::appmodel::RawDataProcessor:
[legend]
Collaboration diagram for dunedaq::appmodel::RawDataProcessor:
[legend]

Public Member Functions

virtual void print (unsigned int offset, bool print_header, std::ostream &s) const
 Print details of the RawDataProcessor object.
 
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 pointers.
 
const std::vector< uint32_t > & get_channel_mask () const
 Get "channel_mask" attribute value. List of channels to be masked from TP generation.
 
void set_channel_mask (const std::vector< uint32_t > &value)
 Set "channel_mask" attribute value. List of channels to be masked from TP generation.
 
const std::string & get_channel_map () const
 Get "channel_map" attribute value.
 
void set_channel_map (const std::string &value)
 Set "channel_map" attribute value.
 
const std::vector< const dunedaq::appmodel::ProcessingStep * > & get_processing_steps () const
 Get "processing_steps" relationship value.
 
void set_processing_steps (const std::vector< const dunedaq::appmodel::ProcessingStep * > &value)
 Set "processing_steps" relationship value.
 
const dunedaq::appmodel::SamplesOverThresholdMinimaget_sot_minima () const
 Get "sot_minima" relationship value. TP samples over threshold minimum requirement by plane.
 
void set_sot_minima (const dunedaq::appmodel::SamplesOverThresholdMinima *value)
 Set "sot_minima" relationship value. TP samples over threshold minimum requirement by plane.
 
virtual void print (unsigned int offset, bool print_header, std::ostream &s) const
 Print details of the RawDataProcessor object.
 
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 pointers.
 
const std::vector< uint32_t > & get_channel_mask () const
 Get "channel_mask" attribute value. List of channels to be masked from TP generation.
 
void set_channel_mask (const std::vector< uint32_t > &value)
 Set "channel_mask" attribute value. List of channels to be masked from TP generation.
 
const std::string & get_channel_map () const
 Get "channel_map" attribute value.
 
void set_channel_map (const std::string &value)
 Set "channel_map" attribute value.
 
const std::vector< const dunedaq::appmodel::ProcessingStep * > & get_processing_steps () const
 Get "processing_steps" relationship value.
 
void set_processing_steps (const std::vector< const dunedaq::appmodel::ProcessingStep * > &value)
 Set "processing_steps" relationship value.
 
const dunedaq::appmodel::SamplesOverThresholdMinimaget_sot_minima () const
 Get "sot_minima" relationship value. TP samples over threshold minimum requirement by plane.
 
void set_sot_minima (const dunedaq::appmodel::SamplesOverThresholdMinima *value)
 Set "sot_minima" relationship value. TP samples over threshold minimum requirement by plane.
 
- Public Member Functions inherited from dunedaq::appmodel::DataProcessor
uint32_t get_queue_sizes () const
 Get "queue_sizes" attribute value.
 
void set_queue_sizes (uint32_t value)
 Set "queue_sizes" attribute value.
 
const std::string & get_thread_names_prefix () const
 Get "thread_names_prefix" attribute value.
 
void set_thread_names_prefix (const std::string &value)
 Set "thread_names_prefix" attribute value.
 
bool get_latency_monitoring () const
 Get "latency_monitoring" attribute value.
 
void set_latency_monitoring (bool value)
 Set "latency_monitoring" attribute value.
 
uint32_t get_queue_sizes () const
 Get "queue_sizes" attribute value.
 
void set_queue_sizes (uint32_t value)
 Set "queue_sizes" attribute value.
 
const std::string & get_thread_names_prefix () const
 Get "thread_names_prefix" attribute value.
 
void set_thread_names_prefix (const std::string &value)
 Set "thread_names_prefix" attribute value.
 
bool get_latency_monitoring () const
 Get "latency_monitoring" attribute value.
 
void set_latency_monitoring (bool value)
 Set "latency_monitoring" attribute value.
 
- Public Member Functions inherited from dunedaq::conffwk::DalObject
const std::string & UID () const noexcept
 
const std::string & class_name () const noexcept
 
bool castable (const std::string &target) const noexcept
 
bool castable (const std::string *target) const noexcept
 
template<class TARGET >
const TARGET * cast () const noexcept
 Casts object to different class.
 
std::string full_name () const noexcept
 
const ConfigObjectconfig_object () const
 
DalRegistryregistry () const noexcept
 
Configurationconfiguration () const noexcept
 
void unread ()
 
void set (const ConfigObject &o) noexcept
 
void move (const std::string &at)
 
void rename (const std::string &new_id)
 
void p_hdr (std::ostream &s, unsigned int indent, const std::string &cl, const char *nm=nullptr) const
 print object headers
 
std::ostream & print_object (std::ostream &s) const
 print object details
 
void throw_init_ex (dunedaq::conffwk::Exception &ex)
 throw object initialisation exception (i.e.
 

Static Public Member Functions

static const std::string & __get_channel_mask_str () noexcept
 
static const std::string & __get_channel_map_str () noexcept
 
static const std::string & __get_processing_steps_str () noexcept
 
static const std::string & __get_sot_minima_str () noexcept
 
static const std::string & __get_channel_mask_str () noexcept
 
static const std::string & __get_channel_map_str () noexcept
 
static const std::string & __get_processing_steps_str () noexcept
 
static const std::string & __get_sot_minima_str () noexcept
 
- Static Public Member Functions inherited from dunedaq::appmodel::DataProcessor
static const std::string & __get_queue_sizes_str () noexcept
 
static const std::string & __get_thread_names_prefix_str () noexcept
 
static const std::string & __get_latency_monitoring_str () noexcept
 
static const std::string & __get_queue_sizes_str () noexcept
 
static const std::string & __get_thread_names_prefix_str () noexcept
 
static const std::string & __get_latency_monitoring_str () noexcept
 
- Static Public Member Functions inherited from dunedaq::conffwk::DalObject
static void p_null (std::ostream &s)
 print "(null)"
 
static void p_rm (std::ostream &s)
 print "(deleted object)"
 
static void p_error (std::ostream &s, dunedaq::conffwk::Exception &ex)
 print error text
 
static void throw_get_ex (const std::string &what, const std::string &class_name, const DalObject *obj)
 throw exception in generated get method (i.e.
 
static bool is_null (const DalObject *ref) noexcept
 check a pointer on DAL object is null
 

Static Public Attributes

static const std::string & s_class_name
 
static const std::string s_channel_mask = "channel_mask"
 
static const std::string s_channel_map = "channel_map"
 
static const std::string s_processing_steps = "processing_steps"
 
static const std::string s_sot_minima = "sot_minima"
 
- Static Public Attributes inherited from dunedaq::appmodel::DataProcessor
static const std::string & s_class_name
 
static const std::string s_queue_sizes = "queue_sizes"
 
static const std::string s_thread_names_prefix = "thread_names_prefix"
 
static const std::string s_latency_monitoring = "latency_monitoring"
 

Protected Member Functions

 RawDataProcessor (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~RawDataProcessor () noexcept
 
virtual void init (bool init_children)
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
 RawDataProcessor (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~RawDataProcessor () noexcept
 
virtual void init (bool init_children)
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
- Protected Member Functions inherited from dunedaq::appmodel::DataProcessor
 DataProcessor (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~DataProcessor () noexcept
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
 DataProcessor (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~DataProcessor () noexcept
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
- Protected Member Functions inherited from dunedaq::conffwk::DalObject
 DalObject (DalRegistry &db, const ConfigObject &o) noexcept
 
virtual ~DalObject ()
 
void clear () noexcept
 
void check () const
 
bool is_deleted () const
 
void increment_created () noexcept
 
void increment_read () noexcept
 
void check_init () const
 Check and initialize object if necessary.
 
template<typename T >
void _set_object (const std::string &name, const T *value)
 Helper method for generated set single-value relationship methods.
 
template<typename T >
void _set_objects (const std::string &name, const std::vector< const T * > &value)
 Helper method for generated set multi-value relationship methods.
 
bool get_rel_objects (const std::string &name, bool upcast_unregistered, std::vector< const DalObject * > &objs) const
 Read relationship values as DAL objects using DAL factory.
 
bool get_algo_objects (const std::string &name, std::vector< const DalObject * > &objs) const
 Run algorithm and return result as DAL objects using DAL factory.
 

Private Attributes

std::vector< uint32_t > m_channel_mask
 
std::string m_channel_map
 
std::vector< const dunedaq::appmodel::ProcessingStep * > m_processing_steps
 
const dunedaq::appmodel::SamplesOverThresholdMinimam_sot_minima
 

Friends

class conffwk::Configuration
 
class conffwk::DalObject
 
class conffwk::DalFactory
 
class conffwk::DalRegistry
 

Additional Inherited Members

- Protected Attributes inherited from dunedaq::conffwk::DalObject
std::mutex m_mutex
 Used to protect changes of DAL object.
 
bool p_was_read
 is true, if the object was read
 
DalRegistryp_registry
 Configuration object.
 
ConfigObject p_obj
 Config object used by given template object.
 
std::string p_UID
 Is used for template objects (see dqm_conffwk)
 

Detailed Description

Definition at line 33 of file RawDataProcessor.hpp.

Constructor & Destructor Documentation

◆ RawDataProcessor() [1/2]

dunedaq::appmodel::RawDataProcessor::RawDataProcessor ( conffwk::DalRegistry & db,
const conffwk::ConfigObject & obj )
protectednoexcept

Definition at line 32 of file RawDataProcessor.cpp.

32 :
34 DataProcessor(db, o),
35 m_sot_minima (nullptr)
36
37 {
38 ;
39 }
DataProcessor(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
const dunedaq::appmodel::SamplesOverThresholdMinima * m_sot_minima
The base class for any generated DAL object.
Definition DalObject.hpp:45

◆ ~RawDataProcessor() [1/2]

dunedaq::appmodel::RawDataProcessor::~RawDataProcessor ( )
protectedvirtualnoexcept

Definition at line 92 of file RawDataProcessor.cpp.

93 {
94 }

◆ RawDataProcessor() [2/2]

dunedaq::appmodel::RawDataProcessor::RawDataProcessor ( conffwk::DalRegistry & db,
const conffwk::ConfigObject & obj )
protectednoexcept

◆ ~RawDataProcessor() [2/2]

virtual dunedaq::appmodel::RawDataProcessor::~RawDataProcessor ( )
protectedvirtualnoexcept

Member Function Documentation

◆ __get_channel_map_str() [1/2]

static const std::string & dunedaq::appmodel::RawDataProcessor::__get_channel_map_str ( )
inlinestaticnoexcept

Definition at line 98 of file RawDataProcessor.hpp.

98{ return s_channel_map; }
static const std::string s_channel_map

◆ __get_channel_map_str() [2/2]

static const std::string & dunedaq::appmodel::RawDataProcessor::__get_channel_map_str ( )
inlinestaticnoexcept

Definition at line 98 of file RawDataProcessor.hpp.

98{ return s_channel_map; }

◆ __get_channel_mask_str() [1/2]

static const std::string & dunedaq::appmodel::RawDataProcessor::__get_channel_mask_str ( )
inlinestaticnoexcept

Definition at line 97 of file RawDataProcessor.hpp.

97{ return s_channel_mask; }
static const std::string s_channel_mask

◆ __get_channel_mask_str() [2/2]

static const std::string & dunedaq::appmodel::RawDataProcessor::__get_channel_mask_str ( )
inlinestaticnoexcept

Definition at line 97 of file RawDataProcessor.hpp.

97{ return s_channel_mask; }

◆ __get_processing_steps_str() [1/2]

static const std::string & dunedaq::appmodel::RawDataProcessor::__get_processing_steps_str ( )
inlinestaticnoexcept

Definition at line 170 of file RawDataProcessor.hpp.

170{ return s_processing_steps; }
static const std::string s_processing_steps

◆ __get_processing_steps_str() [2/2]

static const std::string & dunedaq::appmodel::RawDataProcessor::__get_processing_steps_str ( )
inlinestaticnoexcept

Definition at line 170 of file RawDataProcessor.hpp.

170{ return s_processing_steps; }

◆ __get_sot_minima_str() [1/2]

static const std::string & dunedaq::appmodel::RawDataProcessor::__get_sot_minima_str ( )
inlinestaticnoexcept

Definition at line 171 of file RawDataProcessor.hpp.

171{ return s_sot_minima; }

◆ __get_sot_minima_str() [2/2]

static const std::string & dunedaq::appmodel::RawDataProcessor::__get_sot_minima_str ( )
inlinestaticnoexcept

Definition at line 171 of file RawDataProcessor.hpp.

171{ return s_sot_minima; }

◆ get() [1/4]

std::vector< const dunedaq::conffwk::DalObject * > dunedaq::appmodel::RawDataProcessor::get ( const std::string & name,
bool upcast_unregistered = true ) const
virtual

Get values of relationships and results of some algorithms as a vector of dunedaq::conffwk::DalObject pointers.

Parameters are:

Parameters
namename of the relationship or algorithm
Returns
value of relationship or result of algorithm
Exceptions
std::exceptionif there is no relationship or algorithm with such name in this and base classes

Reimplemented from dunedaq::appmodel::DataProcessor.

Definition at line 96 of file RawDataProcessor.cpp.

97 {
98 std::vector<const dunedaq::conffwk::DalObject *> vec;
99
100 if (!get(name, vec, upcast_unregistered, true))
101 throw_get_ex(name, s_class_name, this);
102
103 return vec;
104 }
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...
static const std::string & s_class_name
static void throw_get_ex(const std::string &what, const std::string &class_name, const DalObject *obj)
throw exception in generated get method (i.e.
Definition DalObject.cpp:82

◆ get() [2/4]

virtual std::vector< const dunedaq::conffwk::DalObject * > dunedaq::appmodel::RawDataProcessor::get ( const std::string & name,
bool upcast_unregistered = true ) const
virtual

Get values of relationships and results of some algorithms as a vector of dunedaq::conffwk::DalObject pointers.

Parameters are:

Parameters
namename of the relationship or algorithm
Returns
value of relationship or result of algorithm
Exceptions
std::exceptionif there is no relationship or algorithm with such name in this and base classes

Reimplemented from dunedaq::appmodel::DataProcessor.

◆ get() [3/4]

bool dunedaq::appmodel::RawDataProcessor::get ( const std::string & name,
std::vector< const dunedaq::conffwk::DalObject * > & vec,
bool upcast_unregistered,
bool first_call ) const
protected

Definition at line 106 of file RawDataProcessor.cpp.

107 {
108 if (first_call)
109 {
110 std::lock_guard scoped_lock(m_mutex);
111
112 check();
113 check_init();
114
115 if (get_rel_objects(name, upcast_unregistered, vec))
116 return true;
117 }
118
119 if (DataProcessor::get(name, vec, upcast_unregistered, false)) return true;
120
121 if (first_call)
122 return get_algo_objects(name, vec);
123
124 return false;
125 }
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...
bool get_rel_objects(const std::string &name, bool upcast_unregistered, std::vector< const DalObject * > &objs) const
Read relationship values as DAL objects using DAL factory.
Definition DalObject.cpp:8
std::mutex m_mutex
Used to protect changes of DAL object.
bool get_algo_objects(const std::string &name, std::vector< const DalObject * > &objs) const
Run algorithm and return result as DAL objects using DAL factory.
Definition DalObject.cpp:25
void check_init() const
Check and initialize object if necessary.

◆ get() [4/4]

bool dunedaq::appmodel::RawDataProcessor::get ( const std::string & name,
std::vector< const dunedaq::conffwk::DalObject * > & vec,
bool upcast_unregistered,
bool first_call ) const
protected

◆ get_channel_map() [1/2]

const std::string & dunedaq::appmodel::RawDataProcessor::get_channel_map ( ) const
inline

Get "channel_map" attribute value.

Returns
the attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 141 of file RawDataProcessor.hpp.

142 {
143 std::lock_guard scoped_lock(m_mutex);
144 check();
145 check_init();
146 return m_channel_map;
147 }

◆ get_channel_map() [2/2]

const std::string & dunedaq::appmodel::RawDataProcessor::get_channel_map ( ) const
inline

Get "channel_map" attribute value.

Returns
the attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 141 of file RawDataProcessor.hpp.

142 {
143 std::lock_guard scoped_lock(m_mutex);
144 check();
145 check_init();
146 return m_channel_map;
147 }

◆ get_channel_mask() [1/2]

const std::vector< uint32_t > & dunedaq::appmodel::RawDataProcessor::get_channel_mask ( ) const
inline

Get "channel_mask" attribute value. List of channels to be masked from TP generation.

Returns
the attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 109 of file RawDataProcessor.hpp.

110 {
111 std::lock_guard scoped_lock(m_mutex);
112 check();
113 check_init();
114 return m_channel_mask;
115 }

◆ get_channel_mask() [2/2]

const std::vector< uint32_t > & dunedaq::appmodel::RawDataProcessor::get_channel_mask ( ) const
inline

Get "channel_mask" attribute value. List of channels to be masked from TP generation.

Returns
the attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 109 of file RawDataProcessor.hpp.

110 {
111 std::lock_guard scoped_lock(m_mutex);
112 check();
113 check_init();
114 return m_channel_mask;
115 }

◆ get_processing_steps() [1/2]

const std::vector< const dunedaq::appmodel::ProcessingStep * > & dunedaq::appmodel::RawDataProcessor::get_processing_steps ( ) const
inline

Get "processing_steps" relationship value.

Returns
the relationship value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 181 of file RawDataProcessor.hpp.

182 {
183 std::lock_guard scoped_lock(m_mutex);
184 check();
185 check_init();
186 if (m_processing_steps.empty())
187 {
188 std::ostringstream text;
189 text << "relationship \"" << s_processing_steps << "\" of object " << this << " is empty";
190 throw dunedaq::conffwk::Generic(ERS_HERE, text.str().c_str());
191 }
192 return m_processing_steps;
193 }
#define ERS_HERE
std::vector< const dunedaq::appmodel::ProcessingStep * > m_processing_steps
Generic configuration exception.

◆ get_processing_steps() [2/2]

const std::vector< const dunedaq::appmodel::ProcessingStep * > & dunedaq::appmodel::RawDataProcessor::get_processing_steps ( ) const
inline

Get "processing_steps" relationship value.

Returns
the relationship value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 181 of file RawDataProcessor.hpp.

182 {
183 std::lock_guard scoped_lock(m_mutex);
184 check();
185 check_init();
186 if (m_processing_steps.empty())
187 {
188 std::ostringstream text;
189 text << "relationship \"" << s_processing_steps << "\" of object " << this << " is empty";
190 throw dunedaq::conffwk::Generic(ERS_HERE, text.str().c_str());
191 }
192 return m_processing_steps;
193 }

◆ get_sot_minima() [1/2]

const dunedaq::appmodel::SamplesOverThresholdMinima * dunedaq::appmodel::RawDataProcessor::get_sot_minima ( ) const
inline

Get "sot_minima" relationship value. TP samples over threshold minimum requirement by plane.

Returns
the relationship value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 213 of file RawDataProcessor.hpp.

214 {
215 std::lock_guard scoped_lock(m_mutex);
216 check();
217 check_init();
218 if (!m_sot_minima)
219 {
220 std::ostringstream text;
221 text << "relationship \"" << s_sot_minima << "\" of object " << this << " is not set";
222 throw dunedaq::conffwk::Generic(ERS_HERE, text.str().c_str());
223 }
224 return m_sot_minima;
225 }

◆ get_sot_minima() [2/2]

const dunedaq::appmodel::SamplesOverThresholdMinima * dunedaq::appmodel::RawDataProcessor::get_sot_minima ( ) const
inline

Get "sot_minima" relationship value. TP samples over threshold minimum requirement by plane.

Returns
the relationship value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 213 of file RawDataProcessor.hpp.

214 {
215 std::lock_guard scoped_lock(m_mutex);
216 check();
217 check_init();
218 if (!m_sot_minima)
219 {
220 std::ostringstream text;
221 text << "relationship \"" << s_sot_minima << "\" of object " << this << " is not set";
222 throw dunedaq::conffwk::Generic(ERS_HERE, text.str().c_str());
223 }
224 return m_sot_minima;
225 }

◆ init() [1/2]

void dunedaq::appmodel::RawDataProcessor::init ( bool init_children)
protectedvirtual

Initialize object (method generated by genconffwk)

Parameters
init_childrenif true, initialize referenced objects

Reimplemented from dunedaq::appmodel::DataProcessor.

Definition at line 75 of file RawDataProcessor.cpp.

76 {
77 DataProcessor::init(init_children);
78
79 TLOG_DEBUG(5) << "read object " << this << " (class " << s_class_name << ')';
80
81 try {
86 }
87 catch (dunedaq::conffwk::Exception & ex) {
88 throw_init_ex(ex);
89 }
90 }
virtual void init(bool init_children)
void get(const std::string &name, T &value)
Get value of object's attribute or relationship.
void throw_init_ex(dunedaq::conffwk::Exception &ex)
throw object initialisation exception (i.e.
Definition DalObject.cpp:74
DalRegistry & p_registry
Configuration object.
ConfigObject p_obj
Config object used by given template object.
const T * _ref(ConfigObject &obj, const std::string &name, bool read_children)
Get signle value of object's relation and instantiate result with it (multi-thread safe).
#define TLOG_DEBUG(lvl,...)
Definition Logging.hpp:112

◆ init() [2/2]

virtual void dunedaq::appmodel::RawDataProcessor::init ( bool init_children)
protectedvirtual

Initialize object (method generated by genconffwk)

Parameters
init_childrenif true, initialize referenced objects

Reimplemented from dunedaq::appmodel::DataProcessor.

◆ print() [1/2]

void dunedaq::appmodel::RawDataProcessor::print ( unsigned int offset,
bool print_header,
std::ostream & s ) const
virtual

Print details of the RawDataProcessor object.

Parameters are:

Parameters
offsetnumber of spaces to shift object right (useful to print nested objects)
print_headerif false, do not print object header (to print attributes of base classes)
soutput stream

Reimplemented from dunedaq::appmodel::DataProcessor.

Definition at line 42 of file RawDataProcessor.cpp.

43 {
44 check_init();
45
46 try {
47 const std::string str(indent+2, ' ');
48
49 if (print_header)
50 p_hdr(s, indent, s_class_name, "dunedaq::appmodel");
51
52
53 // print direct super-classes
54
56
57
58 // print direct attributes
59
62
63
64 // print direct relationships
65
68 }
69 catch (dunedaq::conffwk::Exception & ex) {
71 }
72 }
virtual void print(unsigned int offset, bool print_header, std::ostream &s) const
Print details of the DataProcessor object.
void p_hdr(std::ostream &s, unsigned int indent, const std::string &cl, const char *nm=nullptr) const
print object headers
Definition DalObject.cpp:65
static void p_error(std::ostream &s, dunedaq::conffwk::Exception &ex)
print error text
Definition DalObject.cpp:59
void p_sv_rel(std::ostream &s, const std::string &str, const std::string &name, const DalObject *obj)
print weak single-value relationship
void p_mv_rel(std::ostream &s, const std::string &str, const std::string &name, const T &objs) noexcept
print weak multi-value relationship
void p_mv_attr(std::ostream &s, const std::string &str, const std::string &name, const T &val) noexcept
print multi-value attribute
void p_sv_attr(std::ostream &s, const std::string &str, const std::string &name, const T &val) noexcept
print single-value attribute

◆ print() [2/2]

virtual void dunedaq::appmodel::RawDataProcessor::print ( unsigned int offset,
bool print_header,
std::ostream & s ) const
virtual

Print details of the RawDataProcessor object.

Parameters are:

Parameters
offsetnumber of spaces to shift object right (useful to print nested objects)
print_headerif false, do not print object header (to print attributes of base classes)
soutput stream

Reimplemented from dunedaq::appmodel::DataProcessor.

◆ set_channel_map() [1/2]

void dunedaq::appmodel::RawDataProcessor::set_channel_map ( const std::string & value)
inline

Set "channel_map" attribute value.

Parameters
valuenew attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 156 of file RawDataProcessor.hpp.

157 {
158 std::lock_guard scoped_lock(m_mutex);
159 check();
160 clear();
162 }
void set_by_ref(const std::string &name, T &value)
Set attribute value.

◆ set_channel_map() [2/2]

void dunedaq::appmodel::RawDataProcessor::set_channel_map ( const std::string & value)
inline

Set "channel_map" attribute value.

Parameters
valuenew attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 156 of file RawDataProcessor.hpp.

157 {
158 std::lock_guard scoped_lock(m_mutex);
159 check();
160 clear();
162 }

◆ set_channel_mask() [1/2]

void dunedaq::appmodel::RawDataProcessor::set_channel_mask ( const std::vector< uint32_t > & value)
inline

Set "channel_mask" attribute value. List of channels to be masked from TP generation.

Parameters
valuenew attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 125 of file RawDataProcessor.hpp.

126 {
127 std::lock_guard scoped_lock(m_mutex);
128 check();
129 clear();
131 }
void set_by_val(const std::string &name, T value)
Set attribute value.

◆ set_channel_mask() [2/2]

void dunedaq::appmodel::RawDataProcessor::set_channel_mask ( const std::vector< uint32_t > & value)
inline

Set "channel_mask" attribute value. List of channels to be masked from TP generation.

Parameters
valuenew attribute value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 125 of file RawDataProcessor.hpp.

126 {
127 std::lock_guard scoped_lock(m_mutex);
128 check();
129 clear();
131 }

◆ set_processing_steps() [1/2]

void dunedaq::appmodel::RawDataProcessor::set_processing_steps ( const std::vector< const dunedaq::appmodel::ProcessingStep * > & value)

Set "processing_steps" relationship value.

Parameters
valuenew relationship value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 127 of file RawDataProcessor.cpp.

128 {
130 }
void _set_objects(const std::string &name, const std::vector< const T * > &value)
Helper method for generated set multi-value relationship methods.

◆ set_processing_steps() [2/2]

void dunedaq::appmodel::RawDataProcessor::set_processing_steps ( const std::vector< const dunedaq::appmodel::ProcessingStep * > & value)

Set "processing_steps" relationship value.

Parameters
valuenew relationship value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

◆ set_sot_minima() [1/2]

void dunedaq::appmodel::RawDataProcessor::set_sot_minima ( const dunedaq::appmodel::SamplesOverThresholdMinima * value)

Set "sot_minima" relationship value. TP samples over threshold minimum requirement by plane.

Parameters
valuenew relationship value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Definition at line 132 of file RawDataProcessor.cpp.

133 {
135 }
void _set_object(const std::string &name, const T *value)
Helper method for generated set single-value relationship methods.

◆ set_sot_minima() [2/2]

void dunedaq::appmodel::RawDataProcessor::set_sot_minima ( const dunedaq::appmodel::SamplesOverThresholdMinima * value)

Set "sot_minima" relationship value. TP samples over threshold minimum requirement by plane.

Parameters
valuenew relationship value
Exceptions
dunedaq::conffwk::Generic,dunedaq::conffwk::DeletedObject

Friends And Related Symbol Documentation

◆ conffwk::Configuration

Definition at line 35 of file RawDataProcessor.hpp.

◆ conffwk::DalFactory

conffwk::DalFactory
friend

Definition at line 37 of file RawDataProcessor.hpp.

◆ conffwk::DalObject

Definition at line 36 of file RawDataProcessor.hpp.

◆ conffwk::DalRegistry

Definition at line 38 of file RawDataProcessor.hpp.

Member Data Documentation

◆ m_channel_map

std::string dunedaq::appmodel::RawDataProcessor::m_channel_map
private

Definition at line 85 of file RawDataProcessor.hpp.

◆ m_channel_mask

std::vector< uint32_t > dunedaq::appmodel::RawDataProcessor::m_channel_mask
private

Definition at line 84 of file RawDataProcessor.hpp.

◆ m_processing_steps

std::vector< const dunedaq::appmodel::ProcessingStep * > dunedaq::appmodel::RawDataProcessor::m_processing_steps
private

Definition at line 86 of file RawDataProcessor.hpp.

◆ m_sot_minima

const dunedaq::appmodel::SamplesOverThresholdMinima * dunedaq::appmodel::RawDataProcessor::m_sot_minima
private

Definition at line 87 of file RawDataProcessor.hpp.

◆ s_channel_map

static const std::string dunedaq::appmodel::RawDataProcessor::s_channel_map = "channel_map"
inlinestatic

Definition at line 95 of file RawDataProcessor.hpp.

◆ s_channel_mask

static const std::string dunedaq::appmodel::RawDataProcessor::s_channel_mask = "channel_mask"
inlinestatic

Definition at line 94 of file RawDataProcessor.hpp.

◆ s_class_name

static const std::string & dunedaq::appmodel::RawDataProcessor::s_class_name
static

The name of the configuration class.

Definition at line 50 of file RawDataProcessor.hpp.

◆ s_processing_steps

static const std::string dunedaq::appmodel::RawDataProcessor::s_processing_steps = "processing_steps"
inlinestatic

Definition at line 167 of file RawDataProcessor.hpp.

◆ s_sot_minima

static const std::string dunedaq::appmodel::RawDataProcessor::s_sot_minima = "sot_minima"
inlinestatic

Definition at line 168 of file RawDataProcessor.hpp.


The documentation for this class was generated from the following files: