11 #ifndef LARCOREALG_GEOMETRY_READOUTDATACONTAINERS_H 12 #define LARCOREALG_GEOMETRY_READOUTDATACONTAINERS_H 120 void resize(
unsigned int nCryo,
unsigned int nTPCsets)
142 void resize(
unsigned int nCryo,
unsigned int nTPCsets, T
const& defValue)
193 template <
typename T>
240 ROPDataContainer(
unsigned int nCryo,
unsigned int nTPCsets,
unsigned int nROPs, T
const& defValue)
262 void resize(
unsigned int nCryo,
unsigned int nTPCsets,
unsigned int nROPs)
282 void resize(
unsigned int nCryo,
unsigned int nTPCsets,
unsigned int nROPs, T
const& defValue)
318 #endif // LARCOREALG_GEOMETRY_READOUTDATACONTAINERS_H Container with one element per readout TPC set.
Classes identifying readout-related concepts.
bool hasCryostat(readout::CryostatID const &cryoid) const
Returns whether this container hosts data for the specified cryostat.
Container with one element per readout plane.
ROPDataContainer(unsigned int nCryo, unsigned int nTPCsets, unsigned int nROPs, T const &defValue)
Prepares the container with copies of the specified default value.
Class identifying a set of TPC sharing readout channels.
void resize(unsigned int nCryo, unsigned int nTPCsets)
Prepares the container with default-constructed data.
Container with one element per geometry TPC.
void resize(unsigned int nCryo, unsigned int nTPCsets, T const &defValue)
Prepares the container initializing all its data.
void resize(unsigned int nCryo, unsigned int nTPCsets, unsigned int nROPs)
Prepares the container with default-constructed data.
Containers to hold one datum per TPC or plane.
typename BaseContainer_t::value_type value_type
void resize(unsigned int nCryo, unsigned int nTPCsets, unsigned int nROPs, T const &defValue)
Prepares the container initializing all its data.
Class identifying a set of planes sharing readout channels.
bool hasTPCset(readout::TPCsetID const &tpcsetid) const
Returns whether this container hosts data for the specified TPC set.
bool hasROP(readout::ROPID const &ropid) const
Returns whether this container hosts data for the specified readout plane.
TPCsetDataContainer()=default
Default constructor: empty container.
bool hasCryostat(readout::CryostatID const &cryoid) const
Returns whether this container hosts data for the specified cryostat.
TPCsetDataContainer(unsigned int nCryo, unsigned int nTPCsets, value_type const &defValue)
Prepares the container with copies of the specified default value.
bool hasTPCset(readout::TPCsetID const &tpcsetid) const
Returns whether this container hosts data for the specified TPC set.
TPCsetDataContainer(unsigned int nCryo, unsigned int nTPCsets)
Prepares the container with default-constructed data.
Mapping between geometry/readout ID and flat index.
typename Container_t::value_type value_type
Special iterator dereferencing to pairs ( ID, value ) (see items()).
ROPDataContainer(unsigned int nCryo, unsigned int nTPCsets, unsigned int nROPs)
Prepares the container with default-constructed data.
void resize(std::initializer_list< unsigned int > dims)
Prepares the container with default-constructed data.
bool hasElement(GeoID const &id) const
Returns whether this container hosts data for the specified ID.
The data type to uniquely identify a cryostat.