#include <GNN_DataStorage.h>
Definition at line 41 of file GNN_DataStorage.h.
◆ TrigFTF_GNN_EtaBin()
| TrigFTF_GNN_EtaBin::TrigFTF_GNN_EtaBin |
( |
| ) |
|
Definition at line 15 of file GNN_DataStorage.cxx.
21}
std::vector< const TrigFTF_GNN_Node * > m_vn
std::vector< unsigned int > m_vFirstEdge
std::vector< std::array< float, 5 > > m_params
std::vector< unsigned short > m_vNumEdges
◆ ~TrigFTF_GNN_EtaBin()
| TrigFTF_GNN_EtaBin::~TrigFTF_GNN_EtaBin |
( |
| ) |
|
◆ empty()
| bool TrigFTF_GNN_EtaBin::empty |
( |
| ) |
const |
|
inline |
◆ generatePhiIndexing()
| void TrigFTF_GNN_EtaBin::generatePhiIndexing |
( |
float | dphi | ) |
|
Definition at line 70 of file GNN_DataStorage.cxx.
70 {
71
72 for(
unsigned int nIdx=0;nIdx<
m_vn.size();nIdx++) {
73
77
78 }
79
80 for(
unsigned int nIdx=0;nIdx<
m_vn.size();nIdx++) {
83 }
84
85 for(
unsigned int nIdx=0;nIdx<
m_vn.size();nIdx++) {
86
90 }
91
92}
Scalar phi() const
phi method
std::vector< std::pair< float, unsigned int > > m_vPhiNodes
◆ getMaxBinRadius()
| float TrigFTF_GNN_EtaBin::getMaxBinRadius |
( |
| ) |
const |
|
inline |
◆ getMinBinRadius()
| float TrigFTF_GNN_EtaBin::getMinBinRadius |
( |
| ) |
const |
|
inline |
◆ initializeNodes()
| void TrigFTF_GNN_EtaBin::initializeNodes |
( |
| ) |
|
Definition at line 53 of file GNN_DataStorage.cxx.
53 {
54
55 if(
m_vn.empty())
return;
56
60
62 [](
const TrigFTF_GNN_Node* pN) { std::array<float,5> a = {-100.0, 100.0, pN->phi(), pN->r(), pN->z()};
return a;});
63
64 auto [min_iter, max_iter] = std::minmax_element(
m_vn.begin(),
m_vn.end(),
65 [](const TrigFTF_GNN_Node* s, const TrigFTF_GNN_Node* s1) { return (s->r() < s1->r()); });
68}
◆ sortByPhi()
| void TrigFTF_GNN_EtaBin::sortByPhi |
( |
| ) |
|
Definition at line 28 of file GNN_DataStorage.cxx.
28 {
29
30 std::vector<std::pair<float, const TrigFTF_GNN_Node*> > phiBuckets[32];
31
32 int nBuckets = 31;
33
34 for(
const auto& n :
m_vn) {
35 int bIdx = (
int)(0.5*nBuckets*(
n->phi()/(
float)
M_PI + 1.0f));
36 phiBuckets[bIdx].push_back(std::make_pair(
n->phi(), n));
37 }
38
39 for(auto& b : phiBuckets) {
41 }
42
44 for(const auto& b : phiBuckets) {
45 for(const auto& p : b) {
47 }
48 }
49
50}
void sort(typename DataModel_detail::iterator< DVL > beg, typename DataModel_detail::iterator< DVL > end)
Specialization of sort for DataVector/List.
◆ m_layerKey
| unsigned int TrigFTF_GNN_EtaBin::m_layerKey {0} |
◆ m_maxRadius
| float TrigFTF_GNN_EtaBin::m_maxRadius |
◆ m_minRadius
| float TrigFTF_GNN_EtaBin::m_minRadius |
◆ m_params
| std::vector<std::array<float,5> > TrigFTF_GNN_EtaBin::m_params |
◆ m_vFirstEdge
| std::vector<unsigned int> TrigFTF_GNN_EtaBin::m_vFirstEdge |
◆ m_vn
◆ m_vNumEdges
| std::vector<unsigned short> TrigFTF_GNN_EtaBin::m_vNumEdges |
◆ m_vPhiNodes
| std::vector<std::pair<float, unsigned int> > TrigFTF_GNN_EtaBin::m_vPhiNodes |
The documentation for this class was generated from the following files: