8 #ifndef ICARUSALG_GEOMETRY_DETAILS_GEOMETRYOBJECTCOLLECTIONS_H
9 #define ICARUSALG_GEOMETRY_DETAILS_GEOMETRYOBJECTCOLLECTIONS_H
22 namespace icarus::details {
25 struct ChannelRange_t;
43 namespace icarus::details {
struct ChannelRange_t; }
48 : std::pair<raw::ChannelID_t, raw::ChannelID_t>
51 using std::pair<raw::ChannelID_t, raw::ChannelID_t>::pair;
61 {
return (channel >=
begin()) && (channel <
end()); }
68 #endif // ICARUSALG_GEOMETRY_DETAILS_GEOMETRYOBJECTCOLLECTIONS_H
constexpr raw::ChannelID_t end() const
Returns the ID of the channel after the last one in the range.
constexpr raw::ChannelID_t begin() const
Returns the ID of the first channel in the range.
std::vector< geo::PlaneGeo const * > PlaneColl_t
Type of collection of planes (pointers to geo::PlaneGeo).
A simple range of channels.
Encapsulate the construction of a single detector plane.
constexpr bool contains(raw::ChannelID_t channel) const
Returns whether this range includes the specified channel.
unsigned int ChannelID_t
Type representing the ID of a readout channel.
std::vector< geo::TPCGeo const * > TPCColl_t
Type of collection of TPCs (pointers to geo::TPCGeo).
Encapsulate the construction of a single detector plane.