1 #ifndef DataFormats_L1Trigger_BxBlock_h 2 #define DataFormats_L1Trigger_BxBlock_h 21 inline unsigned int getId()
const {
return id_; };
45 BxBlock(std::vector<uint32_t>::const_iterator bx_start, std::vector<uint32_t>::const_iterator bx_end) :
46 header_(*bx_start), payload_(bx_start+1, bx_end) {};
47 BxBlock(
const BxBlockHeader&
h, std::vector<uint32_t>::const_iterator payload_start, std::vector<uint32_t>::const_iterator payload_end) :
48 header_(h), payload_(payload_start, payload_end) {};
49 BxBlock(
unsigned int id,
unsigned int totalBx, std::vector<uint32_t>::const_iterator payload_start, std::vector<uint32_t>::const_iterator payload_end,
unsigned int flags=0) :
50 header_(id, totalBx,
flags), payload_(payload_start, payload_end) {};
51 BxBlock(
unsigned int id,
unsigned int totalBx,
const std::vector<uint32_t>&
payload,
unsigned int flags=0) :
52 header_(id, totalBx,
flags), payload_(payload) {};
57 inline unsigned int getSize()
const {
return payload_.size(); };
60 std::vector<uint32_t>
payload()
const {
return payload_; };
BxBlock(unsigned int id, unsigned int totalBx, std::vector< uint32_t >::const_iterator payload_start, std::vector< uint32_t >::const_iterator payload_end, unsigned int flags=0)
BxBlock(unsigned int id, unsigned int totalBx, const std::vector< uint32_t > &payload, unsigned int flags=0)
std::vector< Variable::Flags > flags
BxBlock(std::vector< uint32_t >::const_iterator bx_start, std::vector< uint32_t >::const_iterator bx_end)
BxBlock(const BxBlockHeader &h, std::vector< uint32_t >::const_iterator payload_start, std::vector< uint32_t >::const_iterator payload_end)
payload
payload postfix for testing
unsigned int getSize() const
bool operator<(const BxBlock &o) const
BxBlockHeader header() const
std::vector< BxBlock > BxBlocks
std::vector< uint32_t > payload_
std::vector< uint32_t > payload() const