1 #ifndef EventFilter_L1TRawToDigi_Block_h 2 #define EventFilter_L1TRawToDigi_Block_h 51 header_(h), payload_(payload_start, payload_end) {};
53 header_(id, payload.
size(), capID,
flags,
type), payload_(payload) {};
57 inline unsigned int getSize()
const {
return payload_.size() + 1; };
60 const std::vector<uint32_t>&
payload()
const {
return payload_; };
65 BxBlocks getBxBlocks(
unsigned int payloadWordsPerBx,
bool bxHeader)
const;
76 Payload(
const uint32_t *
data,
const uint32_t *
end) : data_(data),
end_(end), algo_(0), infra_(0) {};
80 virtual unsigned getHeaderSize()
const = 0;
85 virtual std::unique_ptr<Block> getBlock();
107 std::unique_ptr<Block> getBlock()
override;
119 int count(
unsigned int pattern,
unsigned int length)
const;
120 bool valid(
unsigned int pattern)
const;
128 std::unique_ptr<Block> getBlock()
override;
std::vector< uint32_t > payload_
const std::vector< uint32_t > & payload() const
Block(const BlockHeader &h, const uint32_t *payload_start, const uint32_t *payload_end)
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
std::vector< l1t::Jet >::iterator end_
unsigned getHeaderSize() const override
BlockHeader header() const
std::vector< Variable::Flags > flags
unsigned getHeaderSize() const override
BlockHeader getHeader() override
virtual unsigned getInfrastructureFWVersion() const
virtual unsigned getAlgorithmFWVersion() const
std::vector< Block > Blocks
Block(unsigned int id, const std::vector< uint32_t > &payload, unsigned int capID=0, unsigned int flags=0, block_t type=MP7)
std::vector< BxBlock > BxBlocks
unsigned getHeaderSize() const override
char data[epos_bytes_allocation]
void amc(const amc::Header &h)
unsigned int getSize() const
static const std::vector< unsigned int > block_patterns_
Payload(const uint32_t *data, const uint32_t *end)
bool operator<(const Block &o) const