9 #ifndef SBNOBJ_COMMON_PMT_DATA_V1730CHANNELCONFIGURATION_H
10 #define SBNOBJ_COMMON_PMT_DATA_V1730CHANNELCONFIGURATION_H
24 struct V1730channelConfiguration;
27 std::ostream&
operator<<
49 = std::numeric_limits<raw::Channel_t>::max();
56 short unsigned int channelNo = std::numeric_limits<short unsigned int>::max();
84 #if __cplusplus < 202004L
92 # error "With C++20 support, enable the default comparison operators"
124 void dump(std::ostream& out,
125 std::string
const& indent, std::string
const& firstIndent,
138 void dump(std::ostream& out, std::string
const& indent =
"")
const
139 {
dump(out, indent, indent); }
151 unsigned int verbosity,
152 std::string
const& indent =
""
154 {
dump(out, indent, indent, verbosity); }
176 inline bool sbn::V1730channelConfiguration::operator==
179 if (channelNo != other.channelNo)
return false;
180 if (channelID != other.channelID)
return false;
181 if (
baseline != other.baseline )
return false;
182 if (threshold != other.threshold)
return false;
183 if (enabled != other.enabled )
return false;
190 inline std::ostream& sbn::operator<<
192 { config.dump(out);
return out; }
197 #endif // SBNOBJ_COMMON_PMT_DATA_V1730CHANNELCONFIGURATION_H
short signed int threshold
Threshold (triggerThreshold<N>).
bool operator==(V1730channelConfiguration const &other) const
Comparison: all fields need to have the same values.
bool operator!=(V1730channelConfiguration const &other) const
void dump(std::ostream &out, unsigned int verbosity, std::string const &indent="") const
Dumps the content of the configuration into out stream.
static constexpr unsigned int DefaultDumpVerbosity
Default verbosity level for dump().
short unsigned int channelNo
Number of the channel on the board (0-15).
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.
short signed int relativeThreshold() const
Threshold relative to the baseline (ticks).
void dump(std::ostream &out, std::string const &indent="") const
Dumps the content of the configuration into out stream.
static constexpr unsigned int MaxDumpVerbosity
Maximum supported verbosity level supported by dump().
short signed int baseline
Baseline (BaselineCh<N+1>).
bool enabled
Channel is enabled (enable).
static constexpr auto NoChannelID
Special value for unassigned channel ID.
raw::Channel_t channelID
Offline channel ID.
bool hasChannelID() const
Returns whether the channel ID is set.
Class containing configuration for a V1730 channel.