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

#include <TPCRawDataProcessor.hpp>

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

Public Member Functions

virtual void print (unsigned int offset, bool print_header, std::ostream &s) const
 Print details of the TPCRawDataProcessor 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.
 
uint32_t get_metric_collect_opmon_rate () const
 Get "metric_collect_opmon_rate" attribute value. The rate at which processor metric is polled from processors for monitoring.
 
void set_metric_collect_opmon_rate (uint32_t value)
 Set "metric_collect_opmon_rate" attribute value. The rate at which processor metric is polled from processors for monitoring.
 
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 TPCRawDataProcessor 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.
 
uint32_t get_metric_collect_opmon_rate () const
 Get "metric_collect_opmon_rate" attribute value. The rate at which processor metric is polled from processors for monitoring.
 
void set_metric_collect_opmon_rate (uint32_t value)
 Set "metric_collect_opmon_rate" attribute value. The rate at which processor metric is polled from processors for monitoring.
 
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::RawDataProcessor
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< 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.
 
- 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_metric_collect_opmon_rate_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_metric_collect_opmon_rate_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::RawDataProcessor
static const std::string & __get_channel_mask_str () noexcept
 
static const std::string & __get_channel_map_str () noexcept
 
static const std::string & __get_channel_mask_str () noexcept
 
static const std::string & __get_channel_map_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_metric_collect_opmon_rate = "metric_collect_opmon_rate"
 
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::RawDataProcessor
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 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

 TPCRawDataProcessor (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~TPCRawDataProcessor () 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
 
 TPCRawDataProcessor (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~TPCRawDataProcessor () 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::RawDataProcessor
 RawDataProcessor (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~RawDataProcessor () noexcept
 
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
 
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

uint32_t m_metric_collect_opmon_rate
 
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 TPCRawDataProcessor.hpp.

Constructor & Destructor Documentation

◆ TPCRawDataProcessor() [1/2]

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

Definition at line 32 of file TPCRawDataProcessor.cpp.

32 :
34 RawDataProcessor(db, o),
35 m_sot_minima (nullptr)
36
37 {
38 ;
39 }
RawDataProcessor(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

◆ ~TPCRawDataProcessor() [1/2]

dunedaq::appmodel::TPCRawDataProcessor::~TPCRawDataProcessor ( )
protectedvirtualnoexcept

Definition at line 90 of file TPCRawDataProcessor.cpp.

91 {
92 }

◆ TPCRawDataProcessor() [2/2]

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

◆ ~TPCRawDataProcessor() [2/2]

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

Member Function Documentation

◆ __get_metric_collect_opmon_rate_str() [1/2]

static const std::string & dunedaq::appmodel::TPCRawDataProcessor::__get_metric_collect_opmon_rate_str ( )
inlinestaticnoexcept

Definition at line 95 of file TPCRawDataProcessor.hpp.

static const std::string s_metric_collect_opmon_rate

◆ __get_metric_collect_opmon_rate_str() [2/2]

static const std::string & dunedaq::appmodel::TPCRawDataProcessor::__get_metric_collect_opmon_rate_str ( )
inlinestaticnoexcept

Definition at line 95 of file TPCRawDataProcessor.hpp.

◆ __get_processing_steps_str() [1/2]

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

Definition at line 136 of file TPCRawDataProcessor.hpp.

136{ return s_processing_steps; }

◆ __get_processing_steps_str() [2/2]

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

Definition at line 136 of file TPCRawDataProcessor.hpp.

136{ return s_processing_steps; }

◆ __get_sot_minima_str() [1/2]

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

Definition at line 137 of file TPCRawDataProcessor.hpp.

137{ return s_sot_minima; }

◆ __get_sot_minima_str() [2/2]

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

Definition at line 137 of file TPCRawDataProcessor.hpp.

137{ return s_sot_minima; }

◆ get() [1/4]

std::vector< const dunedaq::conffwk::DalObject * > dunedaq::appmodel::TPCRawDataProcessor::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::RawDataProcessor.

Definition at line 94 of file TPCRawDataProcessor.cpp.

95 {
96 std::vector<const dunedaq::conffwk::DalObject *> vec;
97
98 if (!get(name, vec, upcast_unregistered, true))
99 throw_get_ex(name, s_class_name, this);
100
101 return vec;
102 }
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 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::TPCRawDataProcessor::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::RawDataProcessor.

◆ get() [3/4]

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

Definition at line 104 of file TPCRawDataProcessor.cpp.

105 {
106 if (first_call)
107 {
108 std::lock_guard scoped_lock(m_mutex);
109
110 check();
111 check_init();
112
113 if (get_rel_objects(name, upcast_unregistered, vec))
114 return true;
115 }
116
117 if (RawDataProcessor::get(name, vec, upcast_unregistered, false)) return true;
118
119 if (first_call)
120 return get_algo_objects(name, vec);
121
122 return false;
123 }
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::TPCRawDataProcessor::get ( const std::string & name,
std::vector< const dunedaq::conffwk::DalObject * > & vec,
bool upcast_unregistered,
bool first_call ) const
protected

◆ get_metric_collect_opmon_rate() [1/2]

uint32_t dunedaq::appmodel::TPCRawDataProcessor::get_metric_collect_opmon_rate ( ) const
inline

Get "metric_collect_opmon_rate" attribute value. The rate at which processor metric is polled from processors for monitoring.

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

Definition at line 106 of file TPCRawDataProcessor.hpp.

107 {
108 std::lock_guard scoped_lock(m_mutex);
109 check();
110 check_init();
112 }

◆ get_metric_collect_opmon_rate() [2/2]

uint32_t dunedaq::appmodel::TPCRawDataProcessor::get_metric_collect_opmon_rate ( ) const
inline

Get "metric_collect_opmon_rate" attribute value. The rate at which processor metric is polled from processors for monitoring.

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

Definition at line 106 of file TPCRawDataProcessor.hpp.

107 {
108 std::lock_guard scoped_lock(m_mutex);
109 check();
110 check_init();
112 }

◆ get_processing_steps() [1/2]

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

Get "processing_steps" relationship value.

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

Definition at line 147 of file TPCRawDataProcessor.hpp.

148 {
149 std::lock_guard scoped_lock(m_mutex);
150 check();
151 check_init();
152 if (m_processing_steps.empty())
153 {
154 std::ostringstream text;
155 text << "relationship \"" << s_processing_steps << "\" of object " << this << " is empty";
156 throw dunedaq::conffwk::Generic(ERS_HERE, text.str().c_str());
157 }
158 return m_processing_steps;
159 }
#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::TPCRawDataProcessor::get_processing_steps ( ) const
inline

Get "processing_steps" relationship value.

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

Definition at line 147 of file TPCRawDataProcessor.hpp.

148 {
149 std::lock_guard scoped_lock(m_mutex);
150 check();
151 check_init();
152 if (m_processing_steps.empty())
153 {
154 std::ostringstream text;
155 text << "relationship \"" << s_processing_steps << "\" of object " << this << " is empty";
156 throw dunedaq::conffwk::Generic(ERS_HERE, text.str().c_str());
157 }
158 return m_processing_steps;
159 }

◆ get_sot_minima() [1/2]

const dunedaq::appmodel::SamplesOverThresholdMinima * dunedaq::appmodel::TPCRawDataProcessor::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 179 of file TPCRawDataProcessor.hpp.

180 {
181 std::lock_guard scoped_lock(m_mutex);
182 check();
183 check_init();
184 if (!m_sot_minima)
185 {
186 std::ostringstream text;
187 text << "relationship \"" << s_sot_minima << "\" of object " << this << " is not set";
188 throw dunedaq::conffwk::Generic(ERS_HERE, text.str().c_str());
189 }
190 return m_sot_minima;
191 }

◆ get_sot_minima() [2/2]

const dunedaq::appmodel::SamplesOverThresholdMinima * dunedaq::appmodel::TPCRawDataProcessor::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 179 of file TPCRawDataProcessor.hpp.

180 {
181 std::lock_guard scoped_lock(m_mutex);
182 check();
183 check_init();
184 if (!m_sot_minima)
185 {
186 std::ostringstream text;
187 text << "relationship \"" << s_sot_minima << "\" of object " << this << " is not set";
188 throw dunedaq::conffwk::Generic(ERS_HERE, text.str().c_str());
189 }
190 return m_sot_minima;
191 }

◆ init() [1/2]

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

Initialize object (method generated by genconffwk)

Parameters
init_childrenif true, initialize referenced objects

Reimplemented from dunedaq::appmodel::RawDataProcessor.

Definition at line 74 of file TPCRawDataProcessor.cpp.

75 {
76 RawDataProcessor::init(init_children);
77
78 TLOG_DEBUG(5) << "read object " << this << " (class " << s_class_name << ')';
79
80 try {
84 }
85 catch (dunedaq::conffwk::Exception & ex) {
86 throw_init_ex(ex);
87 }
88 }
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::TPCRawDataProcessor::init ( bool init_children)
protectedvirtual

Initialize object (method generated by genconffwk)

Parameters
init_childrenif true, initialize referenced objects

Reimplemented from dunedaq::appmodel::RawDataProcessor.

◆ print() [1/2]

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

Print details of the TPCRawDataProcessor 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::RawDataProcessor.

Definition at line 42 of file TPCRawDataProcessor.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
61
62
63 // print direct relationships
64
67 }
68 catch (dunedaq::conffwk::Exception & ex) {
70 }
71 }
virtual void print(unsigned int offset, bool print_header, std::ostream &s) const
Print details of the RawDataProcessor 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_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::TPCRawDataProcessor::print ( unsigned int offset,
bool print_header,
std::ostream & s ) const
virtual

Print details of the TPCRawDataProcessor 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::RawDataProcessor.

◆ set_metric_collect_opmon_rate() [1/2]

void dunedaq::appmodel::TPCRawDataProcessor::set_metric_collect_opmon_rate ( uint32_t value)
inline

Set "metric_collect_opmon_rate" attribute value. The rate at which processor metric is polled from processors for monitoring.

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

Definition at line 122 of file TPCRawDataProcessor.hpp.

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

◆ set_metric_collect_opmon_rate() [2/2]

void dunedaq::appmodel::TPCRawDataProcessor::set_metric_collect_opmon_rate ( uint32_t value)
inline

Set "metric_collect_opmon_rate" attribute value. The rate at which processor metric is polled from processors for monitoring.

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

Definition at line 122 of file TPCRawDataProcessor.hpp.

123 {
124 std::lock_guard scoped_lock(m_mutex);
125 check();
126 clear();
128 }

◆ set_processing_steps() [1/2]

void dunedaq::appmodel::TPCRawDataProcessor::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 125 of file TPCRawDataProcessor.cpp.

126 {
128 }
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::TPCRawDataProcessor::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::TPCRawDataProcessor::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 130 of file TPCRawDataProcessor.cpp.

131 {
133 }
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::TPCRawDataProcessor::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 TPCRawDataProcessor.hpp.

◆ conffwk::DalFactory

conffwk::DalFactory
friend

Definition at line 37 of file TPCRawDataProcessor.hpp.

◆ conffwk::DalObject

Definition at line 36 of file TPCRawDataProcessor.hpp.

◆ conffwk::DalRegistry

Definition at line 38 of file TPCRawDataProcessor.hpp.

Member Data Documentation

◆ m_metric_collect_opmon_rate

uint32_t dunedaq::appmodel::TPCRawDataProcessor::m_metric_collect_opmon_rate
private

Definition at line 84 of file TPCRawDataProcessor.hpp.

◆ m_processing_steps

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

Definition at line 85 of file TPCRawDataProcessor.hpp.

◆ m_sot_minima

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

Definition at line 86 of file TPCRawDataProcessor.hpp.

◆ s_class_name

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

The name of the configuration class.

Definition at line 50 of file TPCRawDataProcessor.hpp.

◆ s_metric_collect_opmon_rate

static const std::string dunedaq::appmodel::TPCRawDataProcessor::s_metric_collect_opmon_rate = "metric_collect_opmon_rate"
inlinestatic

Definition at line 93 of file TPCRawDataProcessor.hpp.

◆ s_processing_steps

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

Definition at line 133 of file TPCRawDataProcessor.hpp.

◆ s_sot_minima

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

Definition at line 134 of file TPCRawDataProcessor.hpp.


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