All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
icarus::ICARUSChannelMapAlg::ReadoutMappingInfo_t Struct Reference

Collected information about TPC sets and readout planes in the geometry. More...

Public Member Functions

 ReadoutMappingInfo_t ()=default
 
void set (std::vector< unsigned int > &&TPCsetCount, readout::TPCsetDataContainer< TPCColl_t > &&TPCsetTPCs, readout::TPCsetDataContainer< unsigned int > &&ROPcount, readout::ROPDataContainer< PlaneColl_t > &&ROPplanes, geo::TPCDataContainer< readout::TPCsetID > &&TPCtoTPCset, geo::PlaneDataContainer< readout::ROPID > &&PlaneToROP)
 
unsigned int NCryostats () const
 
unsigned int MaxTPCsets () const
 
unsigned int MaxROPs () const
 
void clear ()
 Frees the memory and leaves the object unusable until next set(). More...
 
 operator bool () const
 Returns whether all the data containers are initialized. More...
 

Public Attributes

std::vector< unsigned int > fTPCsetCount
 Number of TPC sets in each cryostat. More...
 
readout::TPCsetDataContainer
< TPCColl_t
fTPCsetTPCs
 All geo::TPCGeo objects in each TPC set, sorted by increasing z. More...
 
readout::TPCsetDataContainer
< unsigned int > 
fROPcount
 Number of readout planes in each TPC set. More...
 
readout::ROPDataContainer
< PlaneColl_t
fROPplanes
 All geo::PlaneGeo objects in each readout plane, sorted by z. More...
 
geo::TPCDataContainer
< readout::TPCsetID
fTPCtoTPCset
 The TPC set each TPC belongs to. More...
 
geo::PlaneDataContainer
< readout::ROPID
fPlaneToROP
 The ROP each wire plane belongs to. More...
 

Detailed Description

Collected information about TPC sets and readout planes in the geometry.

Definition at line 533 of file ICARUSChannelMapAlg.h.

Constructor & Destructor Documentation

icarus::ICARUSChannelMapAlg::ReadoutMappingInfo_t::ReadoutMappingInfo_t ( )
default

Member Function Documentation

void icarus::ICARUSChannelMapAlg::ReadoutMappingInfo_t::clear ( )
inline

Frees the memory and leaves the object unusable until next set().

Definition at line 585 of file ICARUSChannelMapAlg.h.

586  {
587  fTPCsetCount.clear(); fTPCsetTPCs.clear();
590  }
readout::TPCsetDataContainer< TPCColl_t > fTPCsetTPCs
All geo::TPCGeo objects in each TPC set, sorted by increasing z.
readout::TPCsetDataContainer< unsigned int > fROPcount
Number of readout planes in each TPC set.
geo::TPCDataContainer< readout::TPCsetID > fTPCtoTPCset
The TPC set each TPC belongs to.
void clear()
Makes the container empty, with no usable storage space.
geo::PlaneDataContainer< readout::ROPID > fPlaneToROP
The ROP each wire plane belongs to.
readout::ROPDataContainer< PlaneColl_t > fROPplanes
All geo::PlaneGeo objects in each readout plane, sorted by z.
std::vector< unsigned int > fTPCsetCount
Number of TPC sets in each cryostat.
unsigned int icarus::ICARUSChannelMapAlg::ReadoutMappingInfo_t::MaxROPs ( ) const
inline

Definition at line 582 of file ICARUSChannelMapAlg.h.

582 { return fROPplanes.dimSize<2U>(); }
readout::ROPDataContainer< PlaneColl_t > fROPplanes
All geo::PlaneGeo objects in each readout plane, sorted by z.
unsigned int dimSize() const
Dimensions of the Level dimension of this container.
unsigned int icarus::ICARUSChannelMapAlg::ReadoutMappingInfo_t::MaxTPCsets ( ) const
inline

Definition at line 581 of file ICARUSChannelMapAlg.h.

581 { return fROPplanes.dimSize<1U>(); }
readout::ROPDataContainer< PlaneColl_t > fROPplanes
All geo::PlaneGeo objects in each readout plane, sorted by z.
unsigned int dimSize() const
Dimensions of the Level dimension of this container.
unsigned int icarus::ICARUSChannelMapAlg::ReadoutMappingInfo_t::NCryostats ( ) const
inline

Definition at line 579 of file ICARUSChannelMapAlg.h.

580  { return fROPplanes.dimSize<0U>(); }
readout::ROPDataContainer< PlaneColl_t > fROPplanes
All geo::PlaneGeo objects in each readout plane, sorted by z.
unsigned int dimSize() const
Dimensions of the Level dimension of this container.
icarus::ICARUSChannelMapAlg::ReadoutMappingInfo_t::operator bool ( ) const
inline

Returns whether all the data containers are initialized.

Definition at line 593 of file ICARUSChannelMapAlg.h.

594  {
595  return !fTPCsetCount.empty() && !fTPCsetTPCs.empty()
596  && !fROPcount.empty() && !fROPplanes.empty()
597  && !fTPCtoTPCset.empty() && !fPlaneToROP.empty();
598  }
readout::TPCsetDataContainer< TPCColl_t > fTPCsetTPCs
All geo::TPCGeo objects in each TPC set, sorted by increasing z.
readout::TPCsetDataContainer< unsigned int > fROPcount
Number of readout planes in each TPC set.
geo::TPCDataContainer< readout::TPCsetID > fTPCtoTPCset
The TPC set each TPC belongs to.
geo::PlaneDataContainer< readout::ROPID > fPlaneToROP
The ROP each wire plane belongs to.
readout::ROPDataContainer< PlaneColl_t > fROPplanes
All geo::PlaneGeo objects in each readout plane, sorted by z.
std::vector< unsigned int > fTPCsetCount
Number of TPC sets in each cryostat.
bool empty() const
Returns whether the container has no elements (false by assumptions).
void icarus::ICARUSChannelMapAlg::ReadoutMappingInfo_t::set ( std::vector< unsigned int > &&  TPCsetCount,
readout::TPCsetDataContainer< TPCColl_t > &&  TPCsetTPCs,
readout::TPCsetDataContainer< unsigned int > &&  ROPcount,
readout::ROPDataContainer< PlaneColl_t > &&  ROPplanes,
geo::TPCDataContainer< readout::TPCsetID > &&  TPCtoTPCset,
geo::PlaneDataContainer< readout::ROPID > &&  PlaneToROP 
)
inline

Definition at line 554 of file ICARUSChannelMapAlg.h.

562  {
563  fTPCsetCount = std::move(TPCsetCount);
564  fTPCsetTPCs = std::move(TPCsetTPCs );
565  fROPcount = std::move(ROPcount );
566  fROPplanes = std::move(ROPplanes );
567  fTPCtoTPCset = std::move(TPCtoTPCset);
568  fPlaneToROP = std::move(PlaneToROP );
569  assert(fTPCsetCount.size() == fTPCsetTPCs.dimSize<0U>());
570  assert(fTPCsetCount.size() == fROPcount.dimSize<0U>());
571  assert(fTPCsetCount.size() == fROPplanes.dimSize<0U>());
572  assert(fTPCsetCount.size() == fTPCtoTPCset.dimSize<0U>());
573  assert(fTPCsetCount.size() == fPlaneToROP.dimSize<0U>());
574  assert(fTPCsetTPCs.dimSize<1U>() == fROPcount.dimSize<1U>());
575  assert(fTPCsetTPCs.dimSize<1U>() == fROPplanes.dimSize<1U>());
576  assert(fTPCtoTPCset.dimSize<1U>() == fPlaneToROP.dimSize<1U>());
577  } // set()
readout::TPCsetDataContainer< TPCColl_t > fTPCsetTPCs
All geo::TPCGeo objects in each TPC set, sorted by increasing z.
readout::TPCsetDataContainer< unsigned int > fROPcount
Number of readout planes in each TPC set.
geo::TPCDataContainer< readout::TPCsetID > fTPCtoTPCset
The TPC set each TPC belongs to.
geo::PlaneDataContainer< readout::ROPID > fPlaneToROP
The ROP each wire plane belongs to.
readout::ROPDataContainer< PlaneColl_t > fROPplanes
All geo::PlaneGeo objects in each readout plane, sorted by z.
std::vector< unsigned int > fTPCsetCount
Number of TPC sets in each cryostat.
unsigned int dimSize() const
Dimensions of the Level dimension of this container.

Member Data Documentation

geo::PlaneDataContainer<readout::ROPID> icarus::ICARUSChannelMapAlg::ReadoutMappingInfo_t::fPlaneToROP

The ROP each wire plane belongs to.

Definition at line 550 of file ICARUSChannelMapAlg.h.

readout::TPCsetDataContainer<unsigned int> icarus::ICARUSChannelMapAlg::ReadoutMappingInfo_t::fROPcount

Number of readout planes in each TPC set.

Definition at line 541 of file ICARUSChannelMapAlg.h.

readout::ROPDataContainer<PlaneColl_t> icarus::ICARUSChannelMapAlg::ReadoutMappingInfo_t::fROPplanes

All geo::PlaneGeo objects in each readout plane, sorted by z.

Definition at line 544 of file ICARUSChannelMapAlg.h.

std::vector<unsigned int> icarus::ICARUSChannelMapAlg::ReadoutMappingInfo_t::fTPCsetCount

Number of TPC sets in each cryostat.

Definition at line 535 of file ICARUSChannelMapAlg.h.

readout::TPCsetDataContainer<TPCColl_t> icarus::ICARUSChannelMapAlg::ReadoutMappingInfo_t::fTPCsetTPCs

All geo::TPCGeo objects in each TPC set, sorted by increasing z.

Definition at line 538 of file ICARUSChannelMapAlg.h.

geo::TPCDataContainer<readout::TPCsetID> icarus::ICARUSChannelMapAlg::ReadoutMappingInfo_t::fTPCtoTPCset

The TPC set each TPC belongs to.

Definition at line 547 of file ICARUSChannelMapAlg.h.


The documentation for this struct was generated from the following file: