#include <GNNR3_DataStorage.h>
Definition at line 79 of file GNNR3_DataStorage.h.
◆ TrigFTF_GNNR3_DataStorage()
Definition at line 95 of file GNNR3_DataStorage.cxx.
97}
const TrigFTF_GNNR3_Geometry & m_geo
std::vector< TrigFTF_GNNR3_EtaBin > m_etaBins
◆ ~TrigFTF_GNNR3_DataStorage()
| TrigFTF_GNNR3_DataStorage::~TrigFTF_GNNR3_DataStorage |
( |
| ) |
|
◆ generatePhiIndexing()
| void TrigFTF_GNNR3_DataStorage::generatePhiIndexing |
( |
float | dphi | ) |
|
◆ getEtaBin()
◆ initializeNodes()
| void TrigFTF_GNNR3_DataStorage::initializeNodes |
( |
bool | useML | ) |
|
Definition at line 182 of file GNNR3_DataStorage.cxx.
182 {
183
186 }
187
188 if(!useML) return;
189
190 unsigned int nL =
m_geo.num_layers();
191
192 for(unsigned int layerIdx=0;layerIdx<nL;layerIdx++) {
193
194 const TrigFTF_GNNR3_Layer* pL =
m_geo.getTrigFTF_GNNR3_LayerByIndex(layerIdx);
195
197 continue;
198 }
199
201
202 if(!isBarrel) continue;
203
205
207
209
210 if(
B.empty())
continue;
211
212 for(
unsigned int nIdx=0;nIdx<
B.m_vn.size();nIdx++) {
213 float cluster_width =
B.m_vn[nIdx]->pixelClusterWidth();
214
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);
217
218 B.m_params[nIdx][0] = min_tau;
219 B.m_params[nIdx][1] = max_tau;
220
221 }
222 }
223 }
224}
const TrigInDetSiLayer & m_layer
std::vector< int > m_bins
◆ loadPixelGraphNodes()
| int TrigFTF_GNNR3_DataStorage::loadPixelGraphNodes |
( |
short | layerIndex, |
|
|
const std::vector< TrigFTF_GNNR3_Node > & | coll, |
|
|
bool | useML ) |
Definition at line 104 of file GNNR3_DataStorage.cxx.
104 {
105
106 int nLoaded = 0;
107
108 const TrigFTF_GNNR3_Layer* pL =
m_geo.getTrigFTF_GNNR3_LayerByIndex(layerIndex);
109
110 if(pL == nullptr) {
111 return -1;
112 }
113
115
116 for(const auto& node : coll) {
117
119
120 if(binIndex == -1) {
121 continue;
122 }
123
124 if(isBarrel) {
125 m_etaBins.at(binIndex).m_vn.push_back(&node);
126 }
127 else {
128 if (useML) {
129 float cluster_width =
node.pixelClusterWidth();
130 if(cluster_width > 0.2) continue;
131 }
132 m_etaBins.at(binIndex).m_vn.push_back(&node);
133 }
134
135 nLoaded++;
136
137 }
138
139 return nLoaded;
140}
int getEtaBin(float, float) const
unsigned int binIndex(const T &val, const std::vector< T > &partitions)
general utility function to return bin index given a value and the upper endpoints of each bin
◆ loadStripGraphNodes()
| int TrigFTF_GNNR3_DataStorage::loadStripGraphNodes |
( |
short | layerIndex, |
|
|
const std::vector< TrigFTF_GNNR3_Node > & | coll ) |
Definition at line 142 of file GNNR3_DataStorage.cxx.
142 {
143
144 int nLoaded = 0;
145
146 const TrigFTF_GNNR3_Layer* pL =
m_geo.getTrigFTF_GNNR3_LayerByIndex(layerIndex);
147
148 if(pL == nullptr) {
149 return -1;
150 }
151
152 for(const auto& node : coll) {
153
155
156 if(binIndex == -1) {
157 continue;
158 }
159
160 m_etaBins.at(binIndex).m_vn.push_back(&node);
161 nLoaded++;
162 }
163
164 return nLoaded;
165}
◆ numberOfNodes()
| unsigned int TrigFTF_GNNR3_DataStorage::numberOfNodes |
( |
| ) |
const |
◆ sortByPhi()
| void TrigFTF_GNNR3_DataStorage::sortByPhi |
( |
| ) |
|
◆ m_etaBins
◆ m_geo
The documentation for this class was generated from the following files: