16 #include <boost/test/unit_test.hpp>
19 #include <type_traits>
40 auto iCryo = geom->begin_cryostat_id();
46 BOOST_TEST(ID == *iCryo);
49 auto const& cryostatFromID = geom->Cryostat(ID);
50 BOOST_TEST(&cryostat == &cryostatFromID);
63 auto iTPC = geom->begin_TPC_id();
69 BOOST_TEST(ID == *iTPC);
72 auto const& TPCFromID = geom->TPC(ID);
73 BOOST_TEST(&tpc == &TPCFromID);
86 auto iPlane = geom->begin_plane_id();
92 BOOST_TEST(ID == *iPlane);
95 auto const& planeFromID = geom->Plane(ID);
96 BOOST_TEST(&plane == &planeFromID);
109 auto iWire = geom->begin_wire_id();
110 for (
geo::WireGeo const& wire [[gnu::unused]]: geom->IterateWires()) {
void CryostatGeoIDTest() const
Geometry description of a TPC wireThe wire is a single straight segment on a wire plane...
The data type to uniquely identify a Plane.
Geometry information for a single TPC.
Geometry information for a single cryostat.
void PlaneGeoIDTest() const
Access the description of detector geometry.
void TPCGeoIDTest() const
Tests the correct assignment of IDs to detector geometry objects.
Geometry information for a single wire plane.The plane is represented in the geometry by a solid whic...
The data type to uniquely identify a TPC.
unsigned int Run() const
Executes the test.
Definition of data types for geometry description.
void WireGeoIDTest() const
The data type to uniquely identify a cryostat.