DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
#include <DaphneV2AFE.hpp>
Public Member Functions | |
virtual void | print (unsigned int offset, bool print_header, std::ostream &s) const |
Print details of the DaphneV2AFE 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_afe_id () const |
Get "afe_id" attribute value. id in the [0,5) range. | |
void | set_afe_id (uint8_t value) |
Set "afe_id" attribute value. id in the [0,5) range. | |
uint16_t | get_attenuator () const |
Get "attenuator" attribute value. | |
void | set_attenuator (uint16_t value) |
Set "attenuator" attribute value. | |
uint16_t | get_v_bias () const |
Get "v_bias" attribute value. Value for V gain of the AFE, 12 bit register. The bias have to be under a certain value to operate in cold temperature, the maximum value depends on the brand of the SiPM, but it's always smaller than 1500 anyway | |
void | set_v_bias (uint16_t value) |
Set "v_bias" attribute value. Value for V gain of the AFE, 12 bit register. The bias have to be under a certain value to operate in cold temperature, the maximum value depends on the brand of the SiPM, but it's always smaller than 1500 anyway | |
const dunedaq::appmodel::DaphneV2ADC * | get_adc () const |
Get "adc" relationship value. | |
void | set_adc (const dunedaq::appmodel::DaphneV2ADC *value) |
Set "adc" relationship value. | |
const dunedaq::appmodel::DaphneV2PGA * | get_pga () const |
Get "pga" relationship value. | |
void | set_pga (const dunedaq::appmodel::DaphneV2PGA *value) |
Set "pga" relationship value. | |
const dunedaq::appmodel::DaphneV2LNA * | get_lna () const |
Get "lna" relationship value. | |
void | set_lna (const dunedaq::appmodel::DaphneV2LNA *value) |
Set "lna" relationship value. | |
virtual void | print (unsigned int offset, bool print_header, std::ostream &s) const |
Print details of the DaphneV2AFE 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_afe_id () const |
Get "afe_id" attribute value. id in the [0,5) range. | |
void | set_afe_id (uint8_t value) |
Set "afe_id" attribute value. id in the [0,5) range. | |
uint16_t | get_attenuator () const |
Get "attenuator" attribute value. | |
void | set_attenuator (uint16_t value) |
Set "attenuator" attribute value. | |
uint16_t | get_v_bias () const |
Get "v_bias" attribute value. Value for V gain of the AFE, 12 bit register. The bias have to be under a certain value to operate in cold temperature, the maximum value depends on the brand of the SiPM, but it's always smaller than 1500 anyway | |
void | set_v_bias (uint16_t value) |
Set "v_bias" attribute value. Value for V gain of the AFE, 12 bit register. The bias have to be under a certain value to operate in cold temperature, the maximum value depends on the brand of the SiPM, but it's always smaller than 1500 anyway | |
const dunedaq::appmodel::DaphneV2ADC * | get_adc () const |
Get "adc" relationship value. | |
void | set_adc (const dunedaq::appmodel::DaphneV2ADC *value) |
Set "adc" relationship value. | |
const dunedaq::appmodel::DaphneV2PGA * | get_pga () const |
Get "pga" relationship value. | |
void | set_pga (const dunedaq::appmodel::DaphneV2PGA *value) |
Set "pga" relationship value. | |
const dunedaq::appmodel::DaphneV2LNA * | get_lna () const |
Get "lna" relationship value. | |
void | set_lna (const dunedaq::appmodel::DaphneV2LNA *value) |
Set "lna" relationship value. | |
![]() | |
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 ConfigObject & | config_object () const |
DalRegistry & | registry () const noexcept |
Configuration & | configuration () 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_afe_id_str () noexcept |
static const std::string & | __get_attenuator_str () noexcept |
static const std::string & | __get_v_bias_str () noexcept |
static const std::string & | __get_adc_str () noexcept |
static const std::string & | __get_pga_str () noexcept |
static const std::string & | __get_lna_str () noexcept |
static const std::string & | __get_afe_id_str () noexcept |
static const std::string & | __get_attenuator_str () noexcept |
static const std::string & | __get_v_bias_str () noexcept |
static const std::string & | __get_adc_str () noexcept |
static const std::string & | __get_pga_str () noexcept |
static const std::string & | __get_lna_str () noexcept |
![]() | |
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_afe_id = "afe_id" |
static const std::string | s_attenuator = "attenuator" |
static const std::string | s_v_bias = "v_bias" |
static const std::string | s_adc = "adc" |
static const std::string | s_pga = "pga" |
static const std::string | s_lna = "lna" |
Protected Member Functions | |
DaphneV2AFE (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept | |
virtual | ~DaphneV2AFE () 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 |
DaphneV2AFE (conffwk::DalRegistry &db, const conffwk::ConfigObject &obj) noexcept | |
virtual | ~DaphneV2AFE () 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 |
![]() | |
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_afe_id |
uint16_t | m_attenuator |
uint16_t | m_v_bias |
const dunedaq::appmodel::DaphneV2ADC * | m_adc |
const dunedaq::appmodel::DaphneV2PGA * | m_pga |
const dunedaq::appmodel::DaphneV2LNA * | m_lna |
Friends | |
class | conffwk::Configuration |
class | conffwk::DalObject |
class | conffwk::DalFactory |
class | conffwk::DalRegistry |
Additional Inherited Members | |
![]() | |
std::mutex | m_mutex |
Used to protect changes of DAL object. | |
bool | p_was_read |
is true, if the object was read | |
DalRegistry & | p_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) | |
Definition at line 31 of file DaphneV2AFE.hpp.
|
protectednoexcept |
Definition at line 33 of file DaphneV2AFE.cpp.
|
protectedvirtualnoexcept |
Definition at line 93 of file DaphneV2AFE.cpp.
|
protectednoexcept |
|
protectedvirtualnoexcept |
|
inlinestaticnoexcept |
Definition at line 208 of file DaphneV2AFE.hpp.
|
inlinestaticnoexcept |
Definition at line 208 of file DaphneV2AFE.hpp.
|
inlinestaticnoexcept |
Definition at line 98 of file DaphneV2AFE.hpp.
|
inlinestaticnoexcept |
Definition at line 98 of file DaphneV2AFE.hpp.
|
inlinestaticnoexcept |
Definition at line 99 of file DaphneV2AFE.hpp.
|
inlinestaticnoexcept |
Definition at line 99 of file DaphneV2AFE.hpp.
|
inlinestaticnoexcept |
Definition at line 210 of file DaphneV2AFE.hpp.
|
inlinestaticnoexcept |
Definition at line 210 of file DaphneV2AFE.hpp.
|
inlinestaticnoexcept |
Definition at line 209 of file DaphneV2AFE.hpp.
|
inlinestaticnoexcept |
Definition at line 209 of file DaphneV2AFE.hpp.
|
inlinestaticnoexcept |
Definition at line 100 of file DaphneV2AFE.hpp.
|
inlinestaticnoexcept |
Definition at line 100 of file DaphneV2AFE.hpp.
|
virtual |
Get values of relationships and results of some algorithms as a vector of dunedaq::conffwk::DalObject pointers.
Parameters are:
name | name of the relationship or algorithm |
std::exception | if there is no relationship or algorithm with such name in this and base classes |
Implements dunedaq::conffwk::DalObject.
Definition at line 97 of file DaphneV2AFE.cpp.
|
virtual |
Get values of relationships and results of some algorithms as a vector of dunedaq::conffwk::DalObject pointers.
Parameters are:
name | name of the relationship or algorithm |
std::exception | if there is no relationship or algorithm with such name in this and base classes |
Implements dunedaq::conffwk::DalObject.
|
protected |
Definition at line 107 of file DaphneV2AFE.cpp.
|
protected |
|
inline |
Get "adc" relationship value.
Definition at line 220 of file DaphneV2AFE.hpp.
|
inline |
Get "adc" relationship value.
Definition at line 220 of file DaphneV2AFE.hpp.
|
inline |
Get "afe_id" attribute value. id in the [0,5) range.
Definition at line 111 of file DaphneV2AFE.hpp.
|
inline |
Get "afe_id" attribute value. id in the [0,5) range.
Definition at line 111 of file DaphneV2AFE.hpp.
|
inline |
Get "attenuator" attribute value.
Definition at line 143 of file DaphneV2AFE.hpp.
|
inline |
Get "attenuator" attribute value.
Definition at line 143 of file DaphneV2AFE.hpp.
|
inline |
Get "lna" relationship value.
Definition at line 282 of file DaphneV2AFE.hpp.
|
inline |
Get "lna" relationship value.
Definition at line 282 of file DaphneV2AFE.hpp.
|
inline |
Get "pga" relationship value.
Definition at line 251 of file DaphneV2AFE.hpp.
|
inline |
Get "pga" relationship value.
Definition at line 251 of file DaphneV2AFE.hpp.
|
inline |
Get "v_bias" attribute value. Value for V gain of the AFE, 12 bit register. The bias have to be under a certain value to operate in cold temperature, the maximum value depends on the brand of the SiPM, but it's always smaller than 1500 anyway
Definition at line 176 of file DaphneV2AFE.hpp.
|
inline |
Get "v_bias" attribute value. Value for V gain of the AFE, 12 bit register. The bias have to be under a certain value to operate in cold temperature, the maximum value depends on the brand of the SiPM, but it's always smaller than 1500 anyway
Definition at line 176 of file DaphneV2AFE.hpp.
|
protectedvirtual |
Initialize object (method generated by genconffwk)
init_children | if true, initialize referenced objects |
Implements dunedaq::conffwk::DalObject.
Definition at line 74 of file DaphneV2AFE.cpp.
|
protectedvirtual |
Initialize object (method generated by genconffwk)
init_children | if true, initialize referenced objects |
Implements dunedaq::conffwk::DalObject.
|
virtual |
Print details of the DaphneV2AFE object.
Parameters are:
offset | number of spaces to shift object right (useful to print nested objects) |
print_header | if false, do not print object header (to print attributes of base classes) |
s | output stream |
Implements dunedaq::conffwk::DalObject.
Definition at line 44 of file DaphneV2AFE.cpp.
|
virtual |
Print details of the DaphneV2AFE object.
Parameters are:
offset | number of spaces to shift object right (useful to print nested objects) |
print_header | if false, do not print object header (to print attributes of base classes) |
s | output stream |
Implements dunedaq::conffwk::DalObject.
void dunedaq::appmodel::DaphneV2AFE::set_adc | ( | const dunedaq::appmodel::DaphneV2ADC * | value | ) |
Set "adc" relationship value.
value | new relationship value |
Definition at line 126 of file DaphneV2AFE.cpp.
void dunedaq::appmodel::DaphneV2AFE::set_adc | ( | const dunedaq::appmodel::DaphneV2ADC * | value | ) |
Set "adc" relationship value.
value | new relationship value |
|
inline |
Set "afe_id" attribute value. id in the [0,5) range.
value | new attribute value |
Definition at line 127 of file DaphneV2AFE.hpp.
|
inline |
Set "afe_id" attribute value. id in the [0,5) range.
value | new attribute value |
Definition at line 127 of file DaphneV2AFE.hpp.
|
inline |
Set "attenuator" attribute value.
value | new attribute value |
Definition at line 158 of file DaphneV2AFE.hpp.
|
inline |
Set "attenuator" attribute value.
value | new attribute value |
Definition at line 158 of file DaphneV2AFE.hpp.
void dunedaq::appmodel::DaphneV2AFE::set_lna | ( | const dunedaq::appmodel::DaphneV2LNA * | value | ) |
Set "lna" relationship value.
value | new relationship value |
Definition at line 136 of file DaphneV2AFE.cpp.
void dunedaq::appmodel::DaphneV2AFE::set_lna | ( | const dunedaq::appmodel::DaphneV2LNA * | value | ) |
Set "lna" relationship value.
value | new relationship value |
void dunedaq::appmodel::DaphneV2AFE::set_pga | ( | const dunedaq::appmodel::DaphneV2PGA * | value | ) |
Set "pga" relationship value.
value | new relationship value |
Definition at line 131 of file DaphneV2AFE.cpp.
void dunedaq::appmodel::DaphneV2AFE::set_pga | ( | const dunedaq::appmodel::DaphneV2PGA * | value | ) |
Set "pga" relationship value.
value | new relationship value |
|
inline |
Set "v_bias" attribute value. Value for V gain of the AFE, 12 bit register. The bias have to be under a certain value to operate in cold temperature, the maximum value depends on the brand of the SiPM, but it's always smaller than 1500 anyway
value | new attribute value |
Definition at line 193 of file DaphneV2AFE.hpp.
|
inline |
Set "v_bias" attribute value. Value for V gain of the AFE, 12 bit register. The bias have to be under a certain value to operate in cold temperature, the maximum value depends on the brand of the SiPM, but it's always smaller than 1500 anyway
value | new attribute value |
Definition at line 193 of file DaphneV2AFE.hpp.
|
friend |
Definition at line 33 of file DaphneV2AFE.hpp.
|
friend |
Definition at line 35 of file DaphneV2AFE.hpp.
|
friend |
Definition at line 34 of file DaphneV2AFE.hpp.
|
friend |
Definition at line 36 of file DaphneV2AFE.hpp.
|
private |
Definition at line 85 of file DaphneV2AFE.hpp.
|
private |
Definition at line 82 of file DaphneV2AFE.hpp.
|
private |
Definition at line 83 of file DaphneV2AFE.hpp.
|
private |
Definition at line 87 of file DaphneV2AFE.hpp.
|
private |
Definition at line 86 of file DaphneV2AFE.hpp.
|
private |
Definition at line 84 of file DaphneV2AFE.hpp.
|
inlinestatic |
Definition at line 204 of file DaphneV2AFE.hpp.
|
inlinestatic |
Definition at line 94 of file DaphneV2AFE.hpp.
|
inlinestatic |
Definition at line 95 of file DaphneV2AFE.hpp.
|
static |
The name of the configuration class.
Definition at line 48 of file DaphneV2AFE.hpp.
|
inlinestatic |
Definition at line 206 of file DaphneV2AFE.hpp.
|
inlinestatic |
Definition at line 205 of file DaphneV2AFE.hpp.
|
inlinestatic |
Definition at line 96 of file DaphneV2AFE.hpp.