Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
CTP RoI output.
More...
#include <CTPSLink.h>
CTP RoI output.
Class used to send the RoI data from the CTP simulation to
the RoIB simulation. It models the SLink connection.
One vector is used to store the header, data elements and
trailer.
This class represents a cable connection between CTP and
RoIBuilder and is only used in the simulation!
- See also
- LVL1CTP::CTPSimulation
-
ROIB::RoIBuilder
- Author
- Thomas Schoerner-Sadenius thoma.nosp@m.s.sc.nosp@m.hoern.nosp@m.er@c.nosp@m.ern.c.nosp@m.h
-
Attila Krasznahorkay Attil.nosp@m.a.Kr.nosp@m.aszna.nosp@m.hork.nosp@m.ay@ce.nosp@m.rn.c.nosp@m.h
- Revision
- 707787
- Date
- 2015-11-13 16:09:29 +0100 (Fri, 13 Nov 2015)
Definition at line 42 of file CTPSLink.h.
◆ CTPSLink() [1/2]
LVL1CTP::CTPSLink::CTPSLink |
( |
const std::vector< uint32_t > & |
roiVec, |
|
|
unsigned int |
ctpVersionNumber |
|
) |
| |
constructor initializing data content from given vector
Definition at line 20 of file CTPSLink.cxx.
37 std::cout <<
"Warning: CTPSLink inconsistency! " << std::endl;
◆ ~CTPSLink()
LVL1CTP::CTPSLink::~CTPSLink |
( |
| ) |
|
◆ CTPSLink() [2/2]
◆ convert()
const std::string LVL1CTP::CTPSLink::convert |
( |
const std::vector< uint32_t > & |
data, |
|
|
const bool |
longFormat = false |
|
) |
| const |
|
private |
convert data contetn into string (used by dump and print)
Definition at line 215 of file CTPSLink.cxx.
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;
◆ dump()
const std::string LVL1CTP::CTPSLink::dump |
( |
| ) |
const |
dump raw object content to string
Definition at line 192 of file CTPSLink.cxx.
194 std::ostringstream
s;
◆ getAccept()
bool LVL1CTP::CTPSLink::getAccept |
( |
| ) |
const |
|
inline |
get standard trigger accept
Definition at line 97 of file CTPSLink.h.
◆ getAcceptAP()
bool LVL1CTP::CTPSLink::getAcceptAP |
( |
| ) |
const |
get trigger accept after prescale
Definition at line 169 of file CTPSLink.cxx.
173 for (
size_t i(0);
i <
result.size(); ++
i) {
174 if (
result[
i] > 0)
return true;
◆ getAcceptAV()
bool LVL1CTP::CTPSLink::getAcceptAV |
( |
| ) |
const |
get trigger accept after veto
Definition at line 180 of file CTPSLink.cxx.
184 for (
size_t i(0);
i <
result.size(); ++
i) {
185 if (
result[
i] > 0)
return true;
◆ getAcceptBP()
bool LVL1CTP::CTPSLink::getAcceptBP |
( |
| ) |
const |
get trigger accept before prescale
Definition at line 158 of file CTPSLink.cxx.
162 for (
size_t i(0);
i <
result.size(); ++
i) {
163 if (
result[
i] > 0)
return true;
◆ getCTPToRoIBWords()
const std::vector< uint32_t > & LVL1CTP::CTPSLink::getCTPToRoIBWords |
( |
| ) |
const |
◆ getCTPVersionNumber()
unsigned int LVL1CTP::CTPSLink::getCTPVersionNumber |
( |
| ) |
const |
|
inline |
retrieve CTP version number
Definition at line 69 of file CTPSLink.h.
◆ getDataElements()
const std::vector< uint32_t > LVL1CTP::CTPSLink::getDataElements |
( |
| ) |
const |
get raw data content
Definition at line 101 of file CTPSLink.cxx.
104 std::vector<uint32_t> dataElements;
◆ getDataElementSize()
unsigned int LVL1CTP::CTPSLink::getDataElementSize |
( |
| ) |
const |
◆ getHeader()
const std::vector< uint32_t > LVL1CTP::CTPSLink::getHeader |
( |
| ) |
const |
get raw header content
Definition at line 67 of file CTPSLink.cxx.
69 std::vector<uint32_t>
result;
71 unsigned int start(0);
◆ getHeaderSize()
unsigned int LVL1CTP::CTPSLink::getHeaderSize |
( |
| ) |
const |
◆ getNumWordsPerCTPSLink()
unsigned int LVL1CTP::CTPSLink::getNumWordsPerCTPSLink |
( |
| ) |
const |
|
inline |
◆ getSize()
unsigned int LVL1CTP::CTPSLink::getSize |
( |
| ) |
const |
toal number of words in object
Definition at line 47 of file CTPSLink.cxx.
◆ getTAP()
const std::vector< uint32_t > LVL1CTP::CTPSLink::getTAP |
( |
| ) |
const |
get trigger result after prescale
Definition at line 130 of file CTPSLink.cxx.
132 std::vector<uint32_t>
result;
◆ getTAV()
const std::vector< uint32_t > LVL1CTP::CTPSLink::getTAV |
( |
| ) |
const |
get trigger result after veto
Definition at line 144 of file CTPSLink.cxx.
146 std::vector<uint32_t>
result;
◆ getTBP()
const std::vector< uint32_t > LVL1CTP::CTPSLink::getTBP |
( |
| ) |
const |
get trigger result before prescale
Definition at line 116 of file CTPSLink.cxx.
118 std::vector<uint32_t>
result;
◆ getTrailer()
const std::vector< uint32_t > LVL1CTP::CTPSLink::getTrailer |
( |
| ) |
const |
get raw trailer content
Definition at line 81 of file CTPSLink.cxx.
83 std::vector<uint32_t>
result;
◆ getTrailerSize()
unsigned int LVL1CTP::CTPSLink::getTrailerSize |
( |
| ) |
const |
number of words in trailer
Definition at line 62 of file CTPSLink.cxx.
◆ operator=()
◆ print()
const std::string LVL1CTP::CTPSLink::print |
( |
const bool |
longFormat = false | ) |
const |
print object content in a human readable form to string
Definition at line 204 of file CTPSLink.cxx.
206 std::ostringstream
s;
◆ m_CTPSLinkVector
const std::vector<uint32_t> LVL1CTP::CTPSLink::m_CTPSLinkVector |
|
private |
this vector contains the header, data elements and trailer
vector of words
Definition at line 113 of file CTPSLink.h.
◆ m_ctpVersion
CTPdataformatVersion* LVL1CTP::CTPSLink::m_ctpVersion |
|
private |
◆ m_ctpVersionNumber
unsigned int LVL1CTP::CTPSLink::m_ctpVersionNumber |
|
private |
◆ m_wordsPerCTPSLink
unsigned int LVL1CTP::CTPSLink::m_wordsPerCTPSLink |
|
private |
◆ m_wordsPerDataElement
unsigned int LVL1CTP::CTPSLink::m_wordsPerDataElement |
|
private |
number of words per data element
Definition at line 119 of file CTPSLink.h.
◆ m_wordsPerHeader
unsigned int LVL1CTP::CTPSLink::m_wordsPerHeader |
|
private |
number of words per header
Definition at line 118 of file CTPSLink.h.
◆ m_wordsPerTrailer
unsigned int LVL1CTP::CTPSLink::m_wordsPerTrailer |
|
private |
number of words per trailer
Definition at line 120 of file CTPSLink.h.
The documentation for this class was generated from the following files:
const std::vector< uint32_t > getDataElements() const
get raw data content
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
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
const std::string convertToHex(const uint32_t word)
helper function to dump a number in hex format
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
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