37 template <
typename space_po
int_t>
55 float eta1 = -std::log(sqrt(1 + t1 * t1) - t1);
58 float eta2 = -std::log(sqrt(1 + t2 * t2) - t2);
74 int binCounter = bin0;
78 m_bins.push_back(binCounter++);
100 m_bins.push_back(binCounter++);
116 m_bins.push_back(binCounter++);
148 float eta = -std::log(std::sqrt(1 + t1 * t1) - t1);
155 if (idx >= static_cast<int>(
m_bins.size())) {
156 idx =
static_cast<int>(
m_bins.size()) - 1;
184 float min_z0,
float max_z0)
const {
191 const float tol = 5.0;
198 float A = r2 / (r2 -
r1);
199 float B = r1 / (r2 -
r1);
201 float z0_min = z1min * A - max_b2 * B;
202 float z0_max = z1max * A - min_b2 * B;
204 if (z0_max < min_z0 - tol || z0_min > max_z0 + tol) {
212 const float tol = 10.0;
214 float z2 = pL->
m_layer.m_refCoord;
229 z0_max = (z1max * r2max - z2 *
r1) / (r2max - r1);
230 z0_min = (z1min * r2min - z2 *
r1) / (r2min - r1);
232 z0_max = (z1max * r2min - z2 *
r1) / (r2min - r1);
233 z0_min = (z1min * r2max - z2 *
r1) / (r2max - r1);
236 if (z0_max < min_z0 - tol || z0_min > max_z0 + tol) {
262 template <
typename space_po
int_t>
266 std::unique_ptr<Acts::FasTrackConnector> &conn)
269 const float min_z0 = -168.0;
270 const float max_z0 = 168.0;
273 for (
const auto &
layer : layers) {
281 for (std::map<
int, std::vector<FasTrackConnection *>>::const_iterator
it =
284 const std::vector<FasTrackConnection *> &vConn = (*it).second;
286 for (std::vector<FasTrackConnection *>::const_iterator cIt =
288 cIt != vConn.end(); ++cIt) {
289 unsigned int src = (*cIt)->m_src;
290 unsigned int dst = (*cIt)->m_dst;
297 if (pL1 ==
nullptr) {
298 std::cout <<
" skipping invalid dst layer " << dst << std::endl;
301 if (pL2 ==
nullptr) {
302 std::cout <<
" skipping invalid src layer " << src << std::endl;
305 int nSrcBins = pL2->
m_bins.size();
306 int nDstBins = pL1->
m_bins.size();
308 (*cIt)->m_binTable.resize(nSrcBins * nDstBins, 0);
310 for (
int b1 = 0;
b1 < nDstBins;
b1++) {
311 for (
int b2 = 0; b2 < nSrcBins; b2++) {
312 if (!pL1->
verifyBin(pL2,
b1, b2, min_z0, max_z0)) {
315 int address =
b1 + b2 * nDstBins;
316 (*cIt)->m_binTable.at(address) = 1;
341 unsigned int key)
const {
342 typename std::map<
unsigned int,
378 std::map<unsigned int, TrigFTF_GNN_Layer<space_point_t> *>
m_layMap;