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

List of. More...

#include <CbmL1DetectorID.h>

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 >

List of.

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 54 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 56 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 57 of file CbmL1DetectorID.h.


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