Class containing configuration for PMT readout. More...
#include <PMTconfiguration.h>
Public Member Functions | |
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== (PMTconfiguration const &other) const |
Comparison: all fields need to have the same values. More... | |
bool | operator!= (PMTconfiguration const &other) const |
Public Attributes | |
std::vector < sbn::V1730Configuration > | boards |
Configuration of all PMT readout boards. More... | |
Static Public Attributes | |
static constexpr unsigned int | MaxDumpVerbosity = V1730Configuration::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 PMT readout.
This is an informative class containing configuration of all V1730 boards 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 PMTconfiguration.h.
void sbn::PMTconfiguration::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
: only the number of boards in the configuration1
: information on each board, as in V1730Configuration::dump()
with verbosity one level smaller than the value of verbosity
argument Definition at line 22 of file PMTconfiguration.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 111 of file PMTconfiguration.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 123 of file PMTconfiguration.h.
|
inline |
Definition at line 60 of file PMTconfiguration.h.
|
inline |
Comparison: all fields need to have the same values.
Definition at line 139 of file PMTconfiguration.h.
std::vector<sbn::V1730Configuration> sbn::PMTconfiguration::boards |
Configuration of all PMT readout boards.
Definition at line 52 of file PMTconfiguration.h.
|
static |
Default verbosity level for dump()
.
Definition at line 76 of file PMTconfiguration.h.
|
static |
Maximum supported verbosity level supported by dump()
.
Definition at line 73 of file PMTconfiguration.h.