#include <ITkPixEncoder.h>
Definition at line 23 of file ITkPixEncoder.h.
◆ HitMap
◆ ITkPixEncoder()
ITkPixEncoder::ITkPixEncoder |
( |
const unsigned |
nCol = 400 , |
|
|
const unsigned |
nRow = 384 , |
|
|
const unsigned |
nColInCCol = 8 , |
|
|
const unsigned |
nRowInQRow = 2 , |
|
|
const unsigned |
nEventsPerStream = 16 , |
|
|
const bool |
plainHitMap = false , |
|
|
const bool |
dropToT = false |
|
) |
| |
◆ addBits64()
void ITkPixEncoder::addBits64 |
( |
const uint64_t |
value, |
|
|
const uint8_t |
length |
|
) |
| const |
◆ clear()
void ITkPixEncoder::clear |
( |
| ) |
const |
◆ encodeEvent()
void ITkPixEncoder::encodeEvent |
( |
| ) |
const |
|
protected |
Definition at line 166 of file ITkPixEncoder.cxx.
174 for (
unsigned CCol = 0; CCol <
m_nCCol; CCol++){
176 if (m_lastQRow[CCol] == 0)
continue;
180 int previousQRow = -666;
181 for (
unsigned QRow = 0; QRow <
m_nQRow; QRow++){
183 if (!m_hitQCores[CCol][QRow])
continue;
189 if (QRow == (
uint)previousQRow + 1){
◆ encodeQCore()
void ITkPixEncoder::encodeQCore |
( |
const unsigned |
nCCol, |
|
|
const unsigned |
nQRow |
|
) |
| const |
|
protected |
Definition at line 88 of file ITkPixEncoder.cxx.
100 std::vector<uint16_t> tots;
105 if (m_hitMap(pixCol, pixRow)){
106 lutIndex |= 0x1 <<
pix;
107 tots.push_back(m_hitMap(pixCol, pixRow) - 1);
123 for (
auto& tot : tots){
◆ getWords()
std::vector<uint32_t>& ITkPixEncoder::getWords |
( |
| ) |
|
|
inline |
◆ hitInQCore()
bool ITkPixEncoder::hitInQCore |
( |
const unsigned |
CCol, |
|
|
const unsigned |
QRow |
|
) |
| const |
|
protected |
◆ intTag()
void ITkPixEncoder::intTag |
( |
const uint16_t |
nEvt | ) |
const |
|
protected |
◆ pushWords32()
void ITkPixEncoder::pushWords32 |
( |
| ) |
const |
|
protected |
◆ scanHitMap()
void ITkPixEncoder::scanHitMap |
( |
| ) |
const |
|
protected |
Definition at line 143 of file ITkPixEncoder.cxx.
148 m_hitQCores = std::vector<std::vector<bool>>(
m_nCCol, std::vector<bool>(
m_nQRow,
false));
149 m_lastQRow = std::vector<unsigned> (
m_nCCol, 0);
151 for (
unsigned CCol = 0; CCol <
m_nCCol; CCol++){
152 for (
unsigned QRow = 0; QRow <
m_nQRow; QRow++){
154 m_hitQCores[CCol][QRow] =
hitInQCore(CCol, QRow);
160 if (m_hitQCores[CCol][QRow]) m_lastQRow[CCol] = QRow + 1;
◆ setEventsPerStream()
void ITkPixEncoder::setEventsPerStream |
( |
const unsigned |
nEventsPerStream = 16 | ) |
|
|
inline |
◆ setHitMap()
void ITkPixEncoder::setHitMap |
( |
const HitMap & |
hitMap | ) |
const |
|
inline |
◆ streamTag()
void ITkPixEncoder::streamTag |
( |
const uint8_t |
nStream | ) |
const |
|
protected |
◆ ATLAS_THREAD_SAFE [1/10]
std::vector<uint32_t> m_words ITkPixEncoder::ATLAS_THREAD_SAFE |
|
mutableprotected |
◆ ATLAS_THREAD_SAFE [2/10]
unsigned m_currCCol ITkPixEncoder::ATLAS_THREAD_SAFE {} |
|
mutableprotected |
◆ ATLAS_THREAD_SAFE [3/10]
unsigned m_currCCol m_currQRow ITkPixEncoder::ATLAS_THREAD_SAFE {} |
|
protected |
◆ ATLAS_THREAD_SAFE [4/10]
unsigned m_currCCol m_currQRow m_currEvent ITkPixEncoder::ATLAS_THREAD_SAFE {} |
|
protected |
◆ ATLAS_THREAD_SAFE [5/10]
uint8_t m_currStream ITkPixEncoder::ATLAS_THREAD_SAFE {} |
|
mutableprotected |
◆ ATLAS_THREAD_SAFE [6/10]
uint64_t m_currBlock ITkPixEncoder::ATLAS_THREAD_SAFE {} |
|
mutableprotected |
◆ ATLAS_THREAD_SAFE [7/10]
uint8_t m_currBit ITkPixEncoder::ATLAS_THREAD_SAFE {} |
|
mutableprotected |
◆ ATLAS_THREAD_SAFE [8/10]
std::vector<std::vector<bool> > m_hitQCores ITkPixEncoder::ATLAS_THREAD_SAFE |
|
mutableprotected |
◆ ATLAS_THREAD_SAFE [9/10]
std::vector<unsigned> m_lastQRow ITkPixEncoder::ATLAS_THREAD_SAFE |
|
mutableprotected |
◆ ATLAS_THREAD_SAFE [10/10]
HitMap m_hitMap ITkPixEncoder::ATLAS_THREAD_SAFE |
|
mutableprotected |
◆ m_dropToT
bool ITkPixEncoder::m_dropToT {} |
|
protected |
◆ m_mutex
std::mutex ITkPixEncoder::m_mutex |
|
mutableprotected |
◆ m_nCCol
unsigned ITkPixEncoder::m_nCCol {50} |
|
protected |
◆ m_nCol
unsigned ITkPixEncoder::m_nCol {400} |
|
protected |
◆ m_nColInCCol
unsigned ITkPixEncoder::m_nColInCCol {8} |
|
protected |
◆ m_nEventsPerStream
unsigned ITkPixEncoder::m_nEventsPerStream |
|
protected |
◆ m_nQRow
unsigned ITkPixEncoder::m_nQRow {192} |
|
protected |
◆ m_nRow
unsigned ITkPixEncoder::m_nRow {384} |
|
protected |
◆ m_nRowInQRow
unsigned ITkPixEncoder::m_nRowInQRow {2} |
|
protected |
◆ m_plainHitMap
bool ITkPixEncoder::m_plainHitMap {} |
|
protected |
The documentation for this class was generated from the following files: