ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
BoundaryCheckTestsRefs.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file BoundaryCheckTestsRefs.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2018 CERN for the benefit of the Acts project
4 //
5 // This Source Code Form is subject to the terms of the Mozilla Public
6 // License, v. 2.0. If a copy of the MPL was not distributed with this
7 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 
9 // clang-format off
10 std::vector<Vector2D> rectVertices = {
11  Vector2D(-2.000000, -1.000000),
12  Vector2D(2.000000, -1.000000),
13  Vector2D(2.000000, 1.000000),
14  Vector2D(-2.000000, 1.000000)
15 };
16 
17 struct {
18  double xmin = -2;
19  double xmax = 2;
20  double ymin = -1;
21  double ymax = 1;
23 
25 
26 std::vector<Vector2D> rectTestPoints = {
27  {-3.00, -2.00}, {-3.00, -1.60}, {-3.00, -1.20}, {-3.00, -0.80}, {-3.00, -0.40},
28  {-3.00, 0.00}, {-3.00, 0.40}, {-3.00, 0.80}, {-3.00, 1.20}, {-3.00, 1.60},
29  {-3.00, 2.00}, {-2.40, -2.00}, {-2.40, -1.60}, {-2.40, -1.20}, {-2.40, -0.80},
30  {-2.40, -0.40}, {-2.40, 0.00}, {-2.40, 0.40}, {-2.40, 0.80}, {-2.40, 1.20},
31  {-2.40, 1.60}, {-2.40, 2.00}, {-1.80, -2.00}, {-1.80, -1.60}, {-1.80, -1.20},
32  {-1.80, -0.80}, {-1.80, -0.40}, {-1.80, 0.00}, {-1.80, 0.40}, {-1.80, 0.80},
33  {-1.80, 1.20}, {-1.80, 1.60}, {-1.80, 2.00}, {-1.20, -2.00}, {-1.20, -1.60},
34  {-1.20, -1.20}, {-1.20, -0.80}, {-1.20, -0.40}, {-1.20, 0.00}, {-1.20, 0.40},
35  {-1.20, 0.80}, {-1.20, 1.20}, {-1.20, 1.60}, {-1.20, 2.00}, {-0.60, -2.00},
36  {-0.60, -1.60}, {-0.60, -1.20}, {-0.60, -0.80}, {-0.60, -0.40}, {-0.60, 0.00},
37  {-0.60, 0.40}, {-0.60, 0.80}, {-0.60, 1.20}, {-0.60, 1.60}, {-0.60, 2.00},
38  {0.00, -2.00}, {0.00, -1.60}, {0.00, -1.20}, {0.00, -0.80}, {0.00, -0.40},
39  {0.00, 0.00}, {0.00, 0.40}, {0.00, 0.80}, {0.00, 1.20}, {0.00, 1.60},
40  {0.00, 2.00}, {0.60, -2.00}, {0.60, -1.60}, {0.60, -1.20}, {0.60, -0.80},
41  {0.60, -0.40}, {0.60, 0.00}, {0.60, 0.40}, {0.60, 0.80}, {0.60, 1.20},
42  {0.60, 1.60}, {0.60, 2.00}, {1.20, -2.00}, {1.20, -1.60}, {1.20, -1.20},
43  {1.20, -0.80}, {1.20, -0.40}, {1.20, 0.00}, {1.20, 0.40}, {1.20, 0.80},
44  {1.20, 1.20}, {1.20, 1.60}, {1.20, 2.00}, {1.80, -2.00}, {1.80, -1.60},
45  {1.80, -1.20}, {1.80, -0.80}, {1.80, -0.40}, {1.80, 0.00}, {1.80, 0.40},
46  {1.80, 0.80}, {1.80, 1.20}, {1.80, 1.60}, {1.80, 2.00}, {2.40, -2.00},
47  {2.40, -1.60}, {2.40, -1.20}, {2.40, -0.80}, {2.40, -0.40}, {2.40, 0.00},
48  {2.40, 0.40}, {2.40, 0.80}, {2.40, 1.20}, {2.40, 1.60}, {2.40, 2.00},
49  {3.00, -2.00}, {3.00, -1.60}, {3.00, -1.20}, {3.00, -0.80}, {3.00, -0.40},
50  {3.00, 0.00}, {3.00, 0.40}, {3.00, 0.80}, {3.00, 1.20}, {3.00, 1.60},
51  {3.00, 2.00}
52 };
53 std::vector<Vector2D> rectClosestPoints = {
54  {-2.00, -1.00}, {-2.00, -1.00}, {-2.00, -1.00}, {-2.00, -0.80}, {-2.00, -0.40},
55  {-2.00, 0.00}, {-2.00, 0.40}, {-2.00, 0.80}, {-2.00, 1.00}, {-2.00, 1.00},
56  {-2.00, 1.00}, {-2.00, -1.00}, {-2.00, -1.00}, {-2.00, -1.00}, {-2.00, -0.80},
57  {-2.00, -0.40}, {-2.00, 0.00}, {-2.00, 0.40}, {-2.00, 0.80}, {-2.00, 1.00},
58  {-2.00, 1.00}, {-2.00, 1.00}, {-1.80, -1.00}, {-1.80, -1.00}, {-1.80, -1.00},
59  {-2.00, -0.80}, {-2.00, -0.40}, {-2.00, 0.00}, {-2.00, 0.40}, {-1.80, 1.00},
60  {-1.80, 1.00}, {-1.80, 1.00}, {-1.80, 1.00}, {-1.20, -1.00}, {-1.20, -1.00},
61  {-1.20, -1.00}, {-1.20, -1.00}, {-1.20, -1.00}, {-2.00, 0.00}, {-1.20, 1.00},
62  {-1.20, 1.00}, {-1.20, 1.00}, {-1.20, 1.00}, {-1.20, 1.00}, {-0.60, -1.00},
63  {-0.60, -1.00}, {-0.60, -1.00}, {-0.60, -1.00}, {-0.60, -1.00}, {-0.60, -1.00},
64  {-0.60, 1.00}, {-0.60, 1.00}, {-0.60, 1.00}, {-0.60, 1.00}, {-0.60, 1.00},
65  {0.00, -1.00}, {0.00, -1.00}, {0.00, -1.00}, {0.00, -1.00}, {0.00, -1.00},
66  {0.00, -1.00}, {0.00, 1.00}, {0.00, 1.00}, {0.00, 1.00}, {0.00, 1.00},
67  {0.00, 1.00}, {0.60, -1.00}, {0.60, -1.00}, {0.60, -1.00}, {0.60, -1.00},
68  {0.60, -1.00}, {0.60, -1.00}, {0.60, 1.00}, {0.60, 1.00}, {0.60, 1.00},
69  {0.60, 1.00}, {0.60, 1.00}, {1.20, -1.00}, {1.20, -1.00}, {1.20, -1.00},
70  {1.20, -1.00}, {1.20, -1.00}, {2.00, 0.00}, {1.20, 1.00}, {1.20, 1.00},
71  {1.20, 1.00}, {1.20, 1.00}, {1.20, 1.00}, {1.80, -1.00}, {1.80, -1.00},
72  {1.80, -1.00}, {1.80, -1.00}, {2.00, -0.40}, {2.00, 0.00}, {2.00, 0.40},
73  {1.80, 1.00}, {1.80, 1.00}, {1.80, 1.00}, {1.80, 1.00}, {2.00, -1.00},
74  {2.00, -1.00}, {2.00, -1.00}, {2.00, -0.80}, {2.00, -0.40}, {2.00, 0.00},
75  {2.00, 0.40}, {2.00, 0.80}, {2.00, 1.00}, {2.00, 1.00}, {2.00, 1.00},
76  {2.00, -1.00}, {2.00, -1.00}, {2.00, -1.00}, {2.00, -0.80}, {2.00, -0.40},
77  {2.00, 0.00}, {2.00, 0.40}, {2.00, 0.80}, {2.00, 1.00}, {2.00, 1.00},
78  {2.00, 1.00}
79 };
80 std::vector<double> rectDistances = {
81  1.4142135623730951, 1.1661903789690602, 1.019803902718557, 1.0, 1.0, 1.0, 1.0,
82  1.0, 1.019803902718557, 1.1661903789690602, 1.4142135623730951,
83  1.0770329614269007, 0.7211102550927979, 0.4472135954999578, 0.3999999999999999,
84  0.3999999999999999, 0.3999999999999999, 0.3999999999999999, 0.3999999999999999,
85  0.4472135954999579, 0.7211102550927979, 1.0770329614269007, 1.0,
86  0.6000000000000001, 0.19999999999999996, -0.19999999999999996,
87  -0.19999999999999996, -0.19999999999999996, -0.19999999999999996,
88  -0.19999999999999973, 0.20000000000000018, 0.6000000000000001, 1.0, 1.0,
89  0.6000000000000001, 0.19999999999999996, -0.20000000000000018,
90  -0.6000000000000001, -0.7999999999999998, -0.5999999999999996,
91  -0.19999999999999973, 0.20000000000000018, 0.6000000000000001, 1.0, 1.0,
92  0.6000000000000001, 0.19999999999999996, -0.20000000000000018,
93  -0.6000000000000001, -1.0, -0.5999999999999996, -0.19999999999999973,
94  0.20000000000000018, 0.6000000000000001, 1.0, 1.0, 0.6000000000000001,
95  0.19999999999999996, -0.20000000000000018, -0.6000000000000001, -1.0,
96  -0.5999999999999996, -0.19999999999999973, 0.20000000000000018,
97  0.6000000000000001, 1.0, 1.0, 0.6000000000000001, 0.19999999999999996,
98  -0.20000000000000018, -0.6000000000000001, -1.0, -0.5999999999999996,
99  -0.19999999999999973, 0.20000000000000018, 0.6000000000000001, 1.0, 1.0,
100  0.6000000000000001, 0.19999999999999996, -0.20000000000000018,
101  -0.6000000000000001, -0.7999999999999998, -0.5999999999999996,
102  -0.19999999999999973, 0.20000000000000018, 0.6000000000000001, 1.0, 1.0,
103  0.6000000000000001, 0.19999999999999996, -0.20000000000000018,
104  -0.20000000000000018, -0.20000000000000018, -0.20000000000000018,
105  -0.19999999999999973, 0.20000000000000018, 0.6000000000000001, 1.0,
106  1.0770329614269007, 0.7211102550927977, 0.44721359549995743,
107  0.39999999999999947, 0.39999999999999947, 0.39999999999999947,
108  0.39999999999999947, 0.39999999999999947, 0.44721359549995754,
109  0.7211102550927977, 1.0770329614269007, 1.4142135623730951, 1.1661903789690602,
110  1.019803902718557, 1.0, 1.0, 1.0, 1.0, 1.0, 1.019803902718557,
111  1.1661903789690602, 1.4142135623730951
112 };
113 
114 std::vector<Vector2D> rectShiftedVertices = {
115  Vector2D(1.000000, 2.000000),
116  Vector2D(3.000000, 2.000000),
117  Vector2D(3.000000, 4.000000),
118  Vector2D(1.000000, 4.000000)
119 };
120 
121 struct {
122  double xmin = 1;
123  double xmax = 3;
124  double ymin = 2;
125  double ymax = 4;
127 
129 
130 std::vector<Vector2D> rectShiftedTestPoints = {
131  {0.00, 1.50}, {0.00, 1.80}, {0.00, 2.10}, {0.00, 2.40}, {0.00, 2.70},
132  {0.00, 3.00}, {0.00, 3.30}, {0.00, 3.60}, {0.00, 3.90}, {0.00, 4.20},
133  {0.00, 4.50}, {0.40, 1.50}, {0.40, 1.80}, {0.40, 2.10}, {0.40, 2.40},
134  {0.40, 2.70}, {0.40, 3.00}, {0.40, 3.30}, {0.40, 3.60}, {0.40, 3.90},
135  {0.40, 4.20}, {0.40, 4.50}, {0.80, 1.50}, {0.80, 1.80}, {0.80, 2.10},
136  {0.80, 2.40}, {0.80, 2.70}, {0.80, 3.00}, {0.80, 3.30}, {0.80, 3.60},
137  {0.80, 3.90}, {0.80, 4.20}, {0.80, 4.50}, {1.20, 1.50}, {1.20, 1.80},
138  {1.20, 2.10}, {1.20, 2.40}, {1.20, 2.70}, {1.20, 3.00}, {1.20, 3.30},
139  {1.20, 3.60}, {1.20, 3.90}, {1.20, 4.20}, {1.20, 4.50}, {1.60, 1.50},
140  {1.60, 1.80}, {1.60, 2.10}, {1.60, 2.40}, {1.60, 2.70}, {1.60, 3.00},
141  {1.60, 3.30}, {1.60, 3.60}, {1.60, 3.90}, {1.60, 4.20}, {1.60, 4.50},
142  {2.00, 1.50}, {2.00, 1.80}, {2.00, 2.10}, {2.00, 2.40}, {2.00, 2.70},
143  {2.00, 3.00}, {2.00, 3.30}, {2.00, 3.60}, {2.00, 3.90}, {2.00, 4.20},
144  {2.00, 4.50}, {2.40, 1.50}, {2.40, 1.80}, {2.40, 2.10}, {2.40, 2.40},
145  {2.40, 2.70}, {2.40, 3.00}, {2.40, 3.30}, {2.40, 3.60}, {2.40, 3.90},
146  {2.40, 4.20}, {2.40, 4.50}, {2.80, 1.50}, {2.80, 1.80}, {2.80, 2.10},
147  {2.80, 2.40}, {2.80, 2.70}, {2.80, 3.00}, {2.80, 3.30}, {2.80, 3.60},
148  {2.80, 3.90}, {2.80, 4.20}, {2.80, 4.50}, {3.20, 1.50}, {3.20, 1.80},
149  {3.20, 2.10}, {3.20, 2.40}, {3.20, 2.70}, {3.20, 3.00}, {3.20, 3.30},
150  {3.20, 3.60}, {3.20, 3.90}, {3.20, 4.20}, {3.20, 4.50}, {3.60, 1.50},
151  {3.60, 1.80}, {3.60, 2.10}, {3.60, 2.40}, {3.60, 2.70}, {3.60, 3.00},
152  {3.60, 3.30}, {3.60, 3.60}, {3.60, 3.90}, {3.60, 4.20}, {3.60, 4.50},
153  {4.00, 1.50}, {4.00, 1.80}, {4.00, 2.10}, {4.00, 2.40}, {4.00, 2.70},
154  {4.00, 3.00}, {4.00, 3.30}, {4.00, 3.60}, {4.00, 3.90}, {4.00, 4.20},
155  {4.00, 4.50}
156 };
157 std::vector<Vector2D> rectShiftedClosestPoints = {
158  {1.00, 2.00}, {1.00, 2.00}, {1.00, 2.10}, {1.00, 2.40}, {1.00, 2.70},
159  {1.00, 3.00}, {1.00, 3.30}, {1.00, 3.60}, {1.00, 3.90}, {1.00, 4.00},
160  {1.00, 4.00}, {1.00, 2.00}, {1.00, 2.00}, {1.00, 2.10}, {1.00, 2.40},
161  {1.00, 2.70}, {1.00, 3.00}, {1.00, 3.30}, {1.00, 3.60}, {1.00, 3.90},
162  {1.00, 4.00}, {1.00, 4.00}, {1.00, 2.00}, {1.00, 2.00}, {1.00, 2.10},
163  {1.00, 2.40}, {1.00, 2.70}, {1.00, 3.00}, {1.00, 3.30}, {1.00, 3.60},
164  {1.00, 3.90}, {1.00, 4.00}, {1.00, 4.00}, {1.20, 2.00}, {1.20, 2.00},
165  {1.20, 2.00}, {1.00, 2.40}, {1.00, 2.70}, {1.00, 3.00}, {1.00, 3.30},
166  {1.00, 3.60}, {1.20, 4.00}, {1.20, 4.00}, {1.20, 4.00}, {1.60, 2.00},
167  {1.60, 2.00}, {1.60, 2.00}, {1.60, 2.00}, {1.00, 2.70}, {1.00, 3.00},
168  {1.00, 3.30}, {1.60, 4.00}, {1.60, 4.00}, {1.60, 4.00}, {1.60, 4.00},
169  {2.00, 2.00}, {2.00, 2.00}, {2.00, 2.00}, {2.00, 2.00}, {2.00, 2.00},
170  {2.00, 2.00}, {2.00, 4.00}, {2.00, 4.00}, {2.00, 4.00}, {2.00, 4.00},
171  {2.00, 4.00}, {2.40, 2.00}, {2.40, 2.00}, {2.40, 2.00}, {2.40, 2.00},
172  {3.00, 2.70}, {3.00, 3.00}, {3.00, 3.30}, {2.40, 4.00}, {2.40, 4.00},
173  {2.40, 4.00}, {2.40, 4.00}, {2.80, 2.00}, {2.80, 2.00}, {2.80, 2.00},
174  {3.00, 2.40}, {3.00, 2.70}, {3.00, 3.00}, {3.00, 3.30}, {3.00, 3.60},
175  {2.80, 4.00}, {2.80, 4.00}, {2.80, 4.00}, {3.00, 2.00}, {3.00, 2.00},
176  {3.00, 2.10}, {3.00, 2.40}, {3.00, 2.70}, {3.00, 3.00}, {3.00, 3.30},
177  {3.00, 3.60}, {3.00, 3.90}, {3.00, 4.00}, {3.00, 4.00}, {3.00, 2.00},
178  {3.00, 2.00}, {3.00, 2.10}, {3.00, 2.40}, {3.00, 2.70}, {3.00, 3.00},
179  {3.00, 3.30}, {3.00, 3.60}, {3.00, 3.90}, {3.00, 4.00}, {3.00, 4.00},
180  {3.00, 2.00}, {3.00, 2.00}, {3.00, 2.10}, {3.00, 2.40}, {3.00, 2.70},
181  {3.00, 3.00}, {3.00, 3.30}, {3.00, 3.60}, {3.00, 3.90}, {3.00, 4.00},
182  {3.00, 4.00}
183 };
184 std::vector<double> rectShiftedDistances = {
185  1.118033988749895, 1.019803902718557, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
186  1.0198039027185568, 1.118033988749895, 0.7810249675906654, 0.6324555320336759,
187  0.6, 0.6, 0.6, 0.6, 0.6, 0.6, 0.6, 0.6324555320336757, 0.7810249675906654,
188  0.5385164807134504, 0.28284271247461895, 0.19999999999999996,
189  0.19999999999999996, 0.19999999999999996, 0.19999999999999996,
190  0.19999999999999996, 0.19999999999999996, 0.19999999999999996,
191  0.28284271247461845, 0.5385164807134504, 0.5, 0.19999999999999996,
192  -0.10000000000000009, -0.20000000000000018, -0.20000000000000018,
193  -0.20000000000000018, -0.20000000000000018, -0.20000000000000018,
194  -0.10000000000000009, 0.1999999999999993, 0.5, 0.5, 0.19999999999999996,
195  -0.10000000000000009, -0.3999999999999999, -0.6000000000000001,
196  -0.6000000000000001, -0.6000000000000001, -0.3999999999999999,
197  -0.10000000000000009, 0.1999999999999993, 0.5, 0.5, 0.19999999999999996,
198  -0.10000000000000009, -0.3999999999999999, -0.7000000000000002, -1.0,
199  -0.7000000000000002, -0.3999999999999999, -0.10000000000000009,
200  0.1999999999999993, 0.5, 0.5, 0.19999999999999996, -0.10000000000000009,
201  -0.3999999999999999, -0.5999999999999996, -0.5999999999999996,
202  -0.5999999999999996, -0.3999999999999999, -0.10000000000000009,
203  0.1999999999999993, 0.5, 0.5, 0.19999999999999996, -0.10000000000000009,
204  -0.19999999999999973, -0.19999999999999973, -0.19999999999999973,
205  -0.19999999999999973, -0.19999999999999973, -0.10000000000000009,
206  0.1999999999999993, 0.5, 0.5385164807134505, 0.28284271247461906,
207  0.20000000000000018, 0.20000000000000018, 0.20000000000000018,
208  0.20000000000000018, 0.20000000000000018, 0.20000000000000018,
209  0.20000000000000018, 0.2828427124746186, 0.5385164807134505, 0.7810249675906655,
210  0.6324555320336759, 0.6000000000000001, 0.6000000000000001, 0.6000000000000001,
211  0.6000000000000001, 0.6000000000000001, 0.6000000000000001, 0.6000000000000001,
212  0.6324555320336757, 0.7810249675906655, 1.118033988749895, 1.019803902718557,
213  1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0198039027185568, 1.118033988749895
214 };
215 
216 // clang-format on