CMS 3D CMS Logo

Classes | Functions | Variables
pixelTopology Namespace Reference

Classes

struct  AverageGeometry
 

Functions

constexpr uint16_t localY (uint16_t py, uint16_t n)
 
template<int N, class Function >
constexpr auto map_to_array (Function f) -> std::array< std::invoke_result_t< Function, std::size_t >, N >
 
template<class Function , std::size_t... Indices>
constexpr auto map_to_array_helper (Function f, std::index_sequence< Indices... >) -> std::array< std::invoke_result_t< Function, std::size_t >, sizeof...(Indices)>
 

Variables

constexpr uint32_t maxLayers = 28
 
constexpr auto maxNumberOfLadders = 160
 

Function Documentation

◆ localY()

constexpr uint16_t pixelTopology::localY ( uint16_t  py,
uint16_t  n 
)
inline

◆ map_to_array()

template<int N, class Function >
constexpr auto pixelTopology::map_to_array ( Function  f) -> std::array<std::invoke_result_t<Function, std::size_t>, N>

Definition at line 16 of file SimplePixelTopology.h.

References f, and map_to_array_helper().

16  {
17  return map_to_array_helper(f, std::make_index_sequence<N>{});
18  }
constexpr auto map_to_array_helper(Function f, std::index_sequence< Indices... >) -> std::array< std::invoke_result_t< Function, std::size_t >, sizeof...(Indices)>
double f[11][100]

◆ map_to_array_helper()

template<class Function , std::size_t... Indices>
constexpr auto pixelTopology::map_to_array_helper ( Function  f,
std::index_sequence< Indices... >   
) -> std::array<std::invoke_result_t<Function, std::size_t>, sizeof...(Indices)>

Definition at line 10 of file SimplePixelTopology.h.

References f.

Referenced by map_to_array().

11  {
12  return {{f(Indices)...}};
13  }
Indices
Definition: EdmEventSize.cc:28
double f[11][100]

Variable Documentation

◆ maxLayers

constexpr uint32_t pixelTopology::maxLayers = 28

◆ maxNumberOfLadders

constexpr auto pixelTopology::maxNumberOfLadders = 160

Definition at line 20 of file SimplePixelTopology.h.