Class containing configuration for a V1730 channel. More...
#include <V1730channelConfiguration.h>
Public Member Functions | |
bool | hasChannelID () const |
Returns whether the channel ID is set. More... | |
short signed int | relativeThreshold () const |
Threshold relative to the baseline (ticks). 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== (V1730channelConfiguration const &other) const |
Comparison: all fields need to have the same values. More... | |
bool | operator!= (V1730channelConfiguration const &other) const |
Public Attributes | |
short unsigned int | channelNo = std::numeric_limits<short unsigned int>::max() |
Number of the channel on the board (0-15). More... | |
raw::Channel_t | channelID = NoChannelID |
Offline channel ID. More... | |
short signed int | baseline = 0 |
Baseline (BaselineCh<N+1> ). More... | |
short signed int | threshold = 0 |
Threshold (triggerThreshold<N> ). More... | |
bool | enabled = false |
Channel is enabled (enable ). More... | |
Static Public Attributes | |
static constexpr auto | NoChannelID = std::numeric_limits<raw::Channel_t>::max() |
Special value for unassigned channel ID. More... | |
static constexpr unsigned int | 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 channel.
This is an informative class containing configuration of a V1730 channel 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 V1730channelConfiguration.h.
void sbn::V1730channelConfiguration::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
: channel number and whether it is enabled or not (also off-line channel ID if available)1
: also baseline and threshold Definition at line 21 of file V1730channelConfiguration.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 138 of file V1730channelConfiguration.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 150 of file V1730channelConfiguration.h.
|
inline |
Returns whether the channel ID is set.
Definition at line 165 of file V1730channelConfiguration.h.
|
inline |
Definition at line 88 of file V1730channelConfiguration.h.
|
inline |
Comparison: all fields need to have the same values.
Definition at line 177 of file V1730channelConfiguration.h.
|
inline |
Threshold relative to the baseline (ticks).
Definition at line 171 of file V1730channelConfiguration.h.
short signed int sbn::V1730channelConfiguration::baseline = 0 |
Baseline (BaselineCh<N+1>
).
Definition at line 62 of file V1730channelConfiguration.h.
raw::Channel_t sbn::V1730channelConfiguration::channelID = NoChannelID |
Offline channel ID.
Definition at line 59 of file V1730channelConfiguration.h.
short unsigned int sbn::V1730channelConfiguration::channelNo = std::numeric_limits<short unsigned int>::max() |
Number of the channel on the board (0-15).
Definition at line 56 of file V1730channelConfiguration.h.
|
static |
Default verbosity level for dump()
.
Definition at line 103 of file V1730channelConfiguration.h.
bool sbn::V1730channelConfiguration::enabled = false |
Channel is enabled (enable
).
Definition at line 68 of file V1730channelConfiguration.h.
|
static |
Maximum supported verbosity level supported by dump()
.
Definition at line 100 of file V1730channelConfiguration.h.
|
static |
Special value for unassigned channel ID.
Definition at line 49 of file V1730channelConfiguration.h.
short signed int sbn::V1730channelConfiguration::threshold = 0 |
Threshold (triggerThreshold<N>
).
Definition at line 65 of file V1730channelConfiguration.h.