|
ATLAS Offline Software
|
Go to the documentation of this file.
14 #include "GaudiKernel/MsgStream.h"
20 : m_ctpVersionNumber(ctpVersionNumber),
21 m_ctpDataFormat(ctpVersionNumber),
22 m_numberOfBunches(nBCs),
23 m_numberOfAdditionalWords(nExtraWords)
31 : m_ctpVersionNumber(ctpVersionNumber),
32 m_ctpDataFormat(ctpVersionNumber),
33 m_dataWords(std::move(
data))
47 const CTPdataformatVersion &
51 log << MSG::WARNING <<
"CTPVersion has not been set, no information about data format available, please fix your code" <<
endmsg;
232 log << MSG::WARNING <<
"ignoring word " << word <<
" for position " <<
i <<
endmsg;
240 unsigned int nWords = 0;
242 std::vector<uint32_t>
vec;
281 for(
unsigned int tbp = 0; tbp < nWords; ++tbp) {
295 std::ostringstream
s;
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;
void setNumberOfBunches(const uint32_t nBCs)
char data[hepevt_bytes_allocation_ATLAS]
std::vector< uint32_t > getEXTRAWords() const
singleton-like access to IMessageSvc via open function and helper
unsigned int m_ctpVersionNumber
number of the CTP version to be used
uint32_t getTimeSinceLastL1A() const
void selectBunch(const uint32_t iBC)
CTPdataformatVersion m_ctpDataFormat
CTP data format for a specified version.
void setTIPWord(const unsigned int i, const uint32_t word)
std::vector< size_t > vec
void setWord(const unsigned int i, const uint32_t word)
CTP_RDO()=default
Default constructor needed for pool converters.
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
void setTAVWord(const unsigned int i, const uint32_t word)
@ u
Enums for curvilinear frames.
IMessageSvc * getMessageSvc(bool quiet=false)
uint32_t getNumberOfBunches() const
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 getNumberOfAdditionalWords() const
uint32_t m_activeBunch
active bunch, for book keepting (transient)
void setTimeNanoSec(const uint32_t nano)
void setL1AcceptBunchPosition(const uint8_t)
uint32_t m_numberOfAdditionalWords
number of configurable extra words in the fragment
uint32_t m_turnCounter
turn counter
const std::string print(const bool longFormat=false) const
print object content in a human readable format to string
void setTurnCounter(const uint32_t)
uint32_t getL1AcceptBunchPosition() const
~CTP_RDO()
empty default destructor
std::vector< uint32_t > getTAVWords() const
uint32_t getTurnCounter() const
std::vector< uint32_t > getTBPWords() const
void setTAPWord(const unsigned int i, const uint32_t word)
void setTBPWord(const unsigned int i, const uint32_t word)
const CTPdataformatVersion & getCTPVersion() const
const std::string dump() const
dump raw object content to string
uint32_t m_numberOfBunches
number of bunches in raw data (transient)
uint8_t m_l1AcceptPosition
bunch position, from which the level1 accept was calculated
std::vector< uint32_t > getTIPWords() const
uint32_t getTimeNanoSec() const
void setNumberOfAdditionalWords(const uint32_t nExtraWords)
void setTimeSec(const uint32_t sec)
void setCTPVersionNumber(unsigned int ctpVersion)
std::vector< uint32_t > getTAPWords() const
uint32_t getTimeSec() const