![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
21 : m_CTPSLinkVector( roiVec ), m_ctpVersionNumber(ctpVersionNumber),
22 m_wordsPerHeader(0), m_wordsPerDataElement(0), m_wordsPerTrailer(0)
37 std::cout <<
"Warning: CTPSLink inconsistency! " << std::endl;
69 std::vector<uint32_t>
result;
71 unsigned int start(0);
83 std::vector<uint32_t>
result;
104 std::vector<uint32_t> dataElements;
118 std::vector<uint32_t>
result;
132 std::vector<uint32_t>
result;
146 std::vector<uint32_t>
result;
162 for (
size_t i(0);
i < result.size(); ++
i) {
163 if (
result[
i] > 0)
return true;
173 for (
size_t i(0);
i < result.size(); ++
i) {
174 if (
result[
i] > 0)
return true;
184 for (
size_t i(0);
i < result.size(); ++
i) {
185 if (
result[
i] > 0)
return true;
194 std::ostringstream
s;
206 std::ostringstream
s;
217 std::ostringstream
s;
221 if (
i == 0 || longFormat)
s <<
"\nTime";
222 if (longFormat)
s << std::setw(1) <<
i;
223 s <<
" " << std::setw(8) <<
data[
i];
224 if (longFormat)
s << std::endl;
229 (i < m_ctpVersion->getTIPwords()) && (
p <
data.size());
231 if (
i == 0 || longFormat)
s <<
"\nTIP";
232 if (longFormat)
s << std::setw(1) <<
i;
233 s <<
" 0x" << std::hex << std::setw(8) << std::setfill(
'0' ) <<
data[
p] << std::dec << std::setfill(
' ');
234 if (longFormat)
s << std::endl;
249 (i < m_ctpVersion->getTBPwords()) && (
p <
data.size());
251 if (
i == 0 || longFormat)
s <<
"\nTBP";
252 if (longFormat)
s << std::setw(1) <<
i;
253 s <<
" 0x" << std::hex << std::setw(8) << std::setfill(
'0' ) <<
data[
p] << std::dec << std::setfill(
' ');
254 if (longFormat)
s << std::endl;
259 (i < m_ctpVersion->getTAPwords()) && (
p <
data.size());
261 if (
i == 0 || longFormat)
s <<
"\nTAP";
262 if (longFormat)
s << std::setw(1) <<
i;
263 s <<
" 0x" << std::hex << std::setw(8) << std::setfill(
'0' ) <<
data[
p] << std::dec << std::setfill(
' ');
264 if (longFormat)
s << std::endl;
269 (i < m_ctpVersion->getTAVwords()) && (
p <
data.size());
271 if (
i == 0 || longFormat)
s <<
"\nTAV";
272 if (longFormat)
s << std::setw(1) <<
i;
273 s <<
" 0x" << std::hex << std::setw(8) << std::setfill(
'0' ) <<
data[
p] << std::dec << std::setfill(
' ');
274 if (longFormat)
s << std::endl;
const std::vector< uint32_t > getDataElements() const
get raw data content
const std::string dump() const
dump raw object content to string
char data[hepevt_bytes_allocation_ATLAS]
const std::vector< uint32_t > m_CTPSLinkVector
this vector contains the header, data elements and trailer
const std::vector< uint32_t > getTBP() const
get trigger result before prescale
bool getAcceptAP() const
get trigger accept after prescale
const std::vector< uint32_t > getHeader() const
get raw header content
const std::vector< uint32_t > getTAV() const
get trigger result after veto
unsigned int m_wordsPerHeader
number of words per header
~CTPSLink()
empty default destructor
CTPSLink(const std::vector< uint32_t > &roiVec, unsigned int ctpVersionNumber)
constructor initializing data content from given vector
const std::vector< uint32_t > getCTPToRoIBWords() const
get full raw data content
const std::string convertToHex(const uint32_t word)
helper function to dump a number in hex format
unsigned int getDataElementSize() const
number of words in data
unsigned int getTrailerSize() const
number of words in trailer
unsigned int getHeaderSize() const
number of words in header
const std::vector< uint32_t > getTAP() const
get trigger result after prescale
unsigned int m_wordsPerCTPSLink
number of words per CTPSLink
unsigned int getSize() const
toal number of words in object
bool getAcceptAV() const
get trigger accept after veto
unsigned int m_ctpVersionNumber
unsigned int m_wordsPerDataElement
number of words per data element
const std::string print(const bool longFormat=false) const
print object content in a human readable form to string
unsigned int m_wordsPerTrailer
number of words per trailer
const std::string convert(const std::vector< uint32_t > &data, const bool longFormat=false) const
convert data contetn into string (used by dump and print)
const std::vector< uint32_t > getTrailer() const
get raw trailer content
CTPdataformatVersion * m_ctpVersion
bool getAcceptBP() const
get trigger accept before prescale