9 #include <boost/test/data/test_case.hpp>
10 #include <boost/test/unit_test.hpp>
25 namespace ActsFatras {
27 BOOST_AUTO_TEST_SUITE(Digitization)
38 Acts::Surface::makeShared<Acts::PlaneSurface>(cPosition, cNormal);
40 double depletion = 0.250;
50 auto noDriftSegment = psd.
toReadout(geoCtx, *planeSurface, depletion,
51 cPosition, cNormal, noDrift);
63 noDriftSegment = psd.
toReadout(geoCtx, *planeSurface, depletion, cPosition,
64 particleDir, noDrift);
77 auto driftedSegment = psd.
toReadout(geoCtx, *planeSurface, depletion,
78 cPosition, particleDir, holeDrift);
80 BOOST_CHECK(std::abs(driftedSegment[0].
x() - driftedSegment[1].
x()) >
82 BOOST_CHECK(std::abs(driftedSegment[0].
y() - driftedSegment[1].
y()) >
88 BOOST_CHECK(std::abs(driftedSegment[0].
x() - noDriftSegment[0].
x()) >
99 driftedSegment = psd.
toReadout(geoCtx, *planeSurface, depletion, cPosition,
100 particleDir, chargeDrift);
102 BOOST_CHECK(std::abs(driftedSegment[0].
x() - driftedSegment[1].
x()) >
104 BOOST_CHECK(std::abs(driftedSegment[0].
y() - driftedSegment[1].
y()) >
110 BOOST_CHECK(std::abs(driftedSegment[1].
x() - noDriftSegment[1].
x()) >
116 BOOST_AUTO_TEST_SUITE_END()