Public Member Functions | Public Attributes | List of all members
geo::ColdBoxChannelMapAlg::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_tfTPCsetTPCs
 All geo::TPCGeo objects in each TPC set. More...
 
readout::TPCsetDataContainer< unsigned int > fROPcount
 Number of readout planes in each TPC set. More...
 
readout::ROPDataContainer< PlaneColl_tfROPplanes
 All geo::PlaneGeo objects in each readout plane. More...
 
geo::TPCDataContainer< readout::TPCsetIDfTPCtoTPCset
 The TPC set each TPC belongs to. More...
 
geo::PlaneDataContainer< readout::ROPIDfPlaneToROP
 The ROP each wire plane belongs to. More...
 

Detailed Description

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

Definition at line 400 of file ColdBoxChannelMapAlg.h.

Constructor & Destructor Documentation

geo::ColdBoxChannelMapAlg::ReadoutMappingInfo_t::ReadoutMappingInfo_t ( )
default

Member Function Documentation

void geo::ColdBoxChannelMapAlg::ReadoutMappingInfo_t::clear ( )
inline

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

Definition at line 452 of file ColdBoxChannelMapAlg.h.

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

Definition at line 449 of file ColdBoxChannelMapAlg.h.

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

Definition at line 448 of file ColdBoxChannelMapAlg.h.

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

Definition at line 446 of file ColdBoxChannelMapAlg.h.

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

Returns whether all the data containers are initialized.

Definition at line 460 of file ColdBoxChannelMapAlg.h.

461  {
462  return !fTPCsetCount.empty() && !fTPCsetTPCs.empty()
463  && !fROPcount.empty() && !fROPplanes.empty()
464  && !fTPCtoTPCset.empty() && !fPlaneToROP.empty();
465  }
readout::ROPDataContainer< PlaneColl_t > fROPplanes
All geo::PlaneGeo objects in each readout plane.
std::vector< unsigned int > fTPCsetCount
Number of TPC sets in each cryostat.
geo::TPCDataContainer< readout::TPCsetID > fTPCtoTPCset
The TPC set each TPC belongs to.
readout::TPCsetDataContainer< unsigned int > fROPcount
Number of readout planes in each TPC set.
readout::TPCsetDataContainer< TPCColl_t > fTPCsetTPCs
All geo::TPCGeo objects in each TPC set.
geo::PlaneDataContainer< readout::ROPID > fPlaneToROP
The ROP each wire plane belongs to.
bool empty() const
Returns whether the container has no elements (false by assumptions).
void geo::ColdBoxChannelMapAlg::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 421 of file ColdBoxChannelMapAlg.h.

429  {
430  fTPCsetCount = std::move(TPCsetCount);
431  fTPCsetTPCs = std::move(TPCsetTPCs );
432  fROPcount = std::move(ROPcount );
433  fROPplanes = std::move(ROPplanes );
434  fTPCtoTPCset = std::move(TPCtoTPCset);
435  fPlaneToROP = std::move(PlaneToROP );
436  assert(fTPCsetCount.size() == fTPCsetTPCs.dimSize<0U>());
437  assert(fTPCsetCount.size() == fROPcount.dimSize<0U>());
438  assert(fTPCsetCount.size() == fROPplanes.dimSize<0U>());
439  assert(fTPCsetCount.size() == fTPCtoTPCset.dimSize<0U>());
440  assert(fTPCsetCount.size() == fPlaneToROP.dimSize<0U>());
441  assert(fTPCsetTPCs.dimSize<1U>() == fROPcount.dimSize<1U>());
442  assert(fTPCsetTPCs.dimSize<1U>() == fROPplanes.dimSize<1U>());
443  assert(fTPCtoTPCset.dimSize<1U>() == fPlaneToROP.dimSize<1U>());
444  } // set()
readout::ROPDataContainer< PlaneColl_t > fROPplanes
All geo::PlaneGeo objects in each readout plane.
std::vector< unsigned int > fTPCsetCount
Number of TPC sets in each cryostat.
geo::TPCDataContainer< readout::TPCsetID > fTPCtoTPCset
The TPC set each TPC belongs to.
readout::TPCsetDataContainer< unsigned int > fROPcount
Number of readout planes in each TPC set.
def move(depos, offset)
Definition: depos.py:107
readout::TPCsetDataContainer< TPCColl_t > fTPCsetTPCs
All geo::TPCGeo objects in each TPC set.
geo::PlaneDataContainer< readout::ROPID > fPlaneToROP
The ROP each wire plane belongs to.
unsigned int dimSize() const
Dimensions of the Level dimension of this container.

Member Data Documentation

geo::PlaneDataContainer<readout::ROPID> geo::ColdBoxChannelMapAlg::ReadoutMappingInfo_t::fPlaneToROP

The ROP each wire plane belongs to.

Definition at line 417 of file ColdBoxChannelMapAlg.h.

readout::TPCsetDataContainer<unsigned int> geo::ColdBoxChannelMapAlg::ReadoutMappingInfo_t::fROPcount

Number of readout planes in each TPC set.

Definition at line 408 of file ColdBoxChannelMapAlg.h.

readout::ROPDataContainer<PlaneColl_t> geo::ColdBoxChannelMapAlg::ReadoutMappingInfo_t::fROPplanes

All geo::PlaneGeo objects in each readout plane.

Definition at line 411 of file ColdBoxChannelMapAlg.h.

std::vector<unsigned int> geo::ColdBoxChannelMapAlg::ReadoutMappingInfo_t::fTPCsetCount

Number of TPC sets in each cryostat.

Definition at line 402 of file ColdBoxChannelMapAlg.h.

readout::TPCsetDataContainer<TPCColl_t> geo::ColdBoxChannelMapAlg::ReadoutMappingInfo_t::fTPCsetTPCs

All geo::TPCGeo objects in each TPC set.

Definition at line 405 of file ColdBoxChannelMapAlg.h.

geo::TPCDataContainer<readout::TPCsetID> geo::ColdBoxChannelMapAlg::ReadoutMappingInfo_t::fTPCtoTPCset

The TPC set each TPC belongs to.

Definition at line 414 of file ColdBoxChannelMapAlg.h.


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