5#ifndef TRIGT1INTERFACES_TRIGT1CTPDEFS_H
6#define TRIGT1INTERFACES_TRIGT1CTPDEFS_H
44 s <<
" 0x" << std::hex << std::setw(8) << std::setfill(
'0' ) << word;
50 inline const std::string
convertToHex(
const std::vector<uint32_t>& words)
55 s << std::hex << std::setfill(
'0' );
58 s <<
" 0x" << std::setw(8) << words[0];
59 for (
size_t i(1); i < words.size(); ++i)
60 s <<
", 0x" << std::setw(8) << words[i];
63 s << std::dec << std::setfill(
' ');
69 inline std::ostream&
operator<<(std::ostream& os,
const std::vector<unsigned int>& rhs)
71 for (std::vector<unsigned int>::const_iterator i(rhs.begin()); i != rhs.end(); ++i) {
79 const std::string
convertRawCTPData(
const std::vector<uint32_t>&
data,
const bool longFormat =
false,
int ctpVersionNumber = 4);
char data[hepevt_bytes_allocation_ATLAS]
Class holding common constants for the CTP simulation.
const std::string convertRawCTPData(const std::vector< uint32_t > &data, const bool longFormat, int ctpFormatVersionNumber)
helper function to dump raw CTP content
std::ostream & operator<<(std::ostream &os, const std::vector< unsigned int > &rhs)
operator to dump a vector of numbers
const std::string convertToHex(const uint32_t word)
helper function to dump a number in hex format