Analysis Software
Documentation for sPHENIX simulation 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 #pragma once
10 
12 
13 // clang-format off
14 const std::vector<Acts::Vector2> rectVertices = {
15  {-2.000000, -1.000000},
16  {2.000000, -1.000000},
17  {2.000000, 1.000000},
18  {-2.000000, 1.000000}
19 };
20 
21 const struct {
22  double xmin = -2;
23  double xmax = 2;
24  double ymin = -1;
25  double ymax = 1;
27 
28 const std::vector<Acts::Vector2> rectTestPoints = {
29  {-3.00, -2.00}, {-3.00, -1.60}, {-3.00, -1.20}, {-3.00, -0.80}, {-3.00, -0.40},
30  {-3.00, 0.00}, {-3.00, 0.40}, {-3.00, 0.80}, {-3.00, 1.20}, {-3.00, 1.60},
31  {-3.00, 2.00}, {-2.40, -2.00}, {-2.40, -1.60}, {-2.40, -1.20}, {-2.40, -0.80},
32  {-2.40, -0.40}, {-2.40, 0.00}, {-2.40, 0.40}, {-2.40, 0.80}, {-2.40, 1.20},
33  {-2.40, 1.60}, {-2.40, 2.00}, {-1.80, -2.00}, {-1.80, -1.60}, {-1.80, -1.20},
34  {-1.80, -0.80}, {-1.80, -0.40}, {-1.80, 0.00}, {-1.80, 0.40}, {-1.80, 0.80},
35  {-1.80, 1.20}, {-1.80, 1.60}, {-1.80, 2.00}, {-1.20, -2.00}, {-1.20, -1.60},
36  {-1.20, -1.20}, {-1.20, -0.80}, {-1.20, -0.40}, {-1.20, 0.00}, {-1.20, 0.40},
37  {-1.20, 0.80}, {-1.20, 1.20}, {-1.20, 1.60}, {-1.20, 2.00}, {-0.60, -2.00},
38  {-0.60, -1.60}, {-0.60, -1.20}, {-0.60, -0.80}, {-0.60, -0.40}, {-0.60, 0.00},
39  {-0.60, 0.40}, {-0.60, 0.80}, {-0.60, 1.20}, {-0.60, 1.60}, {-0.60, 2.00},
40  {0.00, -2.00}, {0.00, -1.60}, {0.00, -1.20}, {0.00, -0.80}, {0.00, -0.40},
41  {0.00, 0.00}, {0.00, 0.40}, {0.00, 0.80}, {0.00, 1.20}, {0.00, 1.60},
42  {0.00, 2.00}, {0.60, -2.00}, {0.60, -1.60}, {0.60, -1.20}, {0.60, -0.80},
43  {0.60, -0.40}, {0.60, 0.00}, {0.60, 0.40}, {0.60, 0.80}, {0.60, 1.20},
44  {0.60, 1.60}, {0.60, 2.00}, {1.20, -2.00}, {1.20, -1.60}, {1.20, -1.20},
45  {1.20, -0.80}, {1.20, -0.40}, {1.20, 0.00}, {1.20, 0.40}, {1.20, 0.80},
46  {1.20, 1.20}, {1.20, 1.60}, {1.20, 2.00}, {1.80, -2.00}, {1.80, -1.60},
47  {1.80, -1.20}, {1.80, -0.80}, {1.80, -0.40}, {1.80, 0.00}, {1.80, 0.40},
48  {1.80, 0.80}, {1.80, 1.20}, {1.80, 1.60}, {1.80, 2.00}, {2.40, -2.00},
49  {2.40, -1.60}, {2.40, -1.20}, {2.40, -0.80}, {2.40, -0.40}, {2.40, 0.00},
50  {2.40, 0.40}, {2.40, 0.80}, {2.40, 1.20}, {2.40, 1.60}, {2.40, 2.00},
51  {3.00, -2.00}, {3.00, -1.60}, {3.00, -1.20}, {3.00, -0.80}, {3.00, -0.40},
52  {3.00, 0.00}, {3.00, 0.40}, {3.00, 0.80}, {3.00, 1.20}, {3.00, 1.60},
53  {3.00, 2.00}
54 };
55 const std::vector<Acts::Vector2> rectClosestPoints = {
56  {-2.00, -1.00}, {-2.00, -1.00}, {-2.00, -1.00}, {-2.00, -0.80}, {-2.00, -0.40},
57  {-2.00, 0.00}, {-2.00, 0.40}, {-2.00, 0.80}, {-2.00, 1.00}, {-2.00, 1.00},
58  {-2.00, 1.00}, {-2.00, -1.00}, {-2.00, -1.00}, {-2.00, -1.00}, {-2.00, -0.80},
59  {-2.00, -0.40}, {-2.00, 0.00}, {-2.00, 0.40}, {-2.00, 0.80}, {-2.00, 1.00},
60  {-2.00, 1.00}, {-2.00, 1.00}, {-1.80, -1.00}, {-1.80, -1.00}, {-1.80, -1.00},
61  {-2.00, -0.80}, {-2.00, -0.40}, {-2.00, 0.00}, {-2.00, 0.40}, {-1.80, 1.00},
62  {-1.80, 1.00}, {-1.80, 1.00}, {-1.80, 1.00}, {-1.20, -1.00}, {-1.20, -1.00},
63  {-1.20, -1.00}, {-1.20, -1.00}, {-1.20, -1.00}, {-2.00, 0.00}, {-1.20, 1.00},
64  {-1.20, 1.00}, {-1.20, 1.00}, {-1.20, 1.00}, {-1.20, 1.00}, {-0.60, -1.00},
65  {-0.60, -1.00}, {-0.60, -1.00}, {-0.60, -1.00}, {-0.60, -1.00}, {-0.60, -1.00},
66  {-0.60, 1.00}, {-0.60, 1.00}, {-0.60, 1.00}, {-0.60, 1.00}, {-0.60, 1.00},
67  {0.00, -1.00}, {0.00, -1.00}, {0.00, -1.00}, {0.00, -1.00}, {0.00, -1.00},
68  {0.00, -1.00}, {0.00, 1.00}, {0.00, 1.00}, {0.00, 1.00}, {0.00, 1.00},
69  {0.00, 1.00}, {0.60, -1.00}, {0.60, -1.00}, {0.60, -1.00}, {0.60, -1.00},
70  {0.60, -1.00}, {0.60, -1.00}, {0.60, 1.00}, {0.60, 1.00}, {0.60, 1.00},
71  {0.60, 1.00}, {0.60, 1.00}, {1.20, -1.00}, {1.20, -1.00}, {1.20, -1.00},
72  {1.20, -1.00}, {1.20, -1.00}, {2.00, 0.00}, {1.20, 1.00}, {1.20, 1.00},
73  {1.20, 1.00}, {1.20, 1.00}, {1.20, 1.00}, {1.80, -1.00}, {1.80, -1.00},
74  {1.80, -1.00}, {1.80, -1.00}, {2.00, -0.40}, {2.00, 0.00}, {2.00, 0.40},
75  {1.80, 1.00}, {1.80, 1.00}, {1.80, 1.00}, {1.80, 1.00}, {2.00, -1.00},
76  {2.00, -1.00}, {2.00, -1.00}, {2.00, -0.80}, {2.00, -0.40}, {2.00, 0.00},
77  {2.00, 0.40}, {2.00, 0.80}, {2.00, 1.00}, {2.00, 1.00}, {2.00, 1.00},
78  {2.00, -1.00}, {2.00, -1.00}, {2.00, -1.00}, {2.00, -0.80}, {2.00, -0.40},
79  {2.00, 0.00}, {2.00, 0.40}, {2.00, 0.80}, {2.00, 1.00}, {2.00, 1.00},
80  {2.00, 1.00}
81 };
82 const std::vector<double> rectDistances = {
83  1.4142135623730951, 1.1661903789690602, 1.019803902718557, 1.0, 1.0, 1.0, 1.0,
84  1.0, 1.019803902718557, 1.1661903789690602, 1.4142135623730951,
85  1.0770329614269007, 0.7211102550927979, 0.4472135954999578, 0.3999999999999999,
86  0.3999999999999999, 0.3999999999999999, 0.3999999999999999, 0.3999999999999999,
87  0.4472135954999579, 0.7211102550927979, 1.0770329614269007, 1.0,
88  0.6000000000000001, 0.19999999999999996, -0.19999999999999996,
89  -0.19999999999999996, -0.19999999999999996, -0.19999999999999996,
90  -0.19999999999999973, 0.20000000000000018, 0.6000000000000001, 1.0, 1.0,
91  0.6000000000000001, 0.19999999999999996, -0.20000000000000018,
92  -0.6000000000000001, -0.7999999999999998, -0.5999999999999996,
93  -0.19999999999999973, 0.20000000000000018, 0.6000000000000001, 1.0, 1.0,
94  0.6000000000000001, 0.19999999999999996, -0.20000000000000018,
95  -0.6000000000000001, -1.0, -0.5999999999999996, -0.19999999999999973,
96  0.20000000000000018, 0.6000000000000001, 1.0, 1.0, 0.6000000000000001,
97  0.19999999999999996, -0.20000000000000018, -0.6000000000000001, -1.0,
98  -0.5999999999999996, -0.19999999999999973, 0.20000000000000018,
99  0.6000000000000001, 1.0, 1.0, 0.6000000000000001, 0.19999999999999996,
100  -0.20000000000000018, -0.6000000000000001, -1.0, -0.5999999999999996,
101  -0.19999999999999973, 0.20000000000000018, 0.6000000000000001, 1.0, 1.0,
102  0.6000000000000001, 0.19999999999999996, -0.20000000000000018,
103  -0.6000000000000001, -0.7999999999999998, -0.5999999999999996,
104  -0.19999999999999973, 0.20000000000000018, 0.6000000000000001, 1.0, 1.0,
105  0.6000000000000001, 0.19999999999999996, -0.20000000000000018,
106  -0.20000000000000018, -0.20000000000000018, -0.20000000000000018,
107  -0.19999999999999973, 0.20000000000000018, 0.6000000000000001, 1.0,
108  1.0770329614269007, 0.7211102550927977, 0.44721359549995743,
109  0.39999999999999947, 0.39999999999999947, 0.39999999999999947,
110  0.39999999999999947, 0.39999999999999947, 0.44721359549995754,
111  0.7211102550927977, 1.0770329614269007, 1.4142135623730951, 1.1661903789690602,
112  1.019803902718557, 1.0, 1.0, 1.0, 1.0, 1.0, 1.019803902718557,
113  1.1661903789690602, 1.4142135623730951
114 };
115 
116 const std::vector<Acts::Vector2> rectShiftedVertices = {
117  {1.000000, 2.000000},
118  {3.000000, 2.000000},
119  {3.000000, 4.000000},
120  {1.000000, 4.000000}
121 };
122 
123 const struct {
124  double xmin = 1;
125  double xmax = 3;
126  double ymin = 2;
127  double ymax = 4;
129 
130 const std::vector<Acts::Vector2> 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 const std::vector<Acts::Vector2> 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 const 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