30 std::vector<std::pair<float, const TrigFTF_GNN_Node*> > phiBuckets[32];
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));
39 for(
auto&
b : phiBuckets) {
40 std::sort(
b.begin(),
b.end());
44 for(
const auto&
b : phiBuckets) {
45 for(
const auto&
p :
b) {
55 if(
m_vn.empty())
return;
60 for(
auto&
v :
m_in)
v.reserve(50);
63 [](
const TrigFTF_GNN_Node* pN) { std::array<float,5> a = {-100.0, 100.0, pN->phi(), pN->r(), pN->z()};
return a;});
65 auto [min_iter, max_iter] = std::minmax_element(m_vn.begin(), m_vn.end(),
67 m_maxRadius = (*max_iter)->r();
68 m_minRadius = (*min_iter)->r();
73 for(
unsigned int nIdx=0;nIdx<
m_vn.size();nIdx++) {
81 for(
unsigned int nIdx=0;nIdx<
m_vn.size();nIdx++) {
86 for(
unsigned int nIdx=0;nIdx<
m_vn.size();nIdx++) {
116 for(
const auto&
node : coll) {
129 float cluster_width =
node.pixelClusterWidth();
130 if(cluster_width > 0.2)
continue;
152 for(
const auto&
node : coll) {
192 for(
unsigned int layerIdx=0;layerIdx<nL;layerIdx++) {
210 if(
B.empty())
continue;
212 for(
unsigned int nIdx=0;nIdx<
B.m_vn.size();nIdx++) {
213 float cluster_width =
B.m_vn[nIdx]->pixelClusterWidth();
215 float min_tau = 6.7*(cluster_width - 0.2);
216 float max_tau = 1.6 + 0.15/(cluster_width + 0.2) + 6.1*(cluster_width - 0.2);
218 B.m_params[nIdx][0] = min_tau;
219 B.m_params[nIdx][1] = max_tau;
227 for(
auto&
b :
m_etaBins)
b.generatePhiIndexing(dphi);