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

#include <TAMakerPlaneCoincidenceAlgorithm.hpp>

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

Public Member Functions

virtual void print (unsigned int offset, bool print_header, std::ostream &s) const
 Print details of the TAMakerPlaneCoincidenceAlgorithm 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_window_length () const
 Get "window_length" attribute value. Window length (in ticks) for the algorithm.
 
void set_window_length (uint32_t value)
 Set "window_length" attribute value. Window length (in ticks) for the algorithm.
 
uint32_t get_adc_threshold () const
 Get "adc_threshold" attribute value. Threshold for the ADC integral algorithm.
 
void set_adc_threshold (uint32_t value)
 Set "adc_threshold" attribute value. Threshold for the ADC integral algorithm.
 
uint32_t get_adjacency_threshold () const
 Get "adjacency_threshold" attribute value. Threshold for the adjacency algorithm.
 
void set_adjacency_threshold (uint32_t value)
 Set "adjacency_threshold" attribute value. Threshold for the adjacency algorithm.
 
uint32_t get_adjacency_tolerance () const
 Get "adjacency_tolerance" attribute value. Tolerance for the number of allowed gaps for the adjacency algorithm.
 
void set_adjacency_tolerance (uint32_t value)
 Set "adjacency_tolerance" attribute value. Tolerance for the number of allowed gaps for the adjacency algorithm.
 
virtual void print (unsigned int offset, bool print_header, std::ostream &s) const
 Print details of the TAMakerPlaneCoincidenceAlgorithm 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_window_length () const
 Get "window_length" attribute value. Window length (in ticks) for the algorithm.
 
void set_window_length (uint32_t value)
 Set "window_length" attribute value. Window length (in ticks) for the algorithm.
 
uint32_t get_adc_threshold () const
 Get "adc_threshold" attribute value. Threshold for the ADC integral algorithm.
 
void set_adc_threshold (uint32_t value)
 Set "adc_threshold" attribute value. Threshold for the ADC integral algorithm.
 
uint32_t get_adjacency_threshold () const
 Get "adjacency_threshold" attribute value. Threshold for the adjacency algorithm.
 
void set_adjacency_threshold (uint32_t value)
 Set "adjacency_threshold" attribute value. Threshold for the adjacency algorithm.
 
uint32_t get_adjacency_tolerance () const
 Get "adjacency_tolerance" attribute value. Tolerance for the number of allowed gaps for the adjacency algorithm.
 
void set_adjacency_tolerance (uint32_t value)
 Set "adjacency_tolerance" attribute value. Tolerance for the number of allowed gaps for the adjacency algorithm.
 
- Public Member Functions inherited from dunedaq::appmodel::TAAlgorithm
uint32_t get_prescale () const
 Get "prescale" attribute value. Prescale factor to apply to algorithm output.
 
void set_prescale (uint32_t value)
 Set "prescale" attribute value. Prescale factor to apply to algorithm output.
 
uint32_t get_max_samples_over_threshold () const
 Get "max_samples_over_threshold" attribute value. Maximum samples-over-threshold for TP to accept by TAM for processing.
 
void set_max_samples_over_threshold (uint32_t value)
 Set "max_samples_over_threshold" attribute value. Maximum samples-over-threshold for TP to accept by TAM for processing.
 
uint32_t get_prescale () const
 Get "prescale" attribute value. Prescale factor to apply to algorithm output.
 
void set_prescale (uint32_t value)
 Set "prescale" attribute value. Prescale factor to apply to algorithm output.
 
uint32_t get_max_samples_over_threshold () const
 Get "max_samples_over_threshold" attribute value. Maximum samples-over-threshold for TP to accept by TAM for processing.
 
void set_max_samples_over_threshold (uint32_t value)
 Set "max_samples_over_threshold" attribute value. Maximum samples-over-threshold for TP to accept by TAM for processing.
 
- 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_window_length_str () noexcept
 
static const std::string & __get_adc_threshold_str () noexcept
 
static const std::string & __get_adjacency_threshold_str () noexcept
 
static const std::string & __get_adjacency_tolerance_str () noexcept
 
static const std::string & __get_window_length_str () noexcept
 
static const std::string & __get_adc_threshold_str () noexcept
 
static const std::string & __get_adjacency_threshold_str () noexcept
 
static const std::string & __get_adjacency_tolerance_str () noexcept
 
- Static Public Member Functions inherited from dunedaq::appmodel::TAAlgorithm
static const std::string & __get_prescale_str () noexcept
 
static const std::string & __get_max_samples_over_threshold_str () noexcept
 
static const std::string & __get_prescale_str () noexcept
 
static const std::string & __get_max_samples_over_threshold_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_window_length = "window_length"
 
static const std::string s_adc_threshold = "adc_threshold"
 
static const std::string s_adjacency_threshold = "adjacency_threshold"
 
static const std::string s_adjacency_tolerance = "adjacency_tolerance"
 
- Static Public Attributes inherited from dunedaq::appmodel::TAAlgorithm
static const std::string & s_class_name
 
static const std::string s_prescale = "prescale"
 
static const std::string s_max_samples_over_threshold = "max_samples_over_threshold"
 
- Static Public Attributes inherited from dunedaq::confmodel::Jsonable
static const std::string & s_class_name
 

Protected Member Functions

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

uint32_t m_window_length
 
uint32_t m_adc_threshold
 
uint32_t m_adjacency_threshold
 
uint32_t m_adjacency_tolerance
 

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 23 of file TAMakerPlaneCoincidenceAlgorithm.hpp.

Constructor & Destructor Documentation

◆ TAMakerPlaneCoincidenceAlgorithm() [1/2]

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

Definition at line 26 of file TAMakerPlaneCoincidenceAlgorithm.cpp.

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

◆ ~TAMakerPlaneCoincidenceAlgorithm() [1/2]

dunedaq::appmodel::TAMakerPlaneCoincidenceAlgorithm::~TAMakerPlaneCoincidenceAlgorithm ( )
protectedvirtualnoexcept

Definition at line 81 of file TAMakerPlaneCoincidenceAlgorithm.cpp.

82 {
83 }

◆ TAMakerPlaneCoincidenceAlgorithm() [2/2]

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

◆ ~TAMakerPlaneCoincidenceAlgorithm() [2/2]

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

Member Function Documentation

◆ __get_adc_threshold_str() [1/2]

static const std::string & dunedaq::appmodel::TAMakerPlaneCoincidenceAlgorithm::__get_adc_threshold_str ( )
inlinestaticnoexcept

◆ __get_adc_threshold_str() [2/2]

static const std::string & dunedaq::appmodel::TAMakerPlaneCoincidenceAlgorithm::__get_adc_threshold_str ( )
inlinestaticnoexcept

Definition at line 90 of file TAMakerPlaneCoincidenceAlgorithm.hpp.

90{ return s_adc_threshold; }

◆ __get_adjacency_threshold_str() [1/2]

static const std::string & dunedaq::appmodel::TAMakerPlaneCoincidenceAlgorithm::__get_adjacency_threshold_str ( )
inlinestaticnoexcept

◆ __get_adjacency_threshold_str() [2/2]

static const std::string & dunedaq::appmodel::TAMakerPlaneCoincidenceAlgorithm::__get_adjacency_threshold_str ( )
inlinestaticnoexcept

Definition at line 91 of file TAMakerPlaneCoincidenceAlgorithm.hpp.

91{ return s_adjacency_threshold; }

◆ __get_adjacency_tolerance_str() [1/2]

static const std::string & dunedaq::appmodel::TAMakerPlaneCoincidenceAlgorithm::__get_adjacency_tolerance_str ( )
inlinestaticnoexcept

◆ __get_adjacency_tolerance_str() [2/2]

static const std::string & dunedaq::appmodel::TAMakerPlaneCoincidenceAlgorithm::__get_adjacency_tolerance_str ( )
inlinestaticnoexcept

Definition at line 92 of file TAMakerPlaneCoincidenceAlgorithm.hpp.

92{ return s_adjacency_tolerance; }

◆ __get_window_length_str() [1/2]

static const std::string & dunedaq::appmodel::TAMakerPlaneCoincidenceAlgorithm::__get_window_length_str ( )
inlinestaticnoexcept

◆ __get_window_length_str() [2/2]

static const std::string & dunedaq::appmodel::TAMakerPlaneCoincidenceAlgorithm::__get_window_length_str ( )
inlinestaticnoexcept

Definition at line 89 of file TAMakerPlaneCoincidenceAlgorithm.hpp.

89{ return s_window_length; }

◆ get() [1/4]

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

Definition at line 85 of file TAMakerPlaneCoincidenceAlgorithm.cpp.

86 {
87 std::vector<const dunedaq::conffwk::DalObject *> vec;
88
89 if (!get(name, vec, upcast_unregistered, true))
90 throw_get_ex(name, s_class_name, this);
91
92 return vec;
93 }
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::TAMakerPlaneCoincidenceAlgorithm::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::TAAlgorithm.

◆ get() [3/4]

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

Definition at line 95 of file TAMakerPlaneCoincidenceAlgorithm.cpp.

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

◆ get_adc_threshold() [1/2]

uint32_t dunedaq::appmodel::TAMakerPlaneCoincidenceAlgorithm::get_adc_threshold ( ) const
inline

Get "adc_threshold" attribute value. Threshold for the ADC integral algorithm.

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

Definition at line 136 of file TAMakerPlaneCoincidenceAlgorithm.hpp.

137 {
138 std::lock_guard scoped_lock(m_mutex);
139 check();
140 check_init();
141 return m_adc_threshold;
142 }

◆ get_adc_threshold() [2/2]

uint32_t dunedaq::appmodel::TAMakerPlaneCoincidenceAlgorithm::get_adc_threshold ( ) const
inline

Get "adc_threshold" attribute value. Threshold for the ADC integral algorithm.

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

Definition at line 136 of file TAMakerPlaneCoincidenceAlgorithm.hpp.

137 {
138 std::lock_guard scoped_lock(m_mutex);
139 check();
140 check_init();
141 return m_adc_threshold;
142 }

◆ get_adjacency_threshold() [1/2]

uint32_t dunedaq::appmodel::TAMakerPlaneCoincidenceAlgorithm::get_adjacency_threshold ( ) const
inline

Get "adjacency_threshold" attribute value. Threshold for the adjacency algorithm.

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

Definition at line 169 of file TAMakerPlaneCoincidenceAlgorithm.hpp.

170 {
171 std::lock_guard scoped_lock(m_mutex);
172 check();
173 check_init();
175 }

◆ get_adjacency_threshold() [2/2]

uint32_t dunedaq::appmodel::TAMakerPlaneCoincidenceAlgorithm::get_adjacency_threshold ( ) const
inline

Get "adjacency_threshold" attribute value. Threshold for the adjacency algorithm.

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

Definition at line 169 of file TAMakerPlaneCoincidenceAlgorithm.hpp.

170 {
171 std::lock_guard scoped_lock(m_mutex);
172 check();
173 check_init();
175 }

◆ get_adjacency_tolerance() [1/2]

uint32_t dunedaq::appmodel::TAMakerPlaneCoincidenceAlgorithm::get_adjacency_tolerance ( ) const
inline

Get "adjacency_tolerance" attribute value. Tolerance for the number of allowed gaps for the adjacency algorithm.

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

Definition at line 202 of file TAMakerPlaneCoincidenceAlgorithm.hpp.

203 {
204 std::lock_guard scoped_lock(m_mutex);
205 check();
206 check_init();
208 }

◆ get_adjacency_tolerance() [2/2]

uint32_t dunedaq::appmodel::TAMakerPlaneCoincidenceAlgorithm::get_adjacency_tolerance ( ) const
inline

Get "adjacency_tolerance" attribute value. Tolerance for the number of allowed gaps for the adjacency algorithm.

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

Definition at line 202 of file TAMakerPlaneCoincidenceAlgorithm.hpp.

203 {
204 std::lock_guard scoped_lock(m_mutex);
205 check();
206 check_init();
208 }

◆ get_window_length() [1/2]

uint32_t dunedaq::appmodel::TAMakerPlaneCoincidenceAlgorithm::get_window_length ( ) const
inline

Get "window_length" attribute value. Window length (in ticks) for the algorithm.

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

Definition at line 103 of file TAMakerPlaneCoincidenceAlgorithm.hpp.

104 {
105 std::lock_guard scoped_lock(m_mutex);
106 check();
107 check_init();
108 return m_window_length;
109 }

◆ get_window_length() [2/2]

uint32_t dunedaq::appmodel::TAMakerPlaneCoincidenceAlgorithm::get_window_length ( ) const
inline

Get "window_length" attribute value. Window length (in ticks) for the algorithm.

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

Definition at line 103 of file TAMakerPlaneCoincidenceAlgorithm.hpp.

104 {
105 std::lock_guard scoped_lock(m_mutex);
106 check();
107 check_init();
108 return m_window_length;
109 }

◆ init() [1/2]

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

Initialize object (method generated by genconffwk)

Parameters
init_childrenif true, initialize referenced objects

Reimplemented from dunedaq::appmodel::TAAlgorithm.

Definition at line 64 of file TAMakerPlaneCoincidenceAlgorithm.cpp.

65 {
66 TAAlgorithm::init(init_children);
67
68 TLOG_DEBUG(5) << "read object " << this << " (class " << s_class_name << ')';
69
70 try {
75 }
76 catch (dunedaq::conffwk::Exception & ex) {
77 throw_init_ex(ex);
78 }
79 }
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::TAMakerPlaneCoincidenceAlgorithm::init ( bool init_children)
protectedvirtual

Initialize object (method generated by genconffwk)

Parameters
init_childrenif true, initialize referenced objects

Reimplemented from dunedaq::appmodel::TAAlgorithm.

◆ print() [1/2]

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

Print details of the TAMakerPlaneCoincidenceAlgorithm 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::TAAlgorithm.

Definition at line 35 of file TAMakerPlaneCoincidenceAlgorithm.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
57 }
58 catch (dunedaq::conffwk::Exception & ex) {
60 }
61 }
virtual void print(unsigned int offset, bool print_header, std::ostream &s) const
Print details of the TAAlgorithm 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::TAMakerPlaneCoincidenceAlgorithm::print ( unsigned int offset,
bool print_header,
std::ostream & s ) const
virtual

Print details of the TAMakerPlaneCoincidenceAlgorithm 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::TAAlgorithm.

◆ set_adc_threshold() [1/2]

void dunedaq::appmodel::TAMakerPlaneCoincidenceAlgorithm::set_adc_threshold ( uint32_t value)
inline

Set "adc_threshold" attribute value. Threshold for the ADC integral algorithm.

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

Definition at line 152 of file TAMakerPlaneCoincidenceAlgorithm.hpp.

153 {
154 std::lock_guard scoped_lock(m_mutex);
155 check();
156 clear();
158 }
void set_by_val(const std::string &name, T value)
Set attribute value.

◆ set_adc_threshold() [2/2]

void dunedaq::appmodel::TAMakerPlaneCoincidenceAlgorithm::set_adc_threshold ( uint32_t value)
inline

Set "adc_threshold" attribute value. Threshold for the ADC integral algorithm.

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

Definition at line 152 of file TAMakerPlaneCoincidenceAlgorithm.hpp.

153 {
154 std::lock_guard scoped_lock(m_mutex);
155 check();
156 clear();
158 }

◆ set_adjacency_threshold() [1/2]

void dunedaq::appmodel::TAMakerPlaneCoincidenceAlgorithm::set_adjacency_threshold ( uint32_t value)
inline

Set "adjacency_threshold" attribute value. Threshold for the adjacency algorithm.

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

Definition at line 185 of file TAMakerPlaneCoincidenceAlgorithm.hpp.

186 {
187 std::lock_guard scoped_lock(m_mutex);
188 check();
189 clear();
191 }

◆ set_adjacency_threshold() [2/2]

void dunedaq::appmodel::TAMakerPlaneCoincidenceAlgorithm::set_adjacency_threshold ( uint32_t value)
inline

Set "adjacency_threshold" attribute value. Threshold for the adjacency algorithm.

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

Definition at line 185 of file TAMakerPlaneCoincidenceAlgorithm.hpp.

186 {
187 std::lock_guard scoped_lock(m_mutex);
188 check();
189 clear();
191 }

◆ set_adjacency_tolerance() [1/2]

void dunedaq::appmodel::TAMakerPlaneCoincidenceAlgorithm::set_adjacency_tolerance ( uint32_t value)
inline

Set "adjacency_tolerance" attribute value. Tolerance for the number of allowed gaps for the adjacency algorithm.

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

Definition at line 218 of file TAMakerPlaneCoincidenceAlgorithm.hpp.

219 {
220 std::lock_guard scoped_lock(m_mutex);
221 check();
222 clear();
224 }

◆ set_adjacency_tolerance() [2/2]

void dunedaq::appmodel::TAMakerPlaneCoincidenceAlgorithm::set_adjacency_tolerance ( uint32_t value)
inline

Set "adjacency_tolerance" attribute value. Tolerance for the number of allowed gaps for the adjacency algorithm.

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

Definition at line 218 of file TAMakerPlaneCoincidenceAlgorithm.hpp.

219 {
220 std::lock_guard scoped_lock(m_mutex);
221 check();
222 clear();
224 }

◆ set_window_length() [1/2]

void dunedaq::appmodel::TAMakerPlaneCoincidenceAlgorithm::set_window_length ( uint32_t value)
inline

Set "window_length" attribute value. Window length (in ticks) for the algorithm.

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

Definition at line 119 of file TAMakerPlaneCoincidenceAlgorithm.hpp.

120 {
121 std::lock_guard scoped_lock(m_mutex);
122 check();
123 clear();
125 }

◆ set_window_length() [2/2]

void dunedaq::appmodel::TAMakerPlaneCoincidenceAlgorithm::set_window_length ( uint32_t value)
inline

Set "window_length" attribute value. Window length (in ticks) for the algorithm.

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

Definition at line 119 of file TAMakerPlaneCoincidenceAlgorithm.hpp.

120 {
121 std::lock_guard scoped_lock(m_mutex);
122 check();
123 clear();
125 }

Friends And Related Symbol Documentation

◆ conffwk::Configuration

◆ conffwk::DalFactory

conffwk::DalFactory
friend

Definition at line 27 of file TAMakerPlaneCoincidenceAlgorithm.hpp.

◆ conffwk::DalObject

Definition at line 26 of file TAMakerPlaneCoincidenceAlgorithm.hpp.

◆ conffwk::DalRegistry

Definition at line 28 of file TAMakerPlaneCoincidenceAlgorithm.hpp.

Member Data Documentation

◆ m_adc_threshold

uint32_t dunedaq::appmodel::TAMakerPlaneCoincidenceAlgorithm::m_adc_threshold
private

Definition at line 75 of file TAMakerPlaneCoincidenceAlgorithm.hpp.

◆ m_adjacency_threshold

uint32_t dunedaq::appmodel::TAMakerPlaneCoincidenceAlgorithm::m_adjacency_threshold
private

Definition at line 76 of file TAMakerPlaneCoincidenceAlgorithm.hpp.

◆ m_adjacency_tolerance

uint32_t dunedaq::appmodel::TAMakerPlaneCoincidenceAlgorithm::m_adjacency_tolerance
private

Definition at line 77 of file TAMakerPlaneCoincidenceAlgorithm.hpp.

◆ m_window_length

uint32_t dunedaq::appmodel::TAMakerPlaneCoincidenceAlgorithm::m_window_length
private

Definition at line 74 of file TAMakerPlaneCoincidenceAlgorithm.hpp.

◆ s_adc_threshold

static const std::string dunedaq::appmodel::TAMakerPlaneCoincidenceAlgorithm::s_adc_threshold = "adc_threshold"
inlinestatic

Definition at line 85 of file TAMakerPlaneCoincidenceAlgorithm.hpp.

◆ s_adjacency_threshold

static const std::string dunedaq::appmodel::TAMakerPlaneCoincidenceAlgorithm::s_adjacency_threshold = "adjacency_threshold"
inlinestatic

Definition at line 86 of file TAMakerPlaneCoincidenceAlgorithm.hpp.

◆ s_adjacency_tolerance

static const std::string dunedaq::appmodel::TAMakerPlaneCoincidenceAlgorithm::s_adjacency_tolerance = "adjacency_tolerance"
inlinestatic

Definition at line 87 of file TAMakerPlaneCoincidenceAlgorithm.hpp.

◆ s_class_name

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

The name of the configuration class.

Definition at line 40 of file TAMakerPlaneCoincidenceAlgorithm.hpp.

◆ s_window_length

static const std::string dunedaq::appmodel::TAMakerPlaneCoincidenceAlgorithm::s_window_length = "window_length"
inlinestatic

Definition at line 84 of file TAMakerPlaneCoincidenceAlgorithm.hpp.


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