33 std::string
const& firstIndent)
const 57 std::string firstIndent)
const 59 return {
this, std::move(indent), std::move(firstIndent)};
65 std::string
const& firstIndent)
const 76 << indent <<
" Detector enclosure: " << box.
Min() <<
" -- " << box.
Max() <<
" cm => ( " 77 << box.
SizeX() <<
" x " << box.
SizeY() <<
" x " << box.
SizeZ() <<
" ) cm^3";
86 std::string
const& firstIndent)
const 102 tpc.PrintTPCInfo(out, indent +
" ", tpc.MaxVerbosity);
119 out <<
"\n" << indent <<
" [OpDet #" << iOpDet <<
"] ";
128 std::string
const&
indent,
129 std::string
const& firstIndent)
const 132 const unsigned int nWires = plane.
Nwires();
138 << indent <<
"signal type: " <<
SignalTypeName(sigType) <<
" (" <<
static_cast<int>(sigType)
144 out <<
"\n" << indent << wireID <<
" ";
152 std::string
const&
indent,
153 std::string
const& firstIndent)
const 157 out << firstIndent <<
"Auxiliary detectors (" << nAuxDets <<
"):";
161 out <<
'\n' << indent <<
"[#" << iDet <<
"] ";
165 switch (nSensitive) {
169 out <<
"\n" << indent <<
" ";
175 out <<
"\n" << indent <<
" [#" << iSens <<
"] ";
void dumpTPCplane(std::ostream &out, geo::PlaneGeo const &plane, std::string const &indent, std::string const &firstIndent) const
Dumps the information from the specified plane (including wires).
Geometry description of a TPC wireThe wire is a single straight segment on a wire plane...
void PrintWireInfo(Stream &&out, std::string indent="", unsigned int verbosity=1) const
Prints information about this wire.
AuxDetGeo const & AuxDet(std::size_t const ad=0) const
Returns the specified auxiliary detector.
Encapsulate the construction of a single cyostat .
double SizeX() const
Returns the full size in the X dimension.
OpDetGeo const & OpDet(unsigned int iopdet) const
Return the iopdet'th optical detector in the cryostat.
geo::WireReadoutGeom const * fWireGeom
Cached wire readout service provider.
Point_t Max() const
Returns the corner point with the largest coordinates.
AuxDetSensitiveGeo const & SensitiveVolume(size_t sv) const
Geometry information for a single TPC.
geo::GeometryCore const * fGeom
Cached geometry service provider.
BoxBoundedGeo DetectorEnclosureBox(std::string const &name="volDetEnclosure") const
ElementIteratorBox IterateTPCs() const
Returns an object suitable for iterating through all TPCs.
WireGeo const & Wire(unsigned int iwire) const
void dumpCryostat(std::ostream &out, geo::CryostatGeo const &cryostat, std::string const &indent, std::string const &firstIndent) const
Dumps all content of the specified cryostat.
SigType_t SignalType(PlaneID const &pid) const
Returns the type of signal on the channels of specified TPC plane.
Geometry information for a single cryostat.
unsigned int Ncryostats() const
Returns the number of cryostats in the detector.
Description of physical geometry of one set of auxiliary detectors.
std::size_t NAuxDets() const
Returns the number of auxiliary detectors.
StreamAdapter toStream(std::string indent, std::string firstIndent) const
Adapter to send the dump to a C++ output stream via insertion.
double SizeY() const
Returns the full size in the Y dimension.
WireReadoutDumper(geo::GeometryCore const *geom, geo::WireReadoutGeom const *wireGeom, geo::AuxDetGeometryCore const *auxGeom)
Constructor: acquires geometry service providers.
auto counter(T begin, T end)
Returns an object to iterate values from begin to end in a range-for loop.
WireReadoutDumper const * dumper
void PrintCryostatInfo(Stream &&out, std::string indent="", unsigned int verbosity=1) const
Prints information about this cryostat.
void dumpAuxiliaryDetectors(std::ostream &out, std::string const &indent, std::string const &firstIndent) const
Dumps all auxiliary detector information.
decltype(auto) constexpr to_string(T &&obj)
ADL-aware version of std::to_string.
enum geo::_plane_sigtype SigType_t
Enumerate the possible plane projections.
Interface for a class providing readout channel mapping to geometry.
std::string indent(std::size_t const i)
Geometry information for a single wire plane.The plane is represented in the geometry by a solid whic...
void PrintOpDetInfo(Stream &&out, std::string indent="", unsigned int verbosity=0) const
Prints information about this optical detector.
size_t NSensitiveVolume() const
Test of util::counter and support utilities.
void dumpDetectorInfo(std::ostream &out, std::string const &indent, std::string const &firstIndent) const
Dumps the general detector information.
Description of the physical geometry of one entire detector.
Helper for insertion into C++ output streams.
void PrintAuxDetInfo(Stream &&out, std::string indent="", unsigned int verbosity=0) const
Prints information about this auxiliary sensitive detector.
Provides a base class aware of world box coordinates.
void dump(std::ostream &out, std::string const &indent, std::string const &firstIndent) const
Dumps the full geometry information into a stream.
double SizeZ() const
Returns the full size in the Z dimension.
Encapsulate the geometry of an optical detector.
static constexpr unsigned int MaxVerbosity
Maximum verbosity supported by PrintCryostatInfo().
Point_t Min() const
Returns the corner point with the smallest coordinates.
static constexpr unsigned int MaxVerbosity
Maximum verbosity supported by PrintAuxDetInfo().
A base class aware of world box coordinatesAn object describing a simple shape can inherit from this ...
Encapsulate the construction of a single detector plane .
void PrintPlaneInfo(Stream &&out, std::string indent="", unsigned int verbosity=1) const
Prints information about this plane.
Algorithm dumping the full detector geometry down to wires.
unsigned int NOpDet() const
Number of optical detectors in this TPC.
static constexpr unsigned int MaxVerbosity
Maximum verbosity supported by PrintOpDetInfo().
geo::AuxDetGeometryCore const * fAuxGeom
Cached auxiliary detector geometry service provider.
static constexpr unsigned int MaxVerbosity
Maximum verbosity supported by PrintAuxDetInfo().
unsigned int Nwires() const
Number of wires in this plane.
range_type< T > Iterate() const
static constexpr unsigned int MaxVerbosity
Maximum verbosity supported by PrintWireInfo().
std::ostream & operator<<(std::ostream &out, WireReadoutDumper::StreamAdapter const &dumpAdapter)
Helper for geo::WireReadoutDumper::toStream().
std::string const & DetectorName() const
Returns a string with the name of the detector, as configured.
static constexpr unsigned int MaxVerbosity
Maximum value for print verbosity.
PlaneID const & ID() const
Returns the identifier of this plane.
void PrintAuxDetInfo(Stream &&out, std::string indent="", unsigned int verbosity=1) const
Prints information about this auxiliary detector.
std::string SignalTypeName(SigType_t sigType)
Returns the name of the specified signal type.
Encapsulate the construction of a single detector plane .