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

#include <TCMakerPlaneCoincidenceAlgorithm.hpp>

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

Public Member Functions

virtual void print (unsigned int offset, bool print_header, std::ostream &s) const
 Print details of the TCMakerPlaneCoincidenceAlgorithm 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.
 
bool get_trigger_on_adc () const
 Get "trigger_on_adc" attribute value. Whether to trigger on ADC integral.
 
void set_trigger_on_adc (bool value)
 Set "trigger_on_adc" attribute value. Whether to trigger on ADC integral.
 
bool get_trigger_on_n_channels () const
 Get "trigger_on_n_channels" attribute value. Whether to trigger on N Channels.
 
void set_trigger_on_n_channels (bool value)
 Set "trigger_on_n_channels" attribute value. Whether to trigger on N Channels.
 
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_n_channels_threshold () const
 Get "n_channels_threshold" attribute value. Threshold for the N Channels algorithm.
 
void set_n_channels_threshold (uint32_t value)
 Set "n_channels_threshold" attribute value. Threshold for the N Channels algorithm.
 
virtual void print (unsigned int offset, bool print_header, std::ostream &s) const
 Print details of the TCMakerPlaneCoincidenceAlgorithm 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.
 
bool get_trigger_on_adc () const
 Get "trigger_on_adc" attribute value. Whether to trigger on ADC integral.
 
void set_trigger_on_adc (bool value)
 Set "trigger_on_adc" attribute value. Whether to trigger on ADC integral.
 
bool get_trigger_on_n_channels () const
 Get "trigger_on_n_channels" attribute value. Whether to trigger on N Channels.
 
void set_trigger_on_n_channels (bool value)
 Set "trigger_on_n_channels" attribute value. Whether to trigger on N Channels.
 
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_n_channels_threshold () const
 Get "n_channels_threshold" attribute value. Threshold for the N Channels algorithm.
 
void set_n_channels_threshold (uint32_t value)
 Set "n_channels_threshold" attribute value. Threshold for the N Channels algorithm.
 
- Public Member Functions inherited from dunedaq::appmodel::TCAlgorithm
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.
 
const std::string & get_tc_type_name () const
 Get "tc_type_name" attribute value. The output TC type name this algorithm will output.
 
void set_tc_type_name (const std::string &value)
 Set "tc_type_name" attribute value. The output TC type name this algorithm will output.
 
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.
 
const std::string & get_tc_type_name () const
 Get "tc_type_name" attribute value. The output TC type name this algorithm will output.
 
void set_tc_type_name (const std::string &value)
 Set "tc_type_name" attribute value. The output TC type name this algorithm will output.
 
- 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_trigger_on_adc_str () noexcept
 
static const std::string & __get_trigger_on_n_channels_str () noexcept
 
static const std::string & __get_adc_threshold_str () noexcept
 
static const std::string & __get_n_channels_threshold_str () noexcept
 
static const std::string & __get_window_length_str () noexcept
 
static const std::string & __get_trigger_on_adc_str () noexcept
 
static const std::string & __get_trigger_on_n_channels_str () noexcept
 
static const std::string & __get_adc_threshold_str () noexcept
 
static const std::string & __get_n_channels_threshold_str () noexcept
 
- Static Public Member Functions inherited from dunedaq::appmodel::TCAlgorithm
static const std::string & __get_prescale_str () noexcept
 
static const std::string & __get_tc_type_name_str () noexcept
 
static const std::string & __get_prescale_str () noexcept
 
static const std::string & __get_tc_type_name_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_trigger_on_adc = "trigger_on_adc"
 
static const std::string s_trigger_on_n_channels = "trigger_on_n_channels"
 
static const std::string s_adc_threshold = "adc_threshold"
 
static const std::string s_n_channels_threshold = "n_channels_threshold"
 
- Static Public Attributes inherited from dunedaq::appmodel::TCAlgorithm
static const std::string & s_class_name
 
static const std::string s_prescale = "prescale"
 
static const std::string s_tc_type_name = "tc_type_name"
 
- Static Public Attributes inherited from dunedaq::confmodel::Jsonable
static const std::string & s_class_name
 

Protected Member Functions

 TCMakerPlaneCoincidenceAlgorithm (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~TCMakerPlaneCoincidenceAlgorithm () 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
 
 TCMakerPlaneCoincidenceAlgorithm (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~TCMakerPlaneCoincidenceAlgorithm () 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::TCAlgorithm
 TCAlgorithm (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~TCAlgorithm () noexcept
 
bool get (const std::string &name, std::vector< const dunedaq::conffwk::DalObject * > &vec, bool upcast_unregistered, bool first_call) const
 
 TCAlgorithm (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept
 
virtual ~TCAlgorithm () 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
 
bool m_trigger_on_adc
 
bool m_trigger_on_n_channels
 
uint32_t m_adc_threshold
 
uint32_t m_n_channels_threshold
 

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 TCMakerPlaneCoincidenceAlgorithm.hpp.

Constructor & Destructor Documentation

◆ TCMakerPlaneCoincidenceAlgorithm() [1/2]

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

Definition at line 26 of file TCMakerPlaneCoincidenceAlgorithm.cpp.

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

◆ ~TCMakerPlaneCoincidenceAlgorithm() [1/2]

dunedaq::appmodel::TCMakerPlaneCoincidenceAlgorithm::~TCMakerPlaneCoincidenceAlgorithm ( )
protectedvirtualnoexcept

Definition at line 83 of file TCMakerPlaneCoincidenceAlgorithm.cpp.

84 {
85 }

◆ TCMakerPlaneCoincidenceAlgorithm() [2/2]

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

◆ ~TCMakerPlaneCoincidenceAlgorithm() [2/2]

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

Member Function Documentation

◆ __get_adc_threshold_str() [1/2]

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

◆ __get_adc_threshold_str() [2/2]

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

Definition at line 94 of file TCMakerPlaneCoincidenceAlgorithm.hpp.

94{ return s_adc_threshold; }

◆ __get_n_channels_threshold_str() [1/2]

static const std::string & dunedaq::appmodel::TCMakerPlaneCoincidenceAlgorithm::__get_n_channels_threshold_str ( )
inlinestaticnoexcept

◆ __get_n_channels_threshold_str() [2/2]

static const std::string & dunedaq::appmodel::TCMakerPlaneCoincidenceAlgorithm::__get_n_channels_threshold_str ( )
inlinestaticnoexcept

Definition at line 95 of file TCMakerPlaneCoincidenceAlgorithm.hpp.

95{ return s_n_channels_threshold; }

◆ __get_trigger_on_adc_str() [1/2]

static const std::string & dunedaq::appmodel::TCMakerPlaneCoincidenceAlgorithm::__get_trigger_on_adc_str ( )
inlinestaticnoexcept

◆ __get_trigger_on_adc_str() [2/2]

static const std::string & dunedaq::appmodel::TCMakerPlaneCoincidenceAlgorithm::__get_trigger_on_adc_str ( )
inlinestaticnoexcept

Definition at line 92 of file TCMakerPlaneCoincidenceAlgorithm.hpp.

92{ return s_trigger_on_adc; }

◆ __get_trigger_on_n_channels_str() [1/2]

static const std::string & dunedaq::appmodel::TCMakerPlaneCoincidenceAlgorithm::__get_trigger_on_n_channels_str ( )
inlinestaticnoexcept

◆ __get_trigger_on_n_channels_str() [2/2]

static const std::string & dunedaq::appmodel::TCMakerPlaneCoincidenceAlgorithm::__get_trigger_on_n_channels_str ( )
inlinestaticnoexcept

Definition at line 93 of file TCMakerPlaneCoincidenceAlgorithm.hpp.

◆ __get_window_length_str() [1/2]

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

◆ __get_window_length_str() [2/2]

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

Definition at line 91 of file TCMakerPlaneCoincidenceAlgorithm.hpp.

91{ return s_window_length; }

◆ get() [1/4]

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

Definition at line 87 of file TCMakerPlaneCoincidenceAlgorithm.cpp.

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

◆ get() [3/4]

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

Definition at line 97 of file TCMakerPlaneCoincidenceAlgorithm.cpp.

98 {
99 if (first_call)
100 {
101 std::lock_guard scoped_lock(m_mutex);
102
103 check();
104 check_init();
105
106 if (get_rel_objects(name, upcast_unregistered, vec))
107 return true;
108 }
109
110 if (TCAlgorithm::get(name, vec, upcast_unregistered, false)) return true;
111
112 if (first_call)
113 return get_algo_objects(name, vec);
114
115 return false;
116 }
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::TCMakerPlaneCoincidenceAlgorithm::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::TCMakerPlaneCoincidenceAlgorithm::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 205 of file TCMakerPlaneCoincidenceAlgorithm.hpp.

206 {
207 std::lock_guard scoped_lock(m_mutex);
208 check();
209 check_init();
210 return m_adc_threshold;
211 }

◆ get_adc_threshold() [2/2]

uint32_t dunedaq::appmodel::TCMakerPlaneCoincidenceAlgorithm::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 205 of file TCMakerPlaneCoincidenceAlgorithm.hpp.

206 {
207 std::lock_guard scoped_lock(m_mutex);
208 check();
209 check_init();
210 return m_adc_threshold;
211 }

◆ get_n_channels_threshold() [1/2]

uint32_t dunedaq::appmodel::TCMakerPlaneCoincidenceAlgorithm::get_n_channels_threshold ( ) const
inline

Get "n_channels_threshold" attribute value. Threshold for the N Channels algorithm.

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

Definition at line 238 of file TCMakerPlaneCoincidenceAlgorithm.hpp.

239 {
240 std::lock_guard scoped_lock(m_mutex);
241 check();
242 check_init();
244 }

◆ get_n_channels_threshold() [2/2]

uint32_t dunedaq::appmodel::TCMakerPlaneCoincidenceAlgorithm::get_n_channels_threshold ( ) const
inline

Get "n_channels_threshold" attribute value. Threshold for the N Channels algorithm.

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

Definition at line 238 of file TCMakerPlaneCoincidenceAlgorithm.hpp.

239 {
240 std::lock_guard scoped_lock(m_mutex);
241 check();
242 check_init();
244 }

◆ get_trigger_on_adc() [1/2]

bool dunedaq::appmodel::TCMakerPlaneCoincidenceAlgorithm::get_trigger_on_adc ( ) const
inline

Get "trigger_on_adc" attribute value. Whether to trigger on ADC integral.

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

Definition at line 139 of file TCMakerPlaneCoincidenceAlgorithm.hpp.

140 {
141 std::lock_guard scoped_lock(m_mutex);
142 check();
143 check_init();
144 return m_trigger_on_adc;
145 }

◆ get_trigger_on_adc() [2/2]

bool dunedaq::appmodel::TCMakerPlaneCoincidenceAlgorithm::get_trigger_on_adc ( ) const
inline

Get "trigger_on_adc" attribute value. Whether to trigger on ADC integral.

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

Definition at line 139 of file TCMakerPlaneCoincidenceAlgorithm.hpp.

140 {
141 std::lock_guard scoped_lock(m_mutex);
142 check();
143 check_init();
144 return m_trigger_on_adc;
145 }

◆ get_trigger_on_n_channels() [1/2]

bool dunedaq::appmodel::TCMakerPlaneCoincidenceAlgorithm::get_trigger_on_n_channels ( ) const
inline

Get "trigger_on_n_channels" attribute value. Whether to trigger on N Channels.

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

Definition at line 172 of file TCMakerPlaneCoincidenceAlgorithm.hpp.

173 {
174 std::lock_guard scoped_lock(m_mutex);
175 check();
176 check_init();
178 }

◆ get_trigger_on_n_channels() [2/2]

bool dunedaq::appmodel::TCMakerPlaneCoincidenceAlgorithm::get_trigger_on_n_channels ( ) const
inline

Get "trigger_on_n_channels" attribute value. Whether to trigger on N Channels.

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

Definition at line 172 of file TCMakerPlaneCoincidenceAlgorithm.hpp.

173 {
174 std::lock_guard scoped_lock(m_mutex);
175 check();
176 check_init();
178 }

◆ get_window_length() [1/2]

uint32_t dunedaq::appmodel::TCMakerPlaneCoincidenceAlgorithm::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 106 of file TCMakerPlaneCoincidenceAlgorithm.hpp.

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

◆ get_window_length() [2/2]

uint32_t dunedaq::appmodel::TCMakerPlaneCoincidenceAlgorithm::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 106 of file TCMakerPlaneCoincidenceAlgorithm.hpp.

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

◆ init() [1/2]

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

Initialize object (method generated by genconffwk)

Parameters
init_childrenif true, initialize referenced objects

Reimplemented from dunedaq::appmodel::TCAlgorithm.

Definition at line 65 of file TCMakerPlaneCoincidenceAlgorithm.cpp.

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

Initialize object (method generated by genconffwk)

Parameters
init_childrenif true, initialize referenced objects

Reimplemented from dunedaq::appmodel::TCAlgorithm.

◆ print() [1/2]

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

Print details of the TCMakerPlaneCoincidenceAlgorithm 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::TCAlgorithm.

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

Print details of the TCMakerPlaneCoincidenceAlgorithm 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::TCAlgorithm.

◆ set_adc_threshold() [1/2]

void dunedaq::appmodel::TCMakerPlaneCoincidenceAlgorithm::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 221 of file TCMakerPlaneCoincidenceAlgorithm.hpp.

222 {
223 std::lock_guard scoped_lock(m_mutex);
224 check();
225 clear();
227 }
void set_by_val(const std::string &name, T value)
Set attribute value.

◆ set_adc_threshold() [2/2]

void dunedaq::appmodel::TCMakerPlaneCoincidenceAlgorithm::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 221 of file TCMakerPlaneCoincidenceAlgorithm.hpp.

222 {
223 std::lock_guard scoped_lock(m_mutex);
224 check();
225 clear();
227 }

◆ set_n_channels_threshold() [1/2]

void dunedaq::appmodel::TCMakerPlaneCoincidenceAlgorithm::set_n_channels_threshold ( uint32_t value)
inline

Set "n_channels_threshold" attribute value. Threshold for the N Channels algorithm.

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

Definition at line 254 of file TCMakerPlaneCoincidenceAlgorithm.hpp.

255 {
256 std::lock_guard scoped_lock(m_mutex);
257 check();
258 clear();
260 }

◆ set_n_channels_threshold() [2/2]

void dunedaq::appmodel::TCMakerPlaneCoincidenceAlgorithm::set_n_channels_threshold ( uint32_t value)
inline

Set "n_channels_threshold" attribute value. Threshold for the N Channels algorithm.

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

Definition at line 254 of file TCMakerPlaneCoincidenceAlgorithm.hpp.

255 {
256 std::lock_guard scoped_lock(m_mutex);
257 check();
258 clear();
260 }

◆ set_trigger_on_adc() [1/2]

void dunedaq::appmodel::TCMakerPlaneCoincidenceAlgorithm::set_trigger_on_adc ( bool value)
inline

Set "trigger_on_adc" attribute value. Whether to trigger on ADC integral.

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

Definition at line 155 of file TCMakerPlaneCoincidenceAlgorithm.hpp.

156 {
157 std::lock_guard scoped_lock(m_mutex);
158 check();
159 clear();
161 }

◆ set_trigger_on_adc() [2/2]

void dunedaq::appmodel::TCMakerPlaneCoincidenceAlgorithm::set_trigger_on_adc ( bool value)
inline

Set "trigger_on_adc" attribute value. Whether to trigger on ADC integral.

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

Definition at line 155 of file TCMakerPlaneCoincidenceAlgorithm.hpp.

156 {
157 std::lock_guard scoped_lock(m_mutex);
158 check();
159 clear();
161 }

◆ set_trigger_on_n_channels() [1/2]

void dunedaq::appmodel::TCMakerPlaneCoincidenceAlgorithm::set_trigger_on_n_channels ( bool value)
inline

Set "trigger_on_n_channels" attribute value. Whether to trigger on N Channels.

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

Definition at line 188 of file TCMakerPlaneCoincidenceAlgorithm.hpp.

189 {
190 std::lock_guard scoped_lock(m_mutex);
191 check();
192 clear();
194 }

◆ set_trigger_on_n_channels() [2/2]

void dunedaq::appmodel::TCMakerPlaneCoincidenceAlgorithm::set_trigger_on_n_channels ( bool value)
inline

Set "trigger_on_n_channels" attribute value. Whether to trigger on N Channels.

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

Definition at line 188 of file TCMakerPlaneCoincidenceAlgorithm.hpp.

189 {
190 std::lock_guard scoped_lock(m_mutex);
191 check();
192 clear();
194 }

◆ set_window_length() [1/2]

void dunedaq::appmodel::TCMakerPlaneCoincidenceAlgorithm::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 122 of file TCMakerPlaneCoincidenceAlgorithm.hpp.

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

◆ set_window_length() [2/2]

void dunedaq::appmodel::TCMakerPlaneCoincidenceAlgorithm::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 122 of file TCMakerPlaneCoincidenceAlgorithm.hpp.

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

Friends And Related Symbol Documentation

◆ conffwk::Configuration

◆ conffwk::DalFactory

conffwk::DalFactory
friend

Definition at line 27 of file TCMakerPlaneCoincidenceAlgorithm.hpp.

◆ conffwk::DalObject

Definition at line 26 of file TCMakerPlaneCoincidenceAlgorithm.hpp.

◆ conffwk::DalRegistry

Definition at line 28 of file TCMakerPlaneCoincidenceAlgorithm.hpp.

Member Data Documentation

◆ m_adc_threshold

uint32_t dunedaq::appmodel::TCMakerPlaneCoincidenceAlgorithm::m_adc_threshold
private

Definition at line 77 of file TCMakerPlaneCoincidenceAlgorithm.hpp.

◆ m_n_channels_threshold

uint32_t dunedaq::appmodel::TCMakerPlaneCoincidenceAlgorithm::m_n_channels_threshold
private

Definition at line 78 of file TCMakerPlaneCoincidenceAlgorithm.hpp.

◆ m_trigger_on_adc

bool dunedaq::appmodel::TCMakerPlaneCoincidenceAlgorithm::m_trigger_on_adc
private

Definition at line 75 of file TCMakerPlaneCoincidenceAlgorithm.hpp.

◆ m_trigger_on_n_channels

bool dunedaq::appmodel::TCMakerPlaneCoincidenceAlgorithm::m_trigger_on_n_channels
private

Definition at line 76 of file TCMakerPlaneCoincidenceAlgorithm.hpp.

◆ m_window_length

uint32_t dunedaq::appmodel::TCMakerPlaneCoincidenceAlgorithm::m_window_length
private

Definition at line 74 of file TCMakerPlaneCoincidenceAlgorithm.hpp.

◆ s_adc_threshold

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

Definition at line 88 of file TCMakerPlaneCoincidenceAlgorithm.hpp.

◆ s_class_name

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

The name of the configuration class.

Definition at line 40 of file TCMakerPlaneCoincidenceAlgorithm.hpp.

◆ s_n_channels_threshold

static const std::string dunedaq::appmodel::TCMakerPlaneCoincidenceAlgorithm::s_n_channels_threshold = "n_channels_threshold"
inlinestatic

Definition at line 89 of file TCMakerPlaneCoincidenceAlgorithm.hpp.

◆ s_trigger_on_adc

static const std::string dunedaq::appmodel::TCMakerPlaneCoincidenceAlgorithm::s_trigger_on_adc = "trigger_on_adc"
inlinestatic

Definition at line 86 of file TCMakerPlaneCoincidenceAlgorithm.hpp.

◆ s_trigger_on_n_channels

static const std::string dunedaq::appmodel::TCMakerPlaneCoincidenceAlgorithm::s_trigger_on_n_channels = "trigger_on_n_channels"
inlinestatic

Definition at line 87 of file TCMakerPlaneCoincidenceAlgorithm.hpp.

◆ s_window_length

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

Definition at line 85 of file TCMakerPlaneCoincidenceAlgorithm.hpp.


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