9 #include <boost/test/data/test_case.hpp>
10 #include <boost/test/unit_test.hpp>
26 using namespace Acts::UnitLiterals;
31 namespace tt = boost::test_tools;
34 namespace IntegrationTest {
36 const double L = 5.8_m;
37 const double R = (2.56 + 2.46) * 0.5 * 0.5_m;
44 std::ofstream ostr(
"solenoidmap.csv");
45 ostr <<
"i;j;r;z;B_r;B_z" << std::endl;
49 double zMin = 2 * (-
L / 2.);
50 double zMax = 2 * (
L / 2.);
52 std::cout <<
"rMin = " << rMin << std::endl;
53 std::cout <<
"rMax = " << rMax << std::endl;
54 std::cout <<
"zMin = " << zMin << std::endl;
55 std::cout <<
"zMax = " << zMax << std::endl;
62 Acts::detail::EquidistantAxis>;
63 const Grid_t&
grid = map.getGrid();
64 using index_t = Grid_t::index_t;
65 using point_t = Grid_t::point_t;
67 for (
size_t i = 0;
i <=
nBinsR + 1;
i++) {
68 for (
size_t j = 0;
j <=
nBinsZ + 1;
j++) {
74 point_t lowerLeft = grid.lowerLeftBinEdge(
index);
76 ostr <<
i <<
";" <<
j <<
";" << lowerLeft[0] <<
";" << lowerLeft[1];
77 ostr <<
";" << B[0] <<
";" << B[1] << std::endl;
91 m_ofstr <<
"x;y;z;B_x;B_y;B_z;Bm_x;Bm_y;Bm_z" << std::endl;
101 solenoid_interpolated_bfield_comparison,
103 bdata::distribution = std::uniform_real_distribution<>(
104 1.5 * (-
L / 2.), 1.5 *
L / 2.))) ^
106 bdata::distribution =
107 std::uniform_real_distribution<>(0,
R * 1.5))) ^
109 bdata::distribution =
110 std::uniform_real_distribution<>(-M_PI, M_PI))) ^
114 if (
index % 1000 == 0) {
115 std::cout <<
index << std::endl;
123 if (std::abs(
r -
R) > 10 && (std::abs(
z) <
L / 3. ||
r > 20)) {
130 ofstr << pos.x() <<
";" << pos.y() <<
";" << pos.z() <<
";";
131 ofstr << B.x() <<
";" << B.y() <<
";" << B.z() <<
";";
132 ofstr << Bm.x() <<
";" << Bm.y() <<
";" << Bm.z() << std::endl;