File indexing completed on 2025-01-18 09:11:05
0001
0002
0003
0004
0005
0006
0007
0008
0009 #pragma once
0010
0011
0012
0013 #include <fstream>
0014 #include <map>
0015 #include <memory>
0016 #include <vector>
0017
0018 namespace Acts {
0019
0020 struct GbtsConnection {
0021 public:
0022 GbtsConnection(unsigned int s, unsigned int d);
0023
0024 unsigned int m_src, m_dst;
0025 std::vector<int> m_binTable;
0026 };
0027
0028 class GbtsConnector {
0029 public:
0030 struct LayerGroup {
0031 LayerGroup(unsigned int l1Key,
0032 const std::vector<const Acts::GbtsConnection *> &v)
0033 : m_dst(l1Key), m_sources(v) {}
0034
0035 unsigned int m_dst;
0036 std::vector<const Acts::GbtsConnection *>
0037 m_sources;
0038 };
0039
0040 GbtsConnector(std::ifstream &inFile);
0041
0042 float m_etaBin{};
0043
0044 std::map<int, std::vector<struct LayerGroup>> m_layerGroups;
0045 std::map<int, std::vector<std::unique_ptr<Acts::GbtsConnection>>> m_connMap;
0046 };
0047
0048 }