12 #define BOOST_TEST_MODULE GeometryThirdPlaneSlopeTest
39 testing::BasicGeometryEnvironmentConfiguration<geo::ChannelMapStandardAlg>
77 const double angle_u = 1. / 3. * util::pi<double>();
78 const double angle_v = 2. / 3. * util::pi<double>();
79 const double angle_w = 1. / 2. * util::pi<double>();
82 "Wire angles: u=" << angle_u <<
" v=" << angle_v <<
" => w=" << angle_w
85 const double slope_u = 1. / std::sqrt(3);
86 const double slope_v = 1. / std::sqrt(3);
88 const double expected_slope_w = 0.5;
91 (angle_u, slope_u, angle_v, slope_v, angle_w);
94 "Slopes: s(u)=" << slope_u <<
" s(v)=" << slope_v <<
" => s(w)=" << slope_w
97 BOOST_TEST(slope_w == expected_slope_w, 0.01%
tolerance());
102 BOOST_AUTO_TEST_SUITE_END()
Base class for objects initializing a geometry.
void SetApplicationName(std::string name)
Sets the name of the application.
BOOST_FIXTURE_TEST_SUITE(GeometryIteratorsIcarus, IcarusGeometryIteratorTestFixture) BOOST_AUTO_TEST_CASE(AllTests)
Access the description of detector geometry.
Class holding a configuration for a Boost test fixture.
StandardGeometryConfiguration()
Constructor: overrides the application name.
Description of geometry of one entire detector.
Base class for tests using Boost unit test library.
Interface to algorithm class for a specific detector channel mapping.
static double ComputeThirdPlaneSlope(double angle1, double slope1, double angle2, double slope2, double angle_target)
Returns the slope on the third plane, given it in the other two.
Collection of Physical constants used in LArSoft.