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

#include <AVXRunSumProcessor.hpp>

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

Public Member Functions

virtual void print (unsigned int offset, bool print_header, std::ostream &s) const
 Print details of the AVXRunSumProcessor 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.
 
uint8_t get_memory_factor_plane0 () const
 Get "memory_factor_plane0" attribute value. Running sum memory factor for plane 0. Gets divided by 10.
 
void set_memory_factor_plane0 (uint8_t value)
 Set "memory_factor_plane0" attribute value. Running sum memory factor for plane 0. Gets divided by 10.
 
uint8_t get_memory_factor_plane1 () const
 Get "memory_factor_plane1" attribute value. Running sum memory factor for plane 1. Gets divided by 10.
 
void set_memory_factor_plane1 (uint8_t value)
 Set "memory_factor_plane1" attribute value. Running sum memory factor for plane 1. Gets divided by 10.
 
uint8_t get_memory_factor_plane2 () const
 Get "memory_factor_plane2" attribute value. Running sum memory factor for plane 2. Gets divided by 10.
 
void set_memory_factor_plane2 (uint8_t value)
 Set "memory_factor_plane2" attribute value. Running sum memory factor for plane 2. Gets divided by 10.
 
uint8_t get_scale_factor_plane0 () const
 Get "scale_factor_plane0" attribute value. Running sum scale factor for plane 0. Gets divided by 10.
 
void set_scale_factor_plane0 (uint8_t value)
 Set "scale_factor_plane0" attribute value. Running sum scale factor for plane 0. Gets divided by 10.
 
uint8_t get_scale_factor_plane1 () const
 Get "scale_factor_plane1" attribute value. Running sum scale factor for plane 1. Gets divided by 10.
 
void set_scale_factor_plane1 (uint8_t value)
 Set "scale_factor_plane1" attribute value. Running sum scale factor for plane 1. Gets divided by 10.
 
uint8_t get_scale_factor_plane2 () const
 Get "scale_factor_plane2" attribute value. Running sum scale factor for plane 2. Gets divided by 10.
 
void set_scale_factor_plane2 (uint8_t value)
 Set "scale_factor_plane2" attribute value. Running sum scale factor for plane 2. Gets divided by 10.
 
virtual void print (unsigned int offset, bool print_header, std::ostream &s) const
 Print details of the AVXRunSumProcessor 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.
 
uint8_t get_memory_factor_plane0 () const
 Get "memory_factor_plane0" attribute value. Running sum memory factor for plane 0. Gets divided by 10.
 
void set_memory_factor_plane0 (uint8_t value)
 Set "memory_factor_plane0" attribute value. Running sum memory factor for plane 0. Gets divided by 10.
 
uint8_t get_memory_factor_plane1 () const
 Get "memory_factor_plane1" attribute value. Running sum memory factor for plane 1. Gets divided by 10.
 
void set_memory_factor_plane1 (uint8_t value)
 Set "memory_factor_plane1" attribute value. Running sum memory factor for plane 1. Gets divided by 10.
 
uint8_t get_memory_factor_plane2 () const
 Get "memory_factor_plane2" attribute value. Running sum memory factor for plane 2. Gets divided by 10.
 
void set_memory_factor_plane2 (uint8_t value)
 Set "memory_factor_plane2" attribute value. Running sum memory factor for plane 2. Gets divided by 10.
 
uint8_t get_scale_factor_plane0 () const
 Get "scale_factor_plane0" attribute value. Running sum scale factor for plane 0. Gets divided by 10.
 
void set_scale_factor_plane0 (uint8_t value)
 Set "scale_factor_plane0" attribute value. Running sum scale factor for plane 0. Gets divided by 10.
 
uint8_t get_scale_factor_plane1 () const
 Get "scale_factor_plane1" attribute value. Running sum scale factor for plane 1. Gets divided by 10.
 
void set_scale_factor_plane1 (uint8_t value)
 Set "scale_factor_plane1" attribute value. Running sum scale factor for plane 1. Gets divided by 10.
 
uint8_t get_scale_factor_plane2 () const
 Get "scale_factor_plane2" attribute value. Running sum scale factor for plane 2. Gets divided by 10.
 
void set_scale_factor_plane2 (uint8_t value)
 Set "scale_factor_plane2" attribute value. Running sum scale factor for plane 2. Gets divided by 10.
 
- Public Member Functions inherited from dunedaq::appmodel::ProcessingStep
- Public Member Functions inherited from dunedaq::confmodel::Jsonable
nlohmann::json to_json (bool direct=false, bool skip_name=false) const
 
nlohmann::json to_json (bool direct=false, bool skip_name=false) const
 
- 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_memory_factor_plane0_str () noexcept
 
static const std::string & __get_memory_factor_plane1_str () noexcept
 
static const std::string & __get_memory_factor_plane2_str () noexcept
 
static const std::string & __get_scale_factor_plane0_str () noexcept
 
static const std::string & __get_scale_factor_plane1_str () noexcept
 
static const std::string & __get_scale_factor_plane2_str () noexcept
 
static const std::string & __get_memory_factor_plane0_str () noexcept
 
static const std::string & __get_memory_factor_plane1_str () noexcept
 
static const std::string & __get_memory_factor_plane2_str () noexcept
 
static const std::string & __get_scale_factor_plane0_str () noexcept
 
static const std::string & __get_scale_factor_plane1_str () noexcept
 
static const std::string & __get_scale_factor_plane2_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_memory_factor_plane0 = "memory_factor_plane0"
 
static const std::string s_memory_factor_plane1 = "memory_factor_plane1"
 
static const std::string s_memory_factor_plane2 = "memory_factor_plane2"
 
static const std::string s_scale_factor_plane0 = "scale_factor_plane0"
 
static const std::string s_scale_factor_plane1 = "scale_factor_plane1"
 
static const std::string s_scale_factor_plane2 = "scale_factor_plane2"
 
- Static Public Attributes inherited from dunedaq::appmodel::ProcessingStep
static const std::string & s_class_name
 
- Static Public Attributes inherited from dunedaq::confmodel::Jsonable
static const std::string & s_class_name
 

Protected Member Functions

 AVXRunSumProcessor (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~AVXRunSumProcessor () 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
 
 AVXRunSumProcessor (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~AVXRunSumProcessor () 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::ProcessingStep
 ProcessingStep (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~ProcessingStep () noexcept
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
 ProcessingStep (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~ProcessingStep () 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::confmodel::Jsonable
 Jsonable (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~Jsonable () noexcept
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
 Jsonable (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~Jsonable () 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

uint8_t m_memory_factor_plane0
 
uint8_t m_memory_factor_plane1
 
uint8_t m_memory_factor_plane2
 
uint8_t m_scale_factor_plane0
 
uint8_t m_scale_factor_plane1
 
uint8_t m_scale_factor_plane2
 

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

TPG running sum signal processor. Outputs a scaled running sum from the input signal.

Definition at line 27 of file AVXRunSumProcessor.hpp.

Constructor & Destructor Documentation

◆ AVXRunSumProcessor() [1/2]

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

Definition at line 26 of file AVXRunSumProcessor.cpp.

26 :
28 ProcessingStep(db, o)
29
30 {
31 ;
32 }
ProcessingStep(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
The base class for any generated DAL object.
Definition DalObject.hpp:45

◆ ~AVXRunSumProcessor() [1/2]

dunedaq::appmodel::AVXRunSumProcessor::~AVXRunSumProcessor ( )
protectedvirtualnoexcept

Definition at line 85 of file AVXRunSumProcessor.cpp.

86 {
87 }

◆ AVXRunSumProcessor() [2/2]

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

◆ ~AVXRunSumProcessor() [2/2]

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

Member Function Documentation

◆ __get_memory_factor_plane0_str() [1/2]

static const std::string & dunedaq::appmodel::AVXRunSumProcessor::__get_memory_factor_plane0_str ( )
inlinestaticnoexcept

Definition at line 97 of file AVXRunSumProcessor.hpp.

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

◆ __get_memory_factor_plane0_str() [2/2]

static const std::string & dunedaq::appmodel::AVXRunSumProcessor::__get_memory_factor_plane0_str ( )
inlinestaticnoexcept

Definition at line 97 of file AVXRunSumProcessor.hpp.

97{ return s_memory_factor_plane0; }

◆ __get_memory_factor_plane1_str() [1/2]

static const std::string & dunedaq::appmodel::AVXRunSumProcessor::__get_memory_factor_plane1_str ( )
inlinestaticnoexcept

Definition at line 98 of file AVXRunSumProcessor.hpp.

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

◆ __get_memory_factor_plane1_str() [2/2]

static const std::string & dunedaq::appmodel::AVXRunSumProcessor::__get_memory_factor_plane1_str ( )
inlinestaticnoexcept

Definition at line 98 of file AVXRunSumProcessor.hpp.

98{ return s_memory_factor_plane1; }

◆ __get_memory_factor_plane2_str() [1/2]

static const std::string & dunedaq::appmodel::AVXRunSumProcessor::__get_memory_factor_plane2_str ( )
inlinestaticnoexcept

Definition at line 99 of file AVXRunSumProcessor.hpp.

99{ return s_memory_factor_plane2; }
static const std::string s_memory_factor_plane2

◆ __get_memory_factor_plane2_str() [2/2]

static const std::string & dunedaq::appmodel::AVXRunSumProcessor::__get_memory_factor_plane2_str ( )
inlinestaticnoexcept

Definition at line 99 of file AVXRunSumProcessor.hpp.

99{ return s_memory_factor_plane2; }

◆ __get_scale_factor_plane0_str() [1/2]

static const std::string & dunedaq::appmodel::AVXRunSumProcessor::__get_scale_factor_plane0_str ( )
inlinestaticnoexcept

Definition at line 100 of file AVXRunSumProcessor.hpp.

100{ return s_scale_factor_plane0; }
static const std::string s_scale_factor_plane0

◆ __get_scale_factor_plane0_str() [2/2]

static const std::string & dunedaq::appmodel::AVXRunSumProcessor::__get_scale_factor_plane0_str ( )
inlinestaticnoexcept

Definition at line 100 of file AVXRunSumProcessor.hpp.

100{ return s_scale_factor_plane0; }

◆ __get_scale_factor_plane1_str() [1/2]

static const std::string & dunedaq::appmodel::AVXRunSumProcessor::__get_scale_factor_plane1_str ( )
inlinestaticnoexcept

Definition at line 101 of file AVXRunSumProcessor.hpp.

101{ return s_scale_factor_plane1; }
static const std::string s_scale_factor_plane1

◆ __get_scale_factor_plane1_str() [2/2]

static const std::string & dunedaq::appmodel::AVXRunSumProcessor::__get_scale_factor_plane1_str ( )
inlinestaticnoexcept

Definition at line 101 of file AVXRunSumProcessor.hpp.

101{ return s_scale_factor_plane1; }

◆ __get_scale_factor_plane2_str() [1/2]

static const std::string & dunedaq::appmodel::AVXRunSumProcessor::__get_scale_factor_plane2_str ( )
inlinestaticnoexcept

Definition at line 102 of file AVXRunSumProcessor.hpp.

102{ return s_scale_factor_plane2; }
static const std::string s_scale_factor_plane2

◆ __get_scale_factor_plane2_str() [2/2]

static const std::string & dunedaq::appmodel::AVXRunSumProcessor::__get_scale_factor_plane2_str ( )
inlinestaticnoexcept

Definition at line 102 of file AVXRunSumProcessor.hpp.

102{ return s_scale_factor_plane2; }

◆ get() [1/4]

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

Reimplemented in dunedaq::appmodel::AVXAbsRunSumProcessor, and dunedaq::appmodel::AVXAbsRunSumProcessor.

Definition at line 89 of file AVXRunSumProcessor.cpp.

90 {
91 std::vector<const dunedaq::conffwk::DalObject *> vec;
92
93 if (!get(name, vec, upcast_unregistered, true))
94 throw_get_ex(name, s_class_name, this);
95
96 return vec;
97 }
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::AVXRunSumProcessor::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::ProcessingStep.

Reimplemented in dunedaq::appmodel::AVXAbsRunSumProcessor, and dunedaq::appmodel::AVXAbsRunSumProcessor.

◆ get() [3/4]

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

Definition at line 99 of file AVXRunSumProcessor.cpp.

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

◆ get_memory_factor_plane0() [1/2]

uint8_t dunedaq::appmodel::AVXRunSumProcessor::get_memory_factor_plane0 ( ) const
inline

Get "memory_factor_plane0" attribute value. Running sum memory factor for plane 0. Gets divided by 10.

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

Definition at line 113 of file AVXRunSumProcessor.hpp.

114 {
115 std::lock_guard scoped_lock(m_mutex);
116 check();
117 check_init();
119 }

◆ get_memory_factor_plane0() [2/2]

uint8_t dunedaq::appmodel::AVXRunSumProcessor::get_memory_factor_plane0 ( ) const
inline

Get "memory_factor_plane0" attribute value. Running sum memory factor for plane 0. Gets divided by 10.

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

Definition at line 113 of file AVXRunSumProcessor.hpp.

114 {
115 std::lock_guard scoped_lock(m_mutex);
116 check();
117 check_init();
119 }

◆ get_memory_factor_plane1() [1/2]

uint8_t dunedaq::appmodel::AVXRunSumProcessor::get_memory_factor_plane1 ( ) const
inline

Get "memory_factor_plane1" attribute value. Running sum memory factor for plane 1. Gets divided by 10.

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

Definition at line 146 of file AVXRunSumProcessor.hpp.

147 {
148 std::lock_guard scoped_lock(m_mutex);
149 check();
150 check_init();
152 }

◆ get_memory_factor_plane1() [2/2]

uint8_t dunedaq::appmodel::AVXRunSumProcessor::get_memory_factor_plane1 ( ) const
inline

Get "memory_factor_plane1" attribute value. Running sum memory factor for plane 1. Gets divided by 10.

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

Definition at line 146 of file AVXRunSumProcessor.hpp.

147 {
148 std::lock_guard scoped_lock(m_mutex);
149 check();
150 check_init();
152 }

◆ get_memory_factor_plane2() [1/2]

uint8_t dunedaq::appmodel::AVXRunSumProcessor::get_memory_factor_plane2 ( ) const
inline

Get "memory_factor_plane2" attribute value. Running sum memory factor for plane 2. Gets divided by 10.

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

Definition at line 179 of file AVXRunSumProcessor.hpp.

180 {
181 std::lock_guard scoped_lock(m_mutex);
182 check();
183 check_init();
185 }

◆ get_memory_factor_plane2() [2/2]

uint8_t dunedaq::appmodel::AVXRunSumProcessor::get_memory_factor_plane2 ( ) const
inline

Get "memory_factor_plane2" attribute value. Running sum memory factor for plane 2. Gets divided by 10.

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

Definition at line 179 of file AVXRunSumProcessor.hpp.

180 {
181 std::lock_guard scoped_lock(m_mutex);
182 check();
183 check_init();
185 }

◆ get_scale_factor_plane0() [1/2]

uint8_t dunedaq::appmodel::AVXRunSumProcessor::get_scale_factor_plane0 ( ) const
inline

Get "scale_factor_plane0" attribute value. Running sum scale factor for plane 0. Gets divided by 10.

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

Definition at line 212 of file AVXRunSumProcessor.hpp.

213 {
214 std::lock_guard scoped_lock(m_mutex);
215 check();
216 check_init();
218 }

◆ get_scale_factor_plane0() [2/2]

uint8_t dunedaq::appmodel::AVXRunSumProcessor::get_scale_factor_plane0 ( ) const
inline

Get "scale_factor_plane0" attribute value. Running sum scale factor for plane 0. Gets divided by 10.

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

Definition at line 212 of file AVXRunSumProcessor.hpp.

213 {
214 std::lock_guard scoped_lock(m_mutex);
215 check();
216 check_init();
218 }

◆ get_scale_factor_plane1() [1/2]

uint8_t dunedaq::appmodel::AVXRunSumProcessor::get_scale_factor_plane1 ( ) const
inline

Get "scale_factor_plane1" attribute value. Running sum scale factor for plane 1. Gets divided by 10.

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

Definition at line 245 of file AVXRunSumProcessor.hpp.

246 {
247 std::lock_guard scoped_lock(m_mutex);
248 check();
249 check_init();
251 }

◆ get_scale_factor_plane1() [2/2]

uint8_t dunedaq::appmodel::AVXRunSumProcessor::get_scale_factor_plane1 ( ) const
inline

Get "scale_factor_plane1" attribute value. Running sum scale factor for plane 1. Gets divided by 10.

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

Definition at line 245 of file AVXRunSumProcessor.hpp.

246 {
247 std::lock_guard scoped_lock(m_mutex);
248 check();
249 check_init();
251 }

◆ get_scale_factor_plane2() [1/2]

uint8_t dunedaq::appmodel::AVXRunSumProcessor::get_scale_factor_plane2 ( ) const
inline

Get "scale_factor_plane2" attribute value. Running sum scale factor for plane 2. Gets divided by 10.

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

Definition at line 278 of file AVXRunSumProcessor.hpp.

279 {
280 std::lock_guard scoped_lock(m_mutex);
281 check();
282 check_init();
284 }

◆ get_scale_factor_plane2() [2/2]

uint8_t dunedaq::appmodel::AVXRunSumProcessor::get_scale_factor_plane2 ( ) const
inline

Get "scale_factor_plane2" attribute value. Running sum scale factor for plane 2. Gets divided by 10.

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

Definition at line 278 of file AVXRunSumProcessor.hpp.

279 {
280 std::lock_guard scoped_lock(m_mutex);
281 check();
282 check_init();
284 }

◆ init() [1/2]

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

Initialize object (method generated by genconffwk)

Parameters
init_childrenif true, initialize referenced objects

Reimplemented from dunedaq::appmodel::ProcessingStep.

Reimplemented in dunedaq::appmodel::AVXAbsRunSumProcessor, and dunedaq::appmodel::AVXAbsRunSumProcessor.

Definition at line 66 of file AVXRunSumProcessor.cpp.

67 {
68 ProcessingStep::init(init_children);
69
70 TLOG_DEBUG(5) << "read object " << this << " (class " << s_class_name << ')';
71
72 try {
79 }
80 catch (dunedaq::conffwk::Exception & ex) {
81 throw_init_ex(ex);
82 }
83 }
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
ConfigObject p_obj
Config object used by given template object.
#define TLOG_DEBUG(lvl,...)
Definition Logging.hpp:112

◆ init() [2/2]

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

Initialize object (method generated by genconffwk)

Parameters
init_childrenif true, initialize referenced objects

Reimplemented from dunedaq::appmodel::ProcessingStep.

Reimplemented in dunedaq::appmodel::AVXAbsRunSumProcessor, and dunedaq::appmodel::AVXAbsRunSumProcessor.

◆ print() [1/2]

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

Print details of the AVXRunSumProcessor 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::ProcessingStep.

Reimplemented in dunedaq::appmodel::AVXAbsRunSumProcessor, and dunedaq::appmodel::AVXAbsRunSumProcessor.

Definition at line 35 of file AVXRunSumProcessor.cpp.

36 {
37 check_init();
38
39 try {
40 const std::string str(indent+2, ' ');
41
42 if (print_header)
43 p_hdr(s, indent, s_class_name, "dunedaq::appmodel");
44
45
46 // print direct super-classes
47
49
50
51 // print direct attributes
52
59 }
60 catch (dunedaq::conffwk::Exception & ex) {
62 }
63 }
virtual void print(unsigned int offset, bool print_header, std::ostream &s) const
Print details of the ProcessingStep 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_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::AVXRunSumProcessor::print ( unsigned int offset,
bool print_header,
std::ostream & s ) const
virtual

Print details of the AVXRunSumProcessor 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::ProcessingStep.

Reimplemented in dunedaq::appmodel::AVXAbsRunSumProcessor, and dunedaq::appmodel::AVXAbsRunSumProcessor.

◆ set_memory_factor_plane0() [1/2]

void dunedaq::appmodel::AVXRunSumProcessor::set_memory_factor_plane0 ( uint8_t value)
inline

Set "memory_factor_plane0" attribute value. Running sum memory factor for plane 0. Gets divided by 10.

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

Definition at line 129 of file AVXRunSumProcessor.hpp.

130 {
131 std::lock_guard scoped_lock(m_mutex);
132 check();
133 clear();
135 }
void set_by_val(const std::string &name, T value)
Set attribute value.

◆ set_memory_factor_plane0() [2/2]

void dunedaq::appmodel::AVXRunSumProcessor::set_memory_factor_plane0 ( uint8_t value)
inline

Set "memory_factor_plane0" attribute value. Running sum memory factor for plane 0. Gets divided by 10.

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

Definition at line 129 of file AVXRunSumProcessor.hpp.

130 {
131 std::lock_guard scoped_lock(m_mutex);
132 check();
133 clear();
135 }

◆ set_memory_factor_plane1() [1/2]

void dunedaq::appmodel::AVXRunSumProcessor::set_memory_factor_plane1 ( uint8_t value)
inline

Set "memory_factor_plane1" attribute value. Running sum memory factor for plane 1. Gets divided by 10.

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

Definition at line 162 of file AVXRunSumProcessor.hpp.

163 {
164 std::lock_guard scoped_lock(m_mutex);
165 check();
166 clear();
168 }

◆ set_memory_factor_plane1() [2/2]

void dunedaq::appmodel::AVXRunSumProcessor::set_memory_factor_plane1 ( uint8_t value)
inline

Set "memory_factor_plane1" attribute value. Running sum memory factor for plane 1. Gets divided by 10.

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

Definition at line 162 of file AVXRunSumProcessor.hpp.

163 {
164 std::lock_guard scoped_lock(m_mutex);
165 check();
166 clear();
168 }

◆ set_memory_factor_plane2() [1/2]

void dunedaq::appmodel::AVXRunSumProcessor::set_memory_factor_plane2 ( uint8_t value)
inline

Set "memory_factor_plane2" attribute value. Running sum memory factor for plane 2. Gets divided by 10.

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

Definition at line 195 of file AVXRunSumProcessor.hpp.

196 {
197 std::lock_guard scoped_lock(m_mutex);
198 check();
199 clear();
201 }

◆ set_memory_factor_plane2() [2/2]

void dunedaq::appmodel::AVXRunSumProcessor::set_memory_factor_plane2 ( uint8_t value)
inline

Set "memory_factor_plane2" attribute value. Running sum memory factor for plane 2. Gets divided by 10.

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

Definition at line 195 of file AVXRunSumProcessor.hpp.

196 {
197 std::lock_guard scoped_lock(m_mutex);
198 check();
199 clear();
201 }

◆ set_scale_factor_plane0() [1/2]

void dunedaq::appmodel::AVXRunSumProcessor::set_scale_factor_plane0 ( uint8_t value)
inline

Set "scale_factor_plane0" attribute value. Running sum scale factor for plane 0. Gets divided by 10.

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

Definition at line 228 of file AVXRunSumProcessor.hpp.

229 {
230 std::lock_guard scoped_lock(m_mutex);
231 check();
232 clear();
234 }

◆ set_scale_factor_plane0() [2/2]

void dunedaq::appmodel::AVXRunSumProcessor::set_scale_factor_plane0 ( uint8_t value)
inline

Set "scale_factor_plane0" attribute value. Running sum scale factor for plane 0. Gets divided by 10.

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

Definition at line 228 of file AVXRunSumProcessor.hpp.

229 {
230 std::lock_guard scoped_lock(m_mutex);
231 check();
232 clear();
234 }

◆ set_scale_factor_plane1() [1/2]

void dunedaq::appmodel::AVXRunSumProcessor::set_scale_factor_plane1 ( uint8_t value)
inline

Set "scale_factor_plane1" attribute value. Running sum scale factor for plane 1. Gets divided by 10.

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

Definition at line 261 of file AVXRunSumProcessor.hpp.

262 {
263 std::lock_guard scoped_lock(m_mutex);
264 check();
265 clear();
267 }

◆ set_scale_factor_plane1() [2/2]

void dunedaq::appmodel::AVXRunSumProcessor::set_scale_factor_plane1 ( uint8_t value)
inline

Set "scale_factor_plane1" attribute value. Running sum scale factor for plane 1. Gets divided by 10.

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

Definition at line 261 of file AVXRunSumProcessor.hpp.

262 {
263 std::lock_guard scoped_lock(m_mutex);
264 check();
265 clear();
267 }

◆ set_scale_factor_plane2() [1/2]

void dunedaq::appmodel::AVXRunSumProcessor::set_scale_factor_plane2 ( uint8_t value)
inline

Set "scale_factor_plane2" attribute value. Running sum scale factor for plane 2. Gets divided by 10.

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

Definition at line 294 of file AVXRunSumProcessor.hpp.

295 {
296 std::lock_guard scoped_lock(m_mutex);
297 check();
298 clear();
300 }

◆ set_scale_factor_plane2() [2/2]

void dunedaq::appmodel::AVXRunSumProcessor::set_scale_factor_plane2 ( uint8_t value)
inline

Set "scale_factor_plane2" attribute value. Running sum scale factor for plane 2. Gets divided by 10.

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

Definition at line 294 of file AVXRunSumProcessor.hpp.

295 {
296 std::lock_guard scoped_lock(m_mutex);
297 check();
298 clear();
300 }

Friends And Related Symbol Documentation

◆ conffwk::Configuration

Definition at line 29 of file AVXRunSumProcessor.hpp.

◆ conffwk::DalFactory

conffwk::DalFactory
friend

Definition at line 31 of file AVXRunSumProcessor.hpp.

◆ conffwk::DalObject

Definition at line 30 of file AVXRunSumProcessor.hpp.

◆ conffwk::DalRegistry

Definition at line 32 of file AVXRunSumProcessor.hpp.

Member Data Documentation

◆ m_memory_factor_plane0

uint8_t dunedaq::appmodel::AVXRunSumProcessor::m_memory_factor_plane0
private

Definition at line 78 of file AVXRunSumProcessor.hpp.

◆ m_memory_factor_plane1

uint8_t dunedaq::appmodel::AVXRunSumProcessor::m_memory_factor_plane1
private

Definition at line 79 of file AVXRunSumProcessor.hpp.

◆ m_memory_factor_plane2

uint8_t dunedaq::appmodel::AVXRunSumProcessor::m_memory_factor_plane2
private

Definition at line 80 of file AVXRunSumProcessor.hpp.

◆ m_scale_factor_plane0

uint8_t dunedaq::appmodel::AVXRunSumProcessor::m_scale_factor_plane0
private

Definition at line 81 of file AVXRunSumProcessor.hpp.

◆ m_scale_factor_plane1

uint8_t dunedaq::appmodel::AVXRunSumProcessor::m_scale_factor_plane1
private

Definition at line 82 of file AVXRunSumProcessor.hpp.

◆ m_scale_factor_plane2

uint8_t dunedaq::appmodel::AVXRunSumProcessor::m_scale_factor_plane2
private

Definition at line 83 of file AVXRunSumProcessor.hpp.

◆ s_class_name

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

The name of the configuration class.

Definition at line 44 of file AVXRunSumProcessor.hpp.

◆ s_memory_factor_plane0

static const std::string dunedaq::appmodel::AVXRunSumProcessor::s_memory_factor_plane0 = "memory_factor_plane0"
inlinestatic

Definition at line 90 of file AVXRunSumProcessor.hpp.

◆ s_memory_factor_plane1

static const std::string dunedaq::appmodel::AVXRunSumProcessor::s_memory_factor_plane1 = "memory_factor_plane1"
inlinestatic

Definition at line 91 of file AVXRunSumProcessor.hpp.

◆ s_memory_factor_plane2

static const std::string dunedaq::appmodel::AVXRunSumProcessor::s_memory_factor_plane2 = "memory_factor_plane2"
inlinestatic

Definition at line 92 of file AVXRunSumProcessor.hpp.

◆ s_scale_factor_plane0

static const std::string dunedaq::appmodel::AVXRunSumProcessor::s_scale_factor_plane0 = "scale_factor_plane0"
inlinestatic

Definition at line 93 of file AVXRunSumProcessor.hpp.

◆ s_scale_factor_plane1

static const std::string dunedaq::appmodel::AVXRunSumProcessor::s_scale_factor_plane1 = "scale_factor_plane1"
inlinestatic

Definition at line 94 of file AVXRunSumProcessor.hpp.

◆ s_scale_factor_plane2

static const std::string dunedaq::appmodel::AVXRunSumProcessor::s_scale_factor_plane2 = "scale_factor_plane2"
inlinestatic

Definition at line 95 of file AVXRunSumProcessor.hpp.


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