12 #define BOOST_TEST_MODULE GeometryThirdPlaneSlopeTest 15 #include "test/Geometry/geometry_unit_test_base.h" 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()
testing::GeometryTesterEnvironment< StandardGeometryConfiguration > SimpleGeometryTestFixture
Class holding a configuration for a Boost test fixture.
StandardGeometryConfiguration()
Constructor: overrides the application name.
Environment for a geometry test.
Description of geometry of one entire detector.
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.
BOOST_AUTO_TEST_CASE(AllTests)
Access the description of detector geometry.
Collection of Physical constants used in LArSoft.
void SetApplicationName(string const &applicationName)