![]() |
ATLAS Offline Software
|
The container for strip RDOs The base class is the InDetRawDataContainer with a coordinate dimension of 1. More...
#include <PhaseIIStripRawDataContainer.h>
Public Types | |
| enum | ERawDataType { SCT1 = 1 , SCT3 =3 , UNKNOWN =0 } |
| The data format of the RAW data. More... | |
Public Member Functions | |
| ERawDataType | dataType () const |
| Return the type of the original RAW data the RDO container is based on. | |
| void | setDataType (ERawDataType type) |
| Set the RAW data type of this container. | |
| 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 Public Member Functions | |
| static int | getGroupSize (std::uint32_t dataWord) |
| Extract the number of consecutive strip hits starting from the coordinates of the corresponding RDO from the data word. | |
| static int | getTimeBin (std::uint32_t dataWord) |
| Extract the time bin from the data word. | |
| static int | getErrors (std::uint32_t dataWord) |
| Extract error information from the data word. | |
| static bool | OnTime (std::uint32_t dataWord) |
| static bool | FirstHitError (std::uint32_t dataWord) |
| static bool | SecondHitError (std::uint32_t dataWord) |
| static std::uint32_t | makeWord (unsigned int group_size, unsigned int time_bin, unsigned int errors) |
| Create a bit-packed data word. | |
| 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. | |
Protected Attributes | |
| ERawDataType | m_dataType =UNKNOWN |
Static Protected Attributes | |
| static constexpr std::uint32_t | MASK_GROUPSIZE = 0x7FF |
| static constexpr unsigned int | SHIFT_GROUPSIZE = 0 |
| static constexpr std::uint32_t | MASK_TIMEBIN = 0x7 |
| static constexpr unsigned int | SHIFT_TIMEBIN = 22 |
| static constexpr std::uint32_t | MASK_ERRORS = 0x7 |
| static constexpr unsigned int | SHIFT_ERRORS = 25 |
| static constexpr std::uint32_t | MASK_ONTIME = 0x1 |
| static constexpr unsigned int | SHIFT_ONTIME = 23 |
| static constexpr std::uint32_t | MASK_FIRSTHITERROR = 0x1 |
| static constexpr unsigned int | SHIFT_FIRSTHITERROR = 29 |
| static constexpr std::uint32_t | MASK_SECONDHITERROR = 0x1 |
| static constexpr unsigned int | SHIFT_SECONDHITERROR = 30 |
Private Attributes | |
| std::vector< std::array< std::int16_t, NDim > > | m_coordinates |
| std::vector< std::uint32_t > | m_word |
The container for strip RDOs The base class is the InDetRawDataContainer with a coordinate dimension of 1.
Definition at line 18 of file PhaseIIStripRawDataContainer.h.
The data format of the RAW data.
| Enumerator | |
|---|---|
| SCT1 | |
| SCT3 | |
| UNKNOWN | |
Definition at line 57 of file PhaseIIStripRawDataContainer.h.
|
inlineinherited |
the maximum number RDOs this container can hold without reallocation.
Definition at line 276 of file PhaseIIInDetRawDataContainer.h.
|
inlineinherited |
return the coordinates i.e. column, row or strip of a certain RDO (read only).
Definition at line 259 of file PhaseIIInDetRawDataContainer.h.
|
inline |
Return the type of the original RAW data the RDO container is based on.
Definition at line 59 of file PhaseIIStripRawDataContainer.h.
|
inlineinherited |
|
inlineinherited |
Add a new RDO to the end of this container.
| 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 288 of file PhaseIIInDetRawDataContainer.h.
|
inlineinherited |
test whether the container is empty i.e. does not contain any RDOs
Definition at line 274 of file PhaseIIInDetRawDataContainer.h.
|
inlineinherited |
erase the elements at the end of the container
| 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 301 of file PhaseIIInDetRawDataContainer.h.
|
inlinestatic |
Definition at line 45 of file PhaseIIStripRawDataContainer.h.
|
inlinestatic |
Extract error information from the data word.
Definition at line 41 of file PhaseIIStripRawDataContainer.h.
|
inlinestatic |
Extract the number of consecutive strip hits starting from the coordinates of the corresponding RDO from the data word.
Definition at line 37 of file PhaseIIStripRawDataContainer.h.
|
inlinestatic |
Extract the time bin from the data word.
Definition at line 39 of file PhaseIIStripRawDataContainer.h.
|
inlineinherited |
Definition at line 269 of file PhaseIIInDetRawDataContainer.h.
|
inlineinherited |
return true if the index refers to an element in the container
Definition at line 256 of file PhaseIIInDetRawDataContainer.h.
|
inlinestatic |
Create a bit-packed data word.
Definition at line 49 of file PhaseIIStripRawDataContainer.h.
|
inlineinherited |
Move the coordinates and the data word of a certain number of elements at the end to a new container.
| 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 337 of file PhaseIIInDetRawDataContainer.h.
|
inlinestatic |
Definition at line 44 of file PhaseIIStripRawDataContainer.h.
|
inlinestaticconstexprinherited |
Create a bit-packed word from an input value.
| 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. |
Definition at line 326 of file PhaseIIInDetRawDataContainer.h.
|
inlineinherited |
reserve space for a certain number of RDOs.
Definition at line 279 of file PhaseIIInDetRawDataContainer.h.
|
inlinestatic |
Definition at line 46 of file PhaseIIStripRawDataContainer.h.
|
inline |
Set the RAW data type of this container.
Definition at line 61 of file PhaseIIStripRawDataContainer.h.
|
inlineinherited |
total number of RDOs which are in this container.
Definition at line 272 of file PhaseIIInDetRawDataContainer.h.
|
inlinestaticconstexprinherited |
extract a value from a bit packed word.
| 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 |
Definition at line 314 of file PhaseIIInDetRawDataContainer.h.
|
privateinherited |
Definition at line 346 of file PhaseIIInDetRawDataContainer.h.
|
protected |
Definition at line 63 of file PhaseIIStripRawDataContainer.h.
|
privateinherited |
Definition at line 347 of file PhaseIIInDetRawDataContainer.h.
|
staticconstexprprotected |
Definition at line 26 of file PhaseIIStripRawDataContainer.h.
|
staticconstexprprotected |
Definition at line 31 of file PhaseIIStripRawDataContainer.h.
|
staticconstexprprotected |
Definition at line 22 of file PhaseIIStripRawDataContainer.h.
|
staticconstexprprotected |
Definition at line 29 of file PhaseIIStripRawDataContainer.h.
|
staticconstexprprotected |
Definition at line 33 of file PhaseIIStripRawDataContainer.h.
|
staticconstexprprotected |
Definition at line 24 of file PhaseIIStripRawDataContainer.h.
|
staticconstexprprotected |
Definition at line 27 of file PhaseIIStripRawDataContainer.h.
|
staticconstexprprotected |
Definition at line 32 of file PhaseIIStripRawDataContainer.h.
|
staticconstexprprotected |
Definition at line 23 of file PhaseIIStripRawDataContainer.h.
|
staticconstexprprotected |
Definition at line 30 of file PhaseIIStripRawDataContainer.h.
|
staticconstexprprotected |
Definition at line 34 of file PhaseIIStripRawDataContainer.h.
|
staticconstexprprotected |
Definition at line 25 of file PhaseIIStripRawDataContainer.h.