DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
AVXFrugalPedestalSubtractProcessor.hpp
Go to the documentation of this file.
1// *** this file is generated by oksdalgen, do not modify it ***
2
3#ifndef _AVXFrugalPedestalSubtractProcessor_0_dunedaq__appmodel_0_appmodel_H_
4#define _AVXFrugalPedestalSubtractProcessor_0_dunedaq__appmodel_0_appmodel_H_
5
6#include <stdint.h> // to define 64 bits types
7#include <iostream>
8#include <sstream>
9#include <string>
10#include <map>
11#include <vector>
12
14#include "conffwk/DalObject.hpp"
15
16 // include files for classes used in inheritance hierarchy
17
19
20namespace dunedaq {
21 namespace appmodel {
22
27 class AVXFrugalPedestalSubtractProcessor : public dunedaq::appmodel::ProcessingStep {
28
30 friend class conffwk::DalObject;
31 friend class conffwk::DalFactory;
33
34 protected:
35
37 virtual ~AVXFrugalPedestalSubtractProcessor() noexcept;
38 virtual void init(bool init_children);
39
40 public:
41
44 static const std::string& s_class_name;
45
46
56 virtual void print(unsigned int offset, bool print_header, std::ostream& s) const;
57
58
68 virtual std::vector<const dunedaq::conffwk::DalObject *> get(const std::string& name, bool upcast_unregistered = true) const;
69
70
71 protected:
72
73 bool get(const std::string& name, std::vector<const dunedaq::conffwk::DalObject *>& vec, bool upcast_unregistered, bool first_call) const;
74
75
76 private:
77
79
80
81 public:
82
83 // attribute names
84
85 inline static const std::string s_accum_limit = "accum_limit";
86
87 static const std::string& __get_accum_limit_str() noexcept { return s_accum_limit; }
88
89
97 uint8_t
99 {
100 std::lock_guard scoped_lock(m_mutex);
101 check();
102 check_init();
103 return m_accum_limit;
104 }
105
113 void
114 set_accum_limit(uint8_t value)
115 {
116 std::lock_guard scoped_lock(m_mutex);
117 check();
118 clear();
120 }
121
122
123 };
124
125 // out stream operator
126
127 inline std::ostream& operator<<(std::ostream& s, const AVXFrugalPedestalSubtractProcessor& obj)
128 {
129 return obj.print_object(s);
130 }
131
132 typedef std::vector<const AVXFrugalPedestalSubtractProcessor*>::const_iterator AVXFrugalPedestalSubtractProcessorIterator;
133
134 }
135}
136
137#endif
AVXFrugalPedestalSubtractProcessor(conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
uint8_t get_accum_limit() const
Get "accum_limit" attribute value. Accumulation limit to increment/decrement the estimated pedestal v...
void set_accum_limit(uint8_t value)
Set "accum_limit" attribute value. Accumulation limit to increment/decrement the estimated pedestal v...
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...
void set_by_val(const std::string &name, T value)
Set attribute value.
The base class for any generated DAL object.
Definition DalObject.hpp:45
std::mutex m_mutex
Used to protect changes of DAL object.
ConfigObject p_obj
Config object used by given template object.
void check_init() const
Check and initialize object if necessary.
DalRegistry: A registry of DalObjects It provides a single interface to create, cache and manage DalO...
conffwk entry point
double offset
std::vector< constAVXFrugalPedestalSubtractProcessor * >::const_iterator AVXFrugalPedestalSubtractProcessorIterator
std::ostream & operator<<(std::ostream &s, const AVXAbsRunSumProcessor &obj)
Including Qt Headers.