#include <NeighArr.h>
Definition at line 170 of file NeighArr.h.
◆ get_neighbour()
constexpr int CaloRecGPU::NeighArr::get_neighbour |
( |
const int |
cell, |
|
|
const int |
neigh_number |
|
) |
| const |
|
inlineconstexpr |
◆ get_neighbours()
constexpr int CaloRecGPU::NeighArr::get_neighbours |
( |
const unsigned int |
neigh_options, |
|
|
const int |
cell, |
|
|
int * |
neigh_arr |
|
) |
| const |
|
inlineconstexpr |
Places the neighbours according to the option(s) in neigh_options in the array and returns the number of such neighbours (not the total number of neighbours of the cell).
We're using C arrays for more immediate CUDA compatibility.
Definition at line 202 of file NeighArr.h.
206 int neigh_arr_len = 0;
212 limit = neigh_off.get_end_cell(
i);
213 if ( neigh_options & (1U <<
i) )
215 for (; neigh <
limit; ++neigh)
217 neigh_arr[neigh_arr_len] =
cells[
cell][neigh];
223 return neigh_arr_len;
◆ get_number_of_neighbours()
constexpr int CaloRecGPU::NeighArr::get_number_of_neighbours |
( |
const unsigned int |
neigh_options, |
|
|
const int |
cell |
|
) |
| const |
|
inlineconstexpr |
Definition at line 226 of file NeighArr.h.
232 if ( neigh_options & (1U <<
i) )
234 ret += neigh_off.get_num_cells(
i);
◆ get_total_number_of_neighbours()
constexpr int CaloRecGPU::NeighArr::get_total_number_of_neighbours |
( |
const int |
cell | ) |
const |
|
inlineconstexpr |
Definition at line 181 of file NeighArr.h.
184 return neigh_off.get_total_number();
◆ set_neighbour()
constexpr void CaloRecGPU::NeighArr::set_neighbour |
( |
const int |
cell, |
|
|
const int |
neigh_number, |
|
|
const int |
neigh_v |
|
) |
| |
|
inlineconstexpr |
◆ cells
◆ offsets
The documentation for this struct was generated from the following file: