DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
< Message parameters More...
Namespaces | |
namespace | python |
namespace | timingendpointinfo |
namespace | timingfirmware |
namespace | timingfirmwareinfo |
namespace | timinghardwareinfo |
Classes | |
struct | ActiveEndpointConfig |
class | BoreasDesign |
Class for timing master with integrated HSI designs. More... | |
class | CDCLVD110Node |
uhal::Node implementing CDCLVD110 interface More... | |
class | CDRMuxDesignInterface |
Base class for timing endpoint design nodes. More... | |
class | ChronosDesign |
Class for timing master with integrated HSI designs. More... | |
class | ClockGeneratorInterface |
uhal::Node implementing clock gen. interface More... | |
class | DACNode |
uhal::Node implementing single I2C Master Slave connection to control SFP expander chips. More... | |
class | DACSlave |
Class for dac node. More... | |
class | EchoMonitorNode |
Class for master global node. More... | |
class | EndpointDesign |
Base class for timing endpoint design nodes. More... | |
class | EndpointDesignInterface |
Base class for timing endpoint design nodes. More... | |
class | EndpointNode |
Base class for timing IO nodes. More... | |
class | EndpointNodeInterface |
Base class for timing IO nodes. More... | |
class | FanoutDesign |
Class for timing fanout designs. More... | |
class | FIBIONode |
Class for the FIB board. More... | |
class | FIBV2IONode |
Class for the FIB board. More... | |
class | FLCmdGeneratorNode |
Class for master global node. More... | |
class | FMCIONode |
Class for the timing FMC board. More... | |
class | FrequencyCounterNode |
Base class for timing IO nodes. More... | |
class | GaiaDesign |
Class for timing fanout designs. More... | |
class | GIBIONode |
Class for the timing FMC board. More... | |
class | HadesDesign |
Class for timing master with integrated HSI designs. More... | |
class | HSIDesignInterface |
Base class for timing hsi design nodes. More... | |
class | HSINode |
Class for HSI nodes. More... | |
class | I2CMasterNode |
class | I2CSFPNode |
class | I2CSFPSlave |
I2C slave class to control SFP transceivers. More... | |
class | I2CSlave |
class | IONode |
Base class for timing IO nodes. More... | |
class | IRIGTimestampNode |
Class for timestamp generator node. More... | |
class | KerberosDesign |
Class for timing fanout designs. More... | |
class | MasterDesign |
Base class for timing master designs. More... | |
class | MasterDesignInterface |
Base class for timing master designs. More... | |
class | MasterGlobalNode |
Class for master global node. More... | |
class | MasterMuxDesign |
Class for PDI timing master design on mux board. More... | |
class | MasterNode |
Class for PD-II/DUNE master timing nodes. More... | |
class | MasterNodeInterface |
Base class for timing IO nodes. More... | |
class | MIBIONode |
Class for the timing FMC board. More... | |
class | MIBV2IONode |
Class for the timing FMC board. More... | |
class | MuxDesignInterface |
Base class for timing endpoint design nodes. More... | |
class | OuroborosDesign |
Class for PDI timing master design (known as overlord). More... | |
class | OuroborosMuxDesign |
Class for PDI ouroboros timing master design. More... | |
class | PC059IONode |
Class for the PC059 board. More... | |
class | SFPMuxDesignInterface |
Class for timing fanout designs. More... | |
class | SFPMuxIONode |
Base class for boards which have a physical SFP mux. More... | |
class | SIChipSlave |
Utility class to interface to SI chips. More... | |
class | SIMIONode |
Class for the timing simulation IO. More... | |
struct | stol |
struct | stoul |
class | SwitchyardNode |
Class for master global node. More... | |
class | TimingNode |
Base class for timing nodes. More... | |
class | TimingSourceMuxDesignInterface |
Base class for timing endpoint design nodes. More... | |
class | TLUIONode |
Class for the TLU board. More... | |
class | TopDesign |
Base class for timing top design nodes with IO class. More... | |
class | TopDesignInterface |
Base class for timing top design nodes. More... | |
class | UpstreamCDRNode |
Class for master global node. More... | |
class | VLCmdGeneratorNode |
Class for master global node. More... | |
Typedefs | |
typedef std::map< std::string, uint32_t > | Snapshot |
Functions | |
template<typename T > | |
std::string | to_string (const T &v) |
template<typename M > | |
bool | map_value_comparator (typename M::value_type &p1, typename M::value_type &p2) |
template<typename T > | |
std::vector< T > | sanitize (const std::vector< T > &vec) |
template<typename T , typename U > | |
T | safe_enum_cast (const U &value, const std::vector< T > &valid, const T &def) |
template<typename C > | |
std::string | join (const C &strings, const std::string &delimiter=" ") |
Converts a vector of strings in a delimiter-separated string. | |
template<class T > | |
std::string | format_reg_value (T reg_value, uint32_t base) |
template<> | |
std::string | format_reg_value (std::string reg_value, uint32_t) |
template<> | |
std::string | format_reg_value (uhal::ValWord< uint32_t > reg_value, uint32_t base) |
template<class T > | |
std::string | format_reg_table (T data, std::string title="", std::vector< std::string > headers={ "Register", "Value" }) |
Format reg-value table. | |
template<class T > | |
std::string | format_counters_table (std::vector< T > counters, std::vector< std::string > counter_node_titles={}, std::string table_title="", std::vector< std::string > counter_labels={}, std::string counter_labels_header="Cmd") |
Format reg-value table. | |
template<typename T > | |
std::string | vec_fmt (const std::vector< T > &vec) |
template<typename T > | |
std::string | short_vec_fmt (const std::vector< T > &vec) |
template<typename T , typename U > | |
T | safe_enum_cast (const U &value, const std::vector< T > &valid) |
Snapshot | snapshot (const uhal::Node &node) |
Walk & read the node structure. | |
Snapshot | snapshot (const uhal::Node &node, const std::string ®ex) |
Walk & read the sub-nodes whose IDs match this regex. | |
void | millisleep (const double &time_in_milliseconds) |
std::string | strprintf (const char *fmt,...) |
std::vector< std::string > | shell_expand_paths (const std::string &path) |
std::string | shellExpandPath (const std::string &path) |
void | throw_if_not_file (const std::string &path) |
uint8_t | dec_rng (uint8_t word, uint8_t ibit, uint8_t nbits=1) |
uint64_t | tstamp2int (uhal::ValVector< uint32_t > raw_timestamp) |
int64_t | get_milliseconds_since_epoch () |
int64_t | get_seconds_since_epoch () |
std::string | format_timestamp (uhal::ValVector< uint32_t > raw_timestamp, uint32_t clock_frequency_hz) |
std::string | format_timestamp (uint64_t raw_timestamp, uint32_t clock_frequency_hz) |
double | convert_bits_to_float (uint64_t bits, bool is_double_precision=false) |
BoardType | convert_value_to_board_type (uint32_t Board_type) |
CarrierType | convert_value_to_carrier_type (uint32_t darrier_type) |
DesignType | convert_value_to_design_type (uint32_t design_type) |
std::string | format_firmware_version (uint32_t firmware_version) |
uint32_t | locate (float xx[], unsigned long n, float x) |
< Message parameters
typedef std::map<std::string, uint32_t> dunedaq::timing::Snapshot |
Definition at line 27 of file definitions.hpp.
Enumerator | |
---|---|
kFMCRev1 | |
kFMCRev2 | |
kFMCRev3 | |
kFMCRev4 | |
kPC059Rev1 | |
kTLURev1 | |
kSIMRev1 | |
kFIBRev1 | |
kMIBRev1 | |
kPC069a | |
kMIBRev2 | |
kGIBRev1 | |
kPC069b | |
kFIBRev2 | |
kPC069c | |
kBoardRevisionUnknown |
Definition at line 74 of file definitions.hpp.
Enumerator | |
---|---|
kBoardFMC | |
kBoardSim | |
kBoardPC059 | |
kBoardMicrozed | |
kBoardTLU | |
kBoardFIB | |
kBoardMIB | |
kBoardPC069 | |
kBoardGIB | |
kBoardUnknown |
Definition at line 29 of file definitions.hpp.
Enumerator | |
---|---|
kCarrierEnclustraA35 | |
kCarrierKC705 | |
kCarrierMicrozed | |
kCarrierATFC | |
kCarrierAFC | |
kCarrierNexusVideo | |
kCarrierTrenzTE0712 | |
kCarrierUnknown |
Definition at line 43 of file definitions.hpp.
Enumerator | |
---|---|
kInput0 | |
kInput1 | |
kInput2 | |
kInput3 | |
kFreeRun |
Definition at line 113 of file definitions.hpp.
Definition at line 55 of file definitions.hpp.
Enumerator | |
---|---|
TimeSync | |
Echo | |
SpillStart | |
SpillStop | |
RunStart | |
RunStop | |
WibCalib | |
SSPCalib | |
FakeTrig0 | |
FakeTrig1 | |
FakeTrig2 | |
FakeTrig3 | |
BeamTrig | |
NoBeamTrig | |
ExtFakeTrig |
Definition at line 94 of file definitions.hpp.
Enumerator | |
---|---|
kTAI | |
kUNIX |
Definition at line 129 of file definitions.hpp.
Enumerator | |
---|---|
kUpstream | |
kSoftware | |
kMixed |
Definition at line 122 of file definitions.hpp.
double dunedaq::timing::convert_bits_to_float | ( | uint64_t | bits, |
bool | is_double_precision = false ) |
""
Definition at line 242 of file toolbox.cpp.
BoardType dunedaq::timing::convert_value_to_board_type | ( | uint32_t | Board_type | ) |
Definition at line 274 of file toolbox.cpp.
CarrierType dunedaq::timing::convert_value_to_carrier_type | ( | uint32_t | darrier_type | ) |
Definition at line 287 of file toolbox.cpp.
DesignType dunedaq::timing::convert_value_to_design_type | ( | uint32_t | design_type | ) |
Definition at line 300 of file toolbox.cpp.
uint8_t dunedaq::timing::dec_rng | ( | uint8_t | word, |
uint8_t | ibit, | ||
uint8_t | nbits = 1 ) |
Expand the path
path | path to expand |
Definition at line 167 of file toolbox.cpp.
std::string dunedaq::timing::format_counters_table | ( | std::vector< T > | counters, |
std::vector< std::string > | counter_node_titles = {}, | ||
std::string | table_title = "", | ||
std::vector< std::string > | counter_labels = {}, | ||
std::string | counter_labels_header = "Cmd" ) |
Format reg-value table.
Definition at line 216 of file toolbox.hxx.
std::string dunedaq::timing::format_firmware_version | ( | uint32_t | firmware_version | ) |
Definition at line 352 of file toolbox.cpp.
std::string dunedaq::timing::format_reg_table | ( | T | data, |
std::string | title = "", | ||
std::vector< std::string > | headers = { "Register", "Value" } ) |
Format reg-value table.
Definition at line 166 of file toolbox.hxx.
|
inline |
Definition at line 137 of file toolbox.hxx.
std::string dunedaq::timing::format_reg_value | ( | T | reg_value, |
uint32_t | base = 16 ) |
Format reg-value
Definition at line 117 of file toolbox.hxx.
|
inline |
Definition at line 146 of file toolbox.hxx.
std::string dunedaq::timing::format_timestamp | ( | uhal::ValVector< uint32_t > | raw_timestamp, |
uint32_t | clock_frequency_hz ) |
""
Definition at line 233 of file toolbox.cpp.
std::string dunedaq::timing::format_timestamp | ( | uint64_t | raw_timestamp, |
uint32_t | clock_frequency_hz ) |
""
Definition at line 219 of file toolbox.cpp.
int64_t dunedaq::timing::get_milliseconds_since_epoch | ( | ) |
""
Definition at line 201 of file toolbox.cpp.
int64_t dunedaq::timing::get_seconds_since_epoch | ( | ) |
""
Definition at line 183 of file toolbox.cpp.
std::string dunedaq::timing::join | ( | const C & | strings, |
const std::string & | delimiter = " " ) |
Converts a vector of strings in a delimiter-separated string.
[in] | aStrings | Collection of strings |
[in] | aDelimiter | A delimiter |
C | { description } |
Definition at line 95 of file toolbox.hxx.
uint32_t dunedaq::timing::locate | ( | float | xx[], |
unsigned long | n, | ||
float | x ) |
Definition at line 318 of file toolbox.cpp.
bool dunedaq::timing::map_value_comparator | ( | typename M::value_type & | p1, |
typename M::value_type & | p2 ) |
Definition at line 58 of file toolbox.hxx.
void dunedaq::timing::millisleep | ( | const double & | time_in_milliseconds | ) |
Sleeps for a given number of milliseconds
time_in_milliseconds | Number of milliseconds to sleep |
Definition at line 83 of file toolbox.cpp.
T dunedaq::timing::safe_enum_cast | ( | const U & | value, |
const std::vector< T > & | valid ) |
T dunedaq::timing::safe_enum_cast | ( | const U & | value, |
const std::vector< T > & | valid, | ||
const T & | def ) |
Definition at line 85 of file toolbox.hxx.
std::vector< T > dunedaq::timing::sanitize | ( | const std::vector< T > & | vec | ) |
Definition at line 67 of file toolbox.hxx.
std::vector< std::string > dunedaq::timing::shell_expand_paths | ( | const std::string & | path | ) |
Expand the path
path | path to expand |
Definition at line 114 of file toolbox.cpp.
std::string dunedaq::timing::shellExpandPath | ( | const std::string & | path | ) |
Performs variable subsitutition on path
path | Path to expand |
Definition at line 134 of file toolbox.cpp.
std::string dunedaq::timing::short_vec_fmt | ( | const std::vector< T > & | vec | ) |
Definition at line 399 of file toolbox.hxx.
Snapshot dunedaq::timing::snapshot | ( | const uhal::Node & | node | ) |
Walk & read the node structure.
snapshot( node ) -> { subnode:value }
snapshot( node ) -> { subnode:value }
Definition at line 42 of file toolbox.cpp.
Snapshot dunedaq::timing::snapshot | ( | const uhal::Node & | node, |
const std::string & | regex ) |
Walk & read the sub-nodes whose IDs match this regex.
Definition at line 63 of file toolbox.cpp.
std::string dunedaq::timing::strprintf | ( | const char * | fmt, |
... ) |
Formats a std::string in printf fashion
[in] | aFmt | Format string |
[in] | ... | List of arguments |
Definition at line 99 of file toolbox.cpp.
void dunedaq::timing::throw_if_not_file | ( | const std::string & | path | ) |
Checks that the input path corresponds to an existing filesystem item which is a file
path | Path to file |
Definition at line 147 of file toolbox.cpp.
std::string dunedaq::timing::to_string | ( | const T & | v | ) |
Definition at line 49 of file toolbox.hxx.
uint64_t dunedaq::timing::tstamp2int | ( | uhal::ValVector< uint32_t > | raw_timestamp | ) |
""
Definition at line 175 of file toolbox.cpp.
std::string dunedaq::timing::vec_fmt | ( | const std::vector< T > & | vec | ) |
Definition at line 382 of file toolbox.hxx.