1 #ifndef DataFormats_L1Trigger_BxBlock_h 2 #define DataFormats_L1Trigger_BxBlock_h 22 inline unsigned int getId()
const {
return id_; };
46 BxBlock(std::vector<uint32_t>::const_iterator bx_start, std::vector<uint32_t>::const_iterator bx_end) :
47 header_(*bx_start), payload_(bx_start+1, bx_end) {};
48 BxBlock(
const BxBlockHeader&
h, std::vector<uint32_t>::const_iterator payload_start, std::vector<uint32_t>::const_iterator payload_end) :
49 header_(h), payload_(payload_start, payload_end) {};
50 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) :
51 header_(id, totalBx,
flags), payload_(payload_start, payload_end) {};
52 BxBlock(
unsigned int id,
unsigned int totalBx,
const std::vector<uint32_t>&
payload,
unsigned int flags=0) :
53 header_(id, totalBx,
flags), payload_(payload) {};
58 inline unsigned int getSize()
const {
return payload_.size(); };
61 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)
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)
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