11 #ifndef LARCOREALG_GEOMETRY_READOUTIDMAPPER_H 12 #define LARCOREALG_GEOMETRY_READOUTIDMAPPER_H 21 #include <initializer_list> 31 template <
typename Index = std::
size_t>
34 template <
typename Index = std::
size_t>
53 template <
typename Index >
69 using BaseMapper_t::BaseMapper_t;
99 void resize(
unsigned int nCryo,
unsigned int nTPCsets)
132 template <
typename Index >
146 using BaseMapper_t::BaseMapper_t;
157 ROPIDmapper(
unsigned int nCryo,
unsigned int nTPCsets,
unsigned int nROPs)
178 void resize(
unsigned int nCryo,
unsigned int nTPCsets,
unsigned int nROPs)
213 #endif // LARCOREALG_GEOMETRY_READOUTIDMAPPER_H bool hasCryostat(geo::CryostatID const &cryoid) const
Returns whether this mapping covers the specified cryostat.
ROPIDmapper(unsigned int nCryo, unsigned int nTPCsets, unsigned int nROPs)
Prepares the mapping with the specified sizes.
Classes identifying readout-related concepts.
bool hasTPC(readout::TPCsetID const &tpcsetid) const
Returns whether this mapping covers the specified TPC set.
Class identifying a set of TPC sharing readout channels.
Mapping between geometry/readout ID and flat index.
Mapping for readout plane identifiers.
bool hasPlane(readout::ROPID const &ropid) const
Returns whether this mapping covers the specified readout plane.
Class identifying a set of planes sharing readout channels.
bool hasElement(GeoID const &id) const
Returns whether this mapping hosts data for the specified ID.
readout::TPCsetID ID_t
Type used as ID for this mapping.
void resize(unsigned int nCryo, unsigned int nTPCsets)
Prepares the mapping for the specified sizes.
Index index_type
Type of flat index.
bool hasCryostat(geo::CryostatID const &cryoid) const
Returns whether this mapping covers the specified cryostat.
void resize(std::initializer_list< unsigned int > dims)
Resizes the mapping to accommodate the specified dimension sizes.
Mapping for TPC set identifiers.
void resize(unsigned int nCryo, unsigned int nTPCsets, unsigned int nROPs)
Prepares the mapping for the specified sizes.
bool hasTPCset(readout::TPCsetID const &tpcsetid) const
Returns whether this mapping covers the specified TPC set.
The data type to uniquely identify a cryostat.
TPCsetIDmapper(unsigned int nCryo, unsigned int nTPCsets)
Prepares the mapping with the specified sizes.
Class managing the mapping between geometry/readout ID and flat index.