9 #include <boost/test/data/test_case.hpp>
10 #include <boost/test/unit_test.hpp>
26 namespace tt = boost::test_tools;
27 using namespace Acts::UnitLiterals;
38 auto moduleBounds = std::make_shared<const RectangleBounds>(5_mm, 10_mm);
56 BOOST_CHECK_EQUAL(boundariesPZL.size(), 6
u);
59 BOOST_CHECK_EQUAL(segSurfacesXPZL.size(), size_t(
nbinsx - 1));
60 BOOST_CHECK_EQUAL(segSurfacesYPZL.size(), size_t(
nbinsy - 1));
63 auto centerReadoutPZL = boundariesPZL[0]->center(
tgContext);
64 auto centerCounterPZL = boundariesPZL[1]->center(
tgContext);
65 auto centerDiffPZL = centerReadoutPZL - centerCounterPZL;
66 double thicknessPZL = centerDiffPZL.norm();
79 BOOST_CHECK_EQUAL(boundariesNZL.size(), 6
u);
82 BOOST_CHECK_EQUAL(segSurfacesXNZL.size(), size_t(
nbinsx - 1));
83 BOOST_CHECK_EQUAL(segSurfacesYNZL.size(), size_t(
nbinsy - 1));
86 auto centerReadoutNZL = boundariesNZL[0]->center(
tgContext);
87 auto centerCounterNZL = boundariesNZL[1]->center(
tgContext);
88 auto centerDiffNZL = centerReadoutNZL - centerCounterNZL;
89 double thicknessNZL = centerDiffNZL.norm();
106 BOOST_CHECK_EQUAL(boundariesPL.size(), 6
u);
109 BOOST_CHECK_EQUAL(segSurfacesXPL.size(), size_t(
nbinsx - 1));
110 BOOST_CHECK_EQUAL(segSurfacesYPL.size(), size_t(
nbinsy - 1));
113 auto centerReadoutPL = boundariesPL[0]->center(
tgContext);
114 auto centerCounterPL = boundariesPL[1]->center(
tgContext);
115 double thicknessPL = abs((centerReadoutPL - centerCounterPL).
z());
120 auto nLorentzPlane = segSurfacesXPL[2]->normal(
tgContext);
123 double tAngle = acos(nLorentzPlane.dot(nNominal));