CbmRoot
Loading...
Searching...
No Matches
cbm::ca::DetIdTypeArr_t< Types > Struct Template Reference

Array of types, indexed by L1DetectorID enum. More...

#include <CbmL1DetectorID.h>

Inheritance diagram for cbm::ca::DetIdTypeArr_t< Types >:
[legend]

Public Types

template<ca::EDetectorID DetID>
using at = std::tuple_element_t<static_cast<std::size_t>(DetID), std::tuple<Types...>>
 

Static Public Attributes

static constexpr std::size_t size = sizeof...(Types)
 

Detailed Description

template<class... Types>
struct cbm::ca::DetIdTypeArr_t< Types >

Array of types, indexed by L1DetectorID enum.

The array of types allows to treat different types of detector in a uniform manner Example: using HitTypes_t = DetIdTypeArr_t<CbmMvdHit, CbmStsHit, CbmMuchPixelHit, CbmTrdHit, CbmTofHit>; ... HitTypes_t::at<L1DetectorID::kSts> hit; // Sts hit

Definition at line 62 of file CbmL1DetectorID.h.

Member Typedef Documentation

◆ at

template<class... Types>
template<ca::EDetectorID DetID>
using cbm::ca::DetIdTypeArr_t< Types >::at = std::tuple_element_t<static_cast<std::size_t>(DetID), std::tuple<Types...>>

Definition at line 64 of file CbmL1DetectorID.h.

Member Data Documentation

◆ size

template<class... Types>
std::size_t cbm::ca::DetIdTypeArr_t< Types >::size = sizeof...(Types)
staticconstexpr

Definition at line 65 of file CbmL1DetectorID.h.


The documentation for this struct was generated from the following file: