![]() |
LArSoft
v10_06_00
Liquid Argon Software toolkit - https://larsoft.org/
|
Mapping for readout plane identifiers. More...
#include "ReadoutIDmapper.h"
Public Types | |
| using | ID_t = typename BaseMapper_t::ID_t |
| using | index_type = typename BaseMapper_t::index_type |
Public Member Functions | |
| ROPIDmapper (unsigned int nCryo, unsigned int nTPCsets, unsigned int nROPs) | |
| Prepares the mapping with the specified sizes. More... | |
Mapping modification | |
| void | resize (unsigned int nCryo, unsigned int nTPCsets, unsigned int nROPs) |
| Prepares the mapping for the specified sizes. More... | |
Mapping status query | |
| bool | hasCryostat (geo::CryostatID const &cryoid) const |
| Returns whether this mapping covers the specified cryostat. More... | |
| bool | hasTPC (readout::TPCsetID const &tpcsetid) const |
| Returns whether this mapping covers the specified TPC set. More... | |
| bool | hasPlane (readout::ROPID const &ropid) const |
| Returns whether this mapping covers the specified readout plane. More... | |
Mapping transformations | |
| index_type | index (ID_t const &id) const |
| Returns the linear index corresponding to the specified ID. More... | |
| ID_t | ID (index_type const index) const |
Returns the ID corresponding to the specified linear index. More... | |
| index_type | operator() (ID_t const &id) const |
| Returns the linear index corresponding to the specified ID. More... | |
| ID_t | operator() (index_type const index) const |
Returns the ID corresponding to the specified linear index. More... | |
Mapping modification | |
| void | resize (std::initializer_list< unsigned int > dims) |
| Resizes the mapping to accommodate the specified dimension sizes. More... | |
| void | resizeAs (GeoIDmapper< OIDType, OIndex > const &other) |
| Resizes the mapping to reflect the one from another mapping. More... | |
| void | clear () |
Sets all dimension sizes to 0. More... | |
Private Types | |
| using | BaseMapper_t = geo::GeoIDmapper< readout::ROPID, Index > |
| Base class. More... | |
Indexer status query | |
| index_type | size () const |
| Returns the number of elements in the mapping. More... | |
| bool | empty () const |
Returns whether the mapping has no elements (false by assumptions). More... | |
| unsigned int | dimSize () const |
Dimensions of the Level dimension of this mapping. More... | |
| bool | hasElement (GeoID const &id) const |
| Returns whether this mapping hosts data for the specified ID. More... | |
| GeoID | firstID () const |
Returns the ID of the first element with GeoID type. More... | |
| GeoID | lastID () const |
Returns the ID of the last covered element with GeoID type. More... | |
| static constexpr unsigned int | dimensions () |
| Dimensions of the ID of this mapping. More... | |
Mapping for readout plane identifiers.
| Index | (default: std::size_t) type of flat index |
geo::GeoIDmapperA customized version of geo::GeoIDmapper offering readout plane ID-specific interface.
Definition at line 32 of file ReadoutIDmapper.h.
|
private |
Base class.
Definition at line 126 of file ReadoutIDmapper.h.
| using readout::ROPIDmapper< Index >::ID_t = typename BaseMapper_t::ID_t |
Definition at line 130 of file ReadoutIDmapper.h.
| using readout::ROPIDmapper< Index >::index_type = typename BaseMapper_t::index_type |
Definition at line 131 of file ReadoutIDmapper.h.
|
inline |
Prepares the mapping with the specified sizes.
| nCryo | number of cryostats |
| nTPCsets | number of TPC sets per cryostat |
| nROPs | number of readout planes per TPC set |
The mapping is sized to map nCryo cryostats, each with nTPCsets TPC sets, each one with nROPs readout planes.
Definition at line 145 of file ReadoutIDmapper.h.
|
inherited |
Sets all dimension sizes to 0.
resize()The mapping needs to be resized before it is useful again.
|
staticinherited |
Dimensions of the ID of this mapping.
|
inherited |
Dimensions of the Level dimension of this mapping.
|
inherited |
Returns whether the mapping has no elements (false by assumptions).
|
inherited |
Returns the ID of the first element with GeoID type.
|
inline |
Returns whether this mapping covers the specified cryostat.
Definition at line 178 of file ReadoutIDmapper.h.
|
inherited |
Returns whether this mapping hosts data for the specified ID.
|
inline |
Returns whether this mapping covers the specified readout plane.
Definition at line 187 of file ReadoutIDmapper.h.
|
inline |
Returns whether this mapping covers the specified TPC set.
Definition at line 181 of file ReadoutIDmapper.h.
|
inherited |
Returns the ID corresponding to the specified linear index.
|
inherited |
Returns the linear index corresponding to the specified ID.
|
inherited |
Returns the ID of the last covered element with GeoID type.
|
inherited |
Returns the linear index corresponding to the specified ID.
|
inherited |
Returns the ID corresponding to the specified linear index.
|
inherited |
Resizes the mapping to accommodate the specified dimension sizes.
| dims | number of elements on all levels of the mapping |
resizeAs()The size of each dimension is specified by the corresponding number, starting from the size of the outer dimension (cryostat).
|
inline |
Prepares the mapping for the specified sizes.
| nCryo | number of cryostats |
| nTPCsets | number of TPC sets per cryostat |
| nROPs | number of readout planes per TPC set |
resizeAs()The mapping is sized to map nCryo cryostats, each with nTPCsets TPC sets, each one with nROPs readout planes.
Definition at line 165 of file ReadoutIDmapper.h.
|
inherited |
Resizes the mapping to reflect the one from another mapping.
| other | ID mapping to take dimensions from |
The size of each dimension is taken by the matching one in other.
|
inherited |
Returns the number of elements in the mapping.