16 #include <boost/test/unit_test.hpp> 19 #include <type_traits> 46 BOOST_TEST(ID == *iCryo);
50 BOOST_TEST(&cryostat == &cryostatFromID);
69 BOOST_TEST(ID == *iTPC);
72 auto const& TPCFromID =
geom->
TPC(ID);
73 BOOST_TEST(&tpc == &TPCFromID);
92 BOOST_TEST(ID == *iPlane);
95 auto const& planeFromID =
geom->
Plane(ID);
96 BOOST_TEST(&plane == &planeFromID);
void CryostatGeoIDTest() const
Geometry description of a TPC wireThe wire is a single straight segment on a wire plane...
GeometryCore const * geom
pointer to the geometry description
PlaneGeo const & Plane(unsigned int const p, unsigned int const tpc=0, unsigned int const cstat=0) const
Returns the specified wire.
TPC_id_iterator begin_TPC_id() const
Returns an iterator pointing to the first TPC ID in the detector.
IteratorBox< wire_iterator,&GeometryCore::begin_wire,&GeometryCore::end_wire > IterateWires() const
Enables ranged-for loops on all wires of the detector.
IteratorBox< plane_iterator,&GeometryCore::begin_plane,&GeometryCore::end_plane > IteratePlanes() const
Enables ranged-for loops on all planes of the detector.
The data type to uniquely identify a Plane.
Geometry information for a single TPC.
Geometry information for a single cryostat.
void PlaneGeoIDTest() const
void TPCGeoIDTest() const
Tests the correct assignment of IDs to detector geometry objects.
IteratorBox< TPC_iterator,&GeometryCore::begin_TPC,&GeometryCore::end_TPC > IterateTPCs() const
Enables ranged-for loops on all TPCs of the detector.
Geometry information for a single wire plane.The plane is represented in the geometry by a solid whic...
CryostatGeo const & Cryostat(geo::CryostatID const &cryoid) const
Returns the specified cryostat.
The data type to uniquely identify a TPC.
unsigned int Run() const
Executes the test.
Definition of data types for geometry description.
IteratorBox< cryostat_iterator,&GeometryCore::begin_cryostat,&GeometryCore::end_cryostat > IterateCryostats() const
Enables ranged-for loops on all cryostats of the detector.
void WireGeoIDTest() const
cryostat_id_iterator begin_cryostat_id() const
Returns an iterator pointing to the first cryostat ID.
Access the description of detector geometry.
plane_id_iterator begin_plane_id() const
Returns an iterator pointing to the first plane ID in the detector.
wire_id_iterator begin_wire_id() const
Returns an iterator pointing to the first wire ID in the detector.
TPCGeo const & TPC(unsigned int const tpc=0, unsigned int const cstat=0) const
Returns the specified TPC.
The data type to uniquely identify a cryostat.