The container for pixel RDOs The base class is the InDetRawDataContainer with a coordinate dimension of 2.
More...
#include <PhaseIIPixelRawDataContainer.h>
|
| const std::vector< std::uint64_t > & | errors () const |
| std::vector< std::uint64_t > & | errors () |
| bool | isValid (unsigned int index) const |
| | return true if the index refers to an element in the container
|
| const std::array< std::int16_t, NDim > & | coordinates (unsigned int index) const |
| | return the coordinates i.e. column, row or strip of a certain RDO (read only).
|
| const std::uint32_t & | dataWord (unsigned int index) const |
| | return the packed data word of of a certain RDO (read only).
|
| bool | isSane () const |
| std::size_t | size () const |
| | total number of RDOs which are in this container.
|
| bool | empty () const |
| | test whether the container is empty i.e. does not contain any RDOs
|
| std::size_t | capacity () const |
| | the maximum number RDOs this container can hold without reallocation.
|
| void | reserve (std::size_t new_capacity) |
| | reserve space for a certain number of RDOs.
|
| void | emplace_back (std::array< std::int16_t, NDim > &&coordinates, std::uint32_t data_word) |
| | Add a new RDO to the end of this container.
|
| void | erase_back (unsigned int begin_index) |
| | erase the elements at the end of the container
|
| void | move (InDetRawDataContainer &dest, unsigned int start_index) |
| | Move the coordinates and the data word of a certain number of elements at the end to a new container.
|
|
| static int | getToT (std::uint32_t dataWord) |
| static int | getBCID (std::uint32_t dataWord) |
| static int | getLVL1A (std::uint32_t dataWord) |
| static int | getLVL1ID (std::uint32_t dataWord) |
| static std::uint32_t | makeWord (int tot, int bcid, int lvl1a, int lvl1d) |
| static constexpr int | unpack (std::uint32_t mask, unsigned int shift, unsigned int word) |
| | extract a value from a bit packed word.
|
| static constexpr std::uint32_t | pack (std::uint32_t mask, unsigned int shift, int input) |
| | Create a bit-packed word from an input value.
|
|
| std::vector< std::uint64_t > | m_errors |
| std::vector< std::array< std::int16_t, NDim > > | m_coordinates |
| std::vector< std::uint32_t > | m_word |
The container for pixel RDOs The base class is the InDetRawDataContainer with a coordinate dimension of 2.
Definition at line 18 of file PhaseIIPixelRawDataContainer.h.
◆ capacity()
the maximum number RDOs this container can hold without reallocation.
Definition at line 269 of file PhaseIIInDetRawDataContainer.h.
Base raw data container which provides coordinates of a certain dimension and a data word per RDO (ra...
std::size_t capacity() const
the maximum number RDOs this container can hold without reallocation.
◆ coordinates()
return the coordinates i.e. column, row or strip of a certain RDO (read only).
Definition at line 252 of file PhaseIIInDetRawDataContainer.h.
bool isValid(unsigned int index) const
◆ dataWord()
◆ emplace_back()
Add a new RDO to the end of this container.
- Parameters
-
| coordinates | the coordinates of the RDO e.g. pixel row, column or strop. |
| data_word | a bit packed data word which may contain e.g. the ToT. |
Definition at line 281 of file PhaseIIInDetRawDataContainer.h.
281 {
282
283
287 }
void emplace_back(std::array< std::int16_t, NDim > &&coordinates, std::uint32_t data_word)
Add a new RDO to the end of this container.
◆ empty()
test whether the container is empty i.e. does not contain any RDOs
Definition at line 267 of file PhaseIIInDetRawDataContainer.h.
bool empty() const
test whether the container is empty i.e. does not contain any RDOs
◆ erase_back()
erase the elements at the end of the container
- Parameters
-
| begin_index | the index of the first element that is erased. Will erase all elements from begin_index till the end of the container. begin_index is expected to be smaller or equal to the container size. The result may be undefined if begin_index is larger than the container size. |
Definition at line 294 of file PhaseIIInDetRawDataContainer.h.
294 {
299 }
std::size_t size() const
total number of RDOs which are in this container.
◆ errors() [1/2]
| std::vector< std::uint64_t > & PhaseII::PixelRawDataContainer::errors |
( |
| ) |
|
|
inline |
◆ errors() [2/2]
| const std::vector< std::uint64_t > & PhaseII::PixelRawDataContainer::errors |
( |
| ) |
const |
|
inline |
◆ getBCID()
| int PhaseII::PixelRawDataContainer::getBCID |
( |
std::uint32_t | dataWord | ) |
|
|
inlinestatic |
Definition at line 42 of file PhaseIIPixelRawDataContainer.h.
static constexpr int unpack(std::uint32_t mask, unsigned int shift, unsigned int word)
const std::uint32_t & dataWord(unsigned int index) const
static constexpr unsigned int SHIFT_BCID
static constexpr std::uint32_t MASK_BCID
◆ getLVL1A()
| int PhaseII::PixelRawDataContainer::getLVL1A |
( |
std::uint32_t | dataWord | ) |
|
|
inlinestatic |
◆ getLVL1ID()
| int PhaseII::PixelRawDataContainer::getLVL1ID |
( |
std::uint32_t | dataWord | ) |
|
|
inlinestatic |
◆ getToT()
| int PhaseII::PixelRawDataContainer::getToT |
( |
std::uint32_t | dataWord | ) |
|
|
inlinestatic |
◆ isSane()
◆ isValid()
◆ makeWord()
| std::uint32_t PhaseII::PixelRawDataContainer::makeWord |
( |
int | tot, |
|
|
int | bcid, |
|
|
int | lvl1a, |
|
|
int | lvl1d ) |
|
inlinestatic |
◆ move()
Move the coordinates and the data word of a certain number of elements at the end to a new container.
- Parameters
-
| dest | the container to which the elements will be moved. |
| start_index | the index of the first element that will be moved. Will copy the elements from start_index until then end to the container dest, and erase the copied elements from this container. |
Definition at line 330 of file PhaseIIInDetRawDataContainer.h.
330 {
337 }
std::vector< std::array< std::int16_t, NDim > > m_coordinates
std::vector< std::uint32_t > m_word
void erase_back(unsigned int begin_index)
◆ pack()
|
|
inlinestaticconstexprinherited |
Create a bit-packed word from an input value.
- Parameters
-
| mask | the mask to blend out bits of the input value which are not part of the actual value. |
| shift | the bit number of the first bit in the bit packed data word. |
| input | the input value. |
- Returns
- a bit packed data word which only represents the input value. This value can be or-ed with other bit-packed values to form a complete data word. If the input value exceeds the maximum value fitting into the provided mask, then the result will be undefined.
Definition at line 319 of file PhaseIIInDetRawDataContainer.h.
◆ reserve()
reserve space for a certain number of RDOs.
Definition at line 272 of file PhaseIIInDetRawDataContainer.h.
272 {
276 }
void reserve(std::size_t new_capacity)
reserve space for a certain number of RDOs.
◆ size()
◆ unpack()
|
|
inlinestaticconstexprinherited |
extract a value from a bit packed word.
- Parameters
-
| mask | the mask to blend out bits not part of a certain value after shifting the data word. |
| shift | the first bit of the value |
| word | the bit packed data word |
- Returns
- the unpacked value Will shift the data word and then apply the mask to blend out bits not part of the value.
Definition at line 307 of file PhaseIIInDetRawDataContainer.h.
◆ m_coordinates
◆ m_errors
| std::vector<std::uint64_t> PhaseII::PixelRawDataContainer::m_errors |
|
private |
◆ m_word
◆ MASK_BCID
| std::uint32_t PhaseII::PixelRawDataContainer::MASK_BCID = 0xFF |
|
staticconstexprprotected |
◆ MASK_LVL1A
| std::uint32_t PhaseII::PixelRawDataContainer::MASK_LVL1A = 0xF |
|
staticconstexprprotected |
◆ MASK_LVL1D
| std::uint32_t PhaseII::PixelRawDataContainer::MASK_LVL1D = 0xFF |
|
staticconstexprprotected |
◆ MASK_TOT
| std::uint32_t PhaseII::PixelRawDataContainer::MASK_TOT = 0xFF |
|
staticconstexprprotected |
◆ SHIFT_BCID
| unsigned int PhaseII::PixelRawDataContainer::SHIFT_BCID = 8 |
|
staticconstexprprotected |
◆ SHIFT_LVL1A
| unsigned int PhaseII::PixelRawDataContainer::SHIFT_LVL1A = 24 |
|
staticconstexprprotected |
◆ SHIFT_LVL1D
| unsigned int PhaseII::PixelRawDataContainer::SHIFT_LVL1D = 16 |
|
staticconstexprprotected |
◆ SHIFT_TOT
| unsigned int PhaseII::PixelRawDataContainer::SHIFT_TOT = 0 |
|
staticconstexprprotected |
The documentation for this class was generated from the following file: