9 #include <boost/test/data/test_case.hpp>
10 #include <boost/test/unit_test.hpp>
21 namespace tt = boost::test_tools;
22 using namespace Acts::UnitLiterals;
51 BOOST_CHECK_EQUAL(boundariesPZL.size(), 6
u);
54 BOOST_CHECK_EQUAL(segSurfacesXPZL.size(), size_t(
nbinsx - 1));
55 BOOST_CHECK_EQUAL(segSurfacesYPZL.size(), size_t(
nbinsy - 1));
58 auto centerReadoutPZL = boundariesPZL[0]->center(
tgContext);
59 auto centerCounterPZL = boundariesPZL[1]->center(
tgContext);
60 auto centerDiffPZL = centerReadoutPZL - centerCounterPZL;
61 double thicknessPZL = centerDiffPZL.norm();
74 BOOST_CHECK_EQUAL(boundariesNZL.size(), 6
u);
77 BOOST_CHECK_EQUAL(segSurfacesXNZL.size(), size_t(
nbinsx - 1));
78 BOOST_CHECK_EQUAL(segSurfacesYNZL.size(), size_t(
nbinsy - 1));
81 auto centerReadoutNZL = boundariesNZL[0]->center(
tgContext);
82 auto centerCounterNZL = boundariesNZL[1]->center(
tgContext);
83 auto centerDiffNZL = centerReadoutNZL - centerCounterNZL;
84 double thicknessNZL = centerDiffNZL.norm();
101 BOOST_CHECK_EQUAL(boundariesPL.size(), 6
u);
104 BOOST_CHECK_EQUAL(segSurfacesXPL.size(), size_t(
nbinsx - 1));
105 BOOST_CHECK_EQUAL(segSurfacesYPL.size(), size_t(
nbinsy - 1));
108 auto centerReadoutPL = boundariesPL[0]->center(
tgContext);
109 auto centerCoutnerPL = boundariesPL[1]->center(
tgContext);
110 double thicknessPL =
abs((centerReadoutPL - centerCoutnerPL).
z());
115 auto nLorentzPlane = segSurfacesXPL[2]->normal(
tgContext);
118 double tAngle = acos(nLorentzPlane.dot(nNominal));