|
ATLAS Offline Software
|
#include <CTP_RDO.h>
Definition at line 20 of file CTP_RDO.h.
◆ WordType
◆ WordType
Enumerator |
---|
TIP | |
TBP | |
TAP | |
TAV | |
EXTRA | |
Definition at line 22 of file CTP_RDO.h.
◆ CTP_RDO() [1/3]
Default constructor needed for pool converters.
◆ CTP_RDO() [2/3]
CTP_RDO::CTP_RDO |
( |
unsigned int |
ctpVersionNumber, |
|
|
const uint32_t |
nBCs = 1 , |
|
|
uint32_t |
nExtraWords = 0 |
|
) |
| |
Constructor takes the number of BCs of the readout window as argument.
Definition at line 19 of file CTP_RDO.cxx.
◆ CTP_RDO() [3/3]
CTP_RDO::CTP_RDO |
( |
unsigned int |
ctpVersionNumber, |
|
|
std::vector< uint32_t > && |
data, |
|
|
uint32_t |
nExtraWords = 0 |
|
) |
| |
Normal constructor taking the data words of one or several BCs as argument.
Definition at line 30 of file CTP_RDO.cxx.
◆ ~CTP_RDO()
empty default destructor
Definition at line 45 of file CTP_RDO.cxx.
◆ dump()
const std::string CTP_RDO::dump |
( |
| ) |
const |
dump raw object content to string
Definition at line 293 of file CTP_RDO.cxx.
295 std::ostringstream
s;
◆ getCTPVersion()
const CTPdataformatVersion & CTP_RDO::getCTPVersion |
( |
| ) |
const |
Definition at line 48 of file CTP_RDO.cxx.
51 log << MSG::WARNING <<
"CTPVersion has not been set, no information about data format available, please fix your code" <<
endmsg;
◆ getCTPVersionNumber()
unsigned int CTP_RDO::getCTPVersionNumber |
( |
| ) |
const |
|
inline |
◆ getDataWords()
const std::vector<uint32_t>& CTP_RDO::getDataWords |
( |
| ) |
const |
|
inline |
◆ getEXTRAWords()
std::vector< uint32_t > CTP_RDO::getEXTRAWords |
( |
| ) |
const |
◆ getL1AcceptBunchPosition()
uint32_t CTP_RDO::getL1AcceptBunchPosition |
( |
| ) |
const |
◆ getNumberOfAdditionalWords()
uint32_t CTP_RDO::getNumberOfAdditionalWords |
( |
| ) |
const |
◆ getNumberOfBunches()
uint32_t CTP_RDO::getNumberOfBunches |
( |
| ) |
const |
◆ getTAPWords()
std::vector< uint32_t > CTP_RDO::getTAPWords |
( |
| ) |
const |
◆ getTAVWords()
std::vector< uint32_t > CTP_RDO::getTAVWords |
( |
| ) |
const |
◆ getTBPWords()
std::vector< uint32_t > CTP_RDO::getTBPWords |
( |
| ) |
const |
◆ getTimeNanoSec()
uint32_t CTP_RDO::getTimeNanoSec |
( |
| ) |
const |
◆ getTimeSec()
uint32_t CTP_RDO::getTimeSec |
( |
| ) |
const |
◆ getTimeSinceLastL1A()
uint32_t CTP_RDO::getTimeSinceLastL1A |
( |
| ) |
const |
◆ getTIPWords()
std::vector< uint32_t > CTP_RDO::getTIPWords |
( |
| ) |
const |
◆ getTurnCounter()
uint32_t CTP_RDO::getTurnCounter |
( |
| ) |
const |
◆ getWords()
std::vector< uint32_t > CTP_RDO::getWords |
( |
WordType |
type | ) |
const |
|
private |
Definition at line 238 of file CTP_RDO.cxx.
240 unsigned int nWords = 0;
242 std::vector<uint32_t>
vec;
281 for(
unsigned int tbp = 0; tbp < nWords; ++tbp) {
◆ print()
const std::string CTP_RDO::print |
( |
const bool |
longFormat = false | ) |
const |
print object content in a human readable format to string
Definition at line 302 of file CTP_RDO.cxx.
304 std::ostringstream
s;
308 if (longFormat)
s << std::endl;
310 if (longFormat)
s << std::endl;
314 if (
i == 0 || longFormat)
s <<
"\n Time";
315 if (longFormat)
s << std::setw(1) <<
i;
317 if (longFormat)
s << std::endl;
333 if (
i == 0 || longFormat)
s <<
"\n TIP";
334 if (longFormat)
s << std::setw(1) <<
i;
336 if (longFormat)
s << std::endl;
344 if (
i == 0 || longFormat)
s <<
"\n TBP";
345 if (longFormat)
s << std::setw(1) <<
i;
347 if (longFormat)
s << std::endl;
354 if (
i == 0 || longFormat)
s <<
"\n TAP";
355 if (longFormat)
s << std::setw(1) <<
i;
357 if (longFormat)
s << std::endl;
364 if (
i == 0 || longFormat)
s <<
"\n TAV";
365 if (longFormat)
s << std::setw(1) <<
i;
367 if (longFormat)
s << std::endl;
375 if (longFormat)
s << std::setw(1) <<
i;
377 if (longFormat)
s << std::endl;
◆ selectBunch()
void CTP_RDO::selectBunch |
( |
const uint32_t |
iBC | ) |
|
◆ selectNextBunch()
void CTP_RDO::selectNextBunch |
( |
| ) |
|
◆ setCTPVersionNumber()
void CTP_RDO::setCTPVersionNumber |
( |
unsigned int |
ctpVersion | ) |
|
◆ setL1AcceptBunchPosition()
void CTP_RDO::setL1AcceptBunchPosition |
( |
const uint8_t |
pos | ) |
|
◆ setNumberOfAdditionalWords()
void CTP_RDO::setNumberOfAdditionalWords |
( |
const uint32_t |
nExtraWords | ) |
|
◆ setNumberOfBunches()
void CTP_RDO::setNumberOfBunches |
( |
const uint32_t |
nBCs | ) |
|
◆ setTAPWord()
void CTP_RDO::setTAPWord |
( |
const unsigned int |
i, |
|
|
const uint32_t |
word |
|
) |
| |
◆ setTAVWord()
void CTP_RDO::setTAVWord |
( |
const unsigned int |
i, |
|
|
const uint32_t |
word |
|
) |
| |
◆ setTBPWord()
void CTP_RDO::setTBPWord |
( |
const unsigned int |
i, |
|
|
const uint32_t |
word |
|
) |
| |
◆ setTimeNanoSec()
void CTP_RDO::setTimeNanoSec |
( |
const uint32_t |
nano | ) |
|
◆ setTimeSec()
void CTP_RDO::setTimeSec |
( |
const uint32_t |
sec | ) |
|
◆ setTIPWord()
void CTP_RDO::setTIPWord |
( |
const unsigned int |
i, |
|
|
const uint32_t |
word |
|
) |
| |
◆ setTurnCounter()
void CTP_RDO::setTurnCounter |
( |
const uint32_t |
tc | ) |
|
◆ setWord()
void CTP_RDO::setWord |
( |
const unsigned int |
i, |
|
|
const uint32_t |
word |
|
) |
| |
|
private |
Definition at line 226 of file CTP_RDO.cxx.
232 log << MSG::WARNING <<
"ignoring word " << word <<
" for position " <<
i <<
endmsg;
◆ m_activeBunch
uint32_t CTP_RDO::m_activeBunch {0} |
|
private |
active bunch, for book keepting (transient)
Definition at line 102 of file CTP_RDO.h.
◆ m_ctpDataFormat
CTPdataformatVersion CTP_RDO::m_ctpDataFormat {0} |
|
private |
CTP data format for a specified version.
Definition at line 97 of file CTP_RDO.h.
◆ m_ctpVersionNumber
unsigned int CTP_RDO::m_ctpVersionNumber {0} |
|
private |
number of the CTP version to be used
Definition at line 96 of file CTP_RDO.h.
◆ m_dataWords
std::vector<uint32_t> CTP_RDO::m_dataWords |
|
private |
raw data words
Definition at line 98 of file CTP_RDO.h.
◆ m_l1AcceptPosition
uint8_t CTP_RDO::m_l1AcceptPosition {0} |
|
private |
bunch position, from which the level1 accept was calculated
Definition at line 99 of file CTP_RDO.h.
◆ m_numberOfAdditionalWords
uint32_t CTP_RDO::m_numberOfAdditionalWords {0} |
|
private |
number of configurable extra words in the fragment
Definition at line 103 of file CTP_RDO.h.
◆ m_numberOfBunches
uint32_t CTP_RDO::m_numberOfBunches {0} |
|
private |
number of bunches in raw data (transient)
Definition at line 101 of file CTP_RDO.h.
◆ m_turnCounter
uint32_t CTP_RDO::m_turnCounter {0} |
|
private |
◆ SIZEOF_WORDS
constexpr unsigned int CTP_RDO::SIZEOF_WORDS = 32 |
|
staticconstexpr |
number of bits in one data word (32)
Definition at line 90 of file CTP_RDO.h.
The documentation for this class was generated from the following files:
char data[hepevt_bytes_allocation_ATLAS]
std::vector< uint32_t > getEXTRAWords() const
unsigned int m_ctpVersionNumber
number of the CTP version to be used
CTPdataformatVersion m_ctpDataFormat
CTP data format for a specified version.
std::vector< size_t > vec
void setWord(const unsigned int i, const uint32_t word)
std::vector< uint32_t > getWords(WordType type) const
const std::string convertToHex(const uint32_t word)
helper function to dump a number in hex format
const std::vector< uint32_t > & getDataWords() const
@ u
Enums for curvilinear frames.
IMessageSvc * getMessageSvc(bool quiet=false)
std::vector< uint32_t > m_dataWords
raw data words
typename vecDetail::vec_typedef< T, N >::type vec
Define a nice alias for the vectorized type.
uint32_t m_activeBunch
active bunch, for book keepting (transient)
uint32_t m_numberOfAdditionalWords
number of configurable extra words in the fragment
uint32_t m_turnCounter
turn counter
uint32_t getL1AcceptBunchPosition() const
uint32_t getTurnCounter() const
const CTPdataformatVersion & getCTPVersion() const
uint32_t m_numberOfBunches
number of bunches in raw data (transient)
uint8_t m_l1AcceptPosition
bunch position, from which the level1 accept was calculated