1 #ifndef DataFormats_L1Trigger_BxBlock_h 2 #define DataFormats_L1Trigger_BxBlock_h 26 inline unsigned int getId()
const {
return id_; };
30 inline uint32_t
raw()
const {
51 BxBlock(std::vector<uint32_t>::const_iterator bx_start, std::vector<uint32_t>::const_iterator bx_end)
52 : header_(*bx_start), payload_(bx_start + 1, bx_end){};
54 std::vector<uint32_t>::const_iterator payload_start,
55 std::vector<uint32_t>::const_iterator payload_end)
56 : header_(h), payload_(payload_start, payload_end){};
59 std::vector<uint32_t>::const_iterator payload_start,
60 std::vector<uint32_t>::const_iterator payload_end,
61 unsigned int flags = 0)
62 : header_(id, totalBx,
flags), payload_(payload_start, payload_end){};
63 BxBlock(
unsigned int id,
unsigned int totalBx,
const std::vector<uint32_t>&
payload,
unsigned int flags = 0)
64 : header_(id, totalBx,
flags), payload_(payload){};
69 inline unsigned int getSize()
const {
return payload_.size(); };
72 std::vector<uint32_t>
payload()
const {
return payload_; };
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
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)
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)
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