Class containing configuration for a V1730 board. More...
#include <V1730Configuration.h>
Public Member Functions | |
unsigned int | preTriggerTicks () const |
Ticks in the waveform before the trigger. More... | |
unsigned int | postTriggerTicks () const |
Ticks in the waveform after the trigger. More... | |
float | bufferTime () const |
Duration of the waveform [us]. More... | |
float | preTriggerTime () const |
Time in the waveform before the trigger [us]. More... | |
float | postTriggerTime () const |
Time in the waveform after the trigger [us]. More... | |
void | dump (std::ostream &out, std::string const &indent, std::string const &firstIndent, unsigned int verbosity=MaxDumpVerbosity) const |
Dumps the content of the configuration into out stream. More... | |
void | dump (std::ostream &out, std::string const &indent="") const |
Dumps the content of the configuration into out stream. More... | |
void | dump (std::ostream &out, unsigned int verbosity, std::string const &indent="") const |
Dumps the content of the configuration into out stream. More... | |
bool | operator== (V1730Configuration const &other) const |
Comparison: all fields need to have the same values. More... | |
bool | operator!= (V1730Configuration const &other) const |
Static Public Member Functions | |
static float | ticks2us (int ticks) |
Convert a number of ticks into a time interval in microseconds. More... | |
Public Attributes | |
std::string | boardName |
Name (mnemonic) of the board. More... | |
unsigned int | boardID = std::numeric_limits<unsigned int>::max() |
Numeric ID of the board (board_id ). More... | |
unsigned int | fragmentID = std::numeric_limits<unsigned int>::max() |
DAQ fragment ID. More... | |
unsigned int | bufferLength = 0U |
Ticks in each buffer (recordLength ). More... | |
float | postTriggerFrac = 0.0f |
Fraction of the waveform after the trigger signal (postPercent ). More... | |
unsigned int | nChannels = 0U |
Number of channels (nChannels ). More... | |
bool | useTimeTagForTimeStamp = false |
Whether fragment timestamp is synchronised with server NTP and with TTT. More... | |
std::vector < sbn::V1730channelConfiguration > | channels |
Configuration of each channel. More... | |
Static Public Attributes | |
static constexpr unsigned int | MaxDumpVerbosity = V1730channelConfiguration::MaxDumpVerbosity + 1U |
Maximum supported verbosity level supported by dump() . More... | |
static constexpr unsigned int | DefaultDumpVerbosity = MaxDumpVerbosity |
Default verbosity level for dump() . More... | |
Class containing configuration for a V1730 board.
This is an informative class containing configuration of a V1730 board extracted from some other source (typically, DAQ) made readily available to the users.
This class does not include any configuration extraction code.
The class is default-constructible only, and its content needs to be added element by element.
Definition at line 45 of file V1730Configuration.h.
|
inline |
Duration of the waveform [us].
Definition at line 199 of file V1730Configuration.h.
void sbn::V1730Configuration::dump | ( | std::ostream & | out, |
std::string const & | indent, | ||
std::string const & | firstIndent, | ||
unsigned int | verbosity = MaxDumpVerbosity |
||
) | const |
Dumps the content of the configuration into out
stream.
out | stream to dump the information into |
indent | indentation string |
firstIndent | special indentation string for the first line |
verbosity | (default: DefaultDumpVerbosity ) level of verbosity |
The indentation string is prepended to each new line of the dump. The first line indentation string is prepended before the first line of the dump. The dump ends on a new empty line.
The amount of information printed depends on the verbosity
level:
0
: name of the board, board and fragment ID, number of channels1
: waveform length and post-trigger fraction; also: information on each channel, one per line, as with V1730channelConfiguration::dump() with verbosity one level smaller than the value of
verbosityargument *
2`: also setting of fragment timestamp Definition at line 21 of file V1730Configuration.cxx.
|
inline |
Dumps the content of the configuration into out
stream.
out | stream to dump the information into |
indent | indentation level |
Version of dump()
with same first indentation level as the rest, and default verbosity.
Definition at line 158 of file V1730Configuration.h.
|
inline |
Dumps the content of the configuration into out
stream.
out | stream to dump the information into |
indent | (default: none) indentation string |
Version of dump()
with the specified verbosity
level and same first indentation level as the rest.
Definition at line 170 of file V1730Configuration.h.
|
inline |
Definition at line 104 of file V1730Configuration.h.
|
inline |
Comparison: all fields need to have the same values.
Definition at line 215 of file V1730Configuration.h.
|
inline |
Ticks in the waveform after the trigger.
Definition at line 194 of file V1730Configuration.h.
|
inline |
Time in the waveform after the trigger [us].
Definition at line 209 of file V1730Configuration.h.
|
inline |
Ticks in the waveform before the trigger.
Definition at line 189 of file V1730Configuration.h.
|
inline |
Time in the waveform before the trigger [us].
Definition at line 204 of file V1730Configuration.h.
|
inlinestatic |
Convert a number of ticks into a time interval in microseconds.
Definition at line 180 of file V1730Configuration.h.
unsigned int sbn::V1730Configuration::boardID = std::numeric_limits<unsigned int>::max() |
Numeric ID of the board (board_id
).
Definition at line 55 of file V1730Configuration.h.
std::string sbn::V1730Configuration::boardName |
Name (mnemonic) of the board.
Definition at line 52 of file V1730Configuration.h.
unsigned int sbn::V1730Configuration::bufferLength = 0U |
Ticks in each buffer (recordLength
).
Definition at line 61 of file V1730Configuration.h.
std::vector<sbn::V1730channelConfiguration> sbn::V1730Configuration::channels |
Configuration of each channel.
Definition at line 73 of file V1730Configuration.h.
|
static |
Default verbosity level for dump()
.
Definition at line 120 of file V1730Configuration.h.
unsigned int sbn::V1730Configuration::fragmentID = std::numeric_limits<unsigned int>::max() |
DAQ fragment ID.
Definition at line 58 of file V1730Configuration.h.
|
static |
Maximum supported verbosity level supported by dump()
.
Definition at line 117 of file V1730Configuration.h.
unsigned int sbn::V1730Configuration::nChannels = 0U |
Number of channels (nChannels
).
Definition at line 67 of file V1730Configuration.h.
float sbn::V1730Configuration::postTriggerFrac = 0.0f |
Fraction of the waveform after the trigger signal (postPercent
).
Definition at line 64 of file V1730Configuration.h.
bool sbn::V1730Configuration::useTimeTagForTimeStamp = false |
Whether fragment timestamp is synchronised with server NTP and with TTT.
Definition at line 70 of file V1730Configuration.h.