9 #ifndef SBNOBJ_COMMON_PMT_DATA_PMTCONFIGURATION_H
10 #define SBNOBJ_COMMON_PMT_DATA_PMTCONFIGURATION_H
24 struct PMTconfiguration;
27 std::ostream&
operator<<
52 std::vector<sbn::V1730Configuration>
boards;
56 #if __cplusplus < 202004L
64 # error "With C++20 support, enable the default comparison operators"
97 void dump(std::ostream& out,
98 std::string
const& indent, std::string
const& firstIndent,
111 void dump(std::ostream& out, std::string
const& indent =
"")
const
112 {
dump(out, indent, indent); }
124 unsigned int verbosity,
125 std::string
const& indent =
""
127 {
dump(out, indent, indent, verbosity); }
138 inline bool sbn::PMTconfiguration::operator==
142 if (boards != other.boards)
return false;
149 inline std::ostream& sbn::operator<<
151 { config.dump(out);
return out; }
156 #endif // SBNOBJ_COMMON_PMT_DATA_PMTCONFIGURATION_H
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 MaxDumpVerbosity
Maximum supported verbosity level supported by dump().
Information from the configuration of a V1730 PMT readout board.
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.
void dump(std::ostream &out, std::string const &indent="") const
Dumps the content of the configuration into out stream.
static constexpr unsigned int DefaultDumpVerbosity
Default verbosity level for dump().
bool operator!=(PMTconfiguration const &other) const
static constexpr unsigned int MaxDumpVerbosity
Maximum supported verbosity level supported by dump().
bool operator==(PMTconfiguration const &other) const
Comparison: all fields need to have the same values.
Class containing configuration for PMT readout.
std::vector< sbn::V1730Configuration > boards
Configuration of all PMT readout boards.