11 #ifndef LARCOREALG_GEOMETRY_READOUTIDMAPPER_H 12 #define LARCOREALG_GEOMETRY_READOUTIDMAPPER_H 22 #include <initializer_list> 30 template <
typename Index = std::
size_t>
33 template <
typename Index = std::
size_t>
51 template <
typename Index >
63 using BaseMapper_t::BaseMapper_t;
90 void resize(
unsigned int nCryo,
unsigned int nTPCsets)
124 template <
typename Index >
136 using BaseMapper_t::BaseMapper_t;
147 ROPIDmapper(
unsigned int nCryo,
unsigned int nTPCsets,
unsigned int nROPs)
167 void resize(
unsigned int nCryo,
unsigned int nTPCsets,
unsigned int nROPs)
200 #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.