1 #ifndef EventFilter_L1TRawToDigi_Block_h 2 #define EventFilter_L1TRawToDigi_Block_h 52 header_(h), payload_(payload_start, payload_end) {};
54 header_(id, payload.
size(), capID,
type), payload_(payload) {};
58 inline unsigned int getSize()
const {
return payload_.size() + 1; };
61 std::vector<uint32_t>
payload()
const {
return payload_; };
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 virtual std::unique_ptr<Block> getBlock()
override;
110 static const unsigned int header_size = 12;
111 static const unsigned int counter_size = 4;
112 static const unsigned int trailer_size = 8;
116 static const unsigned int max_block_length_ = 3;
119 int count(
unsigned int pattern,
unsigned int length)
const;
120 bool valid(
unsigned int pattern)
const;
std::vector< uint32_t > payload_
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_
BlockHeader header() const
std::vector< Variable::Flags > flags
virtual BlockHeader getHeader() override
virtual unsigned getHeaderSize() const override
std::vector< uint32_t > payload() const
virtual unsigned getHeaderSize() const override
Block(unsigned int id, const std::vector< uint32_t > &payload, unsigned int capID=0, block_t type=MP7)
payload
payload postfix for testing
virtual unsigned getInfrastructureFWVersion() const
virtual unsigned getAlgorithmFWVersion() const
std::vector< Block > Blocks
char data[epos_bytes_allocation]
void amc(const amc::Header &h)
unsigned int getSize() const
virtual unsigned getHeaderSize() const override
static const std::vector< unsigned int > block_patterns_
Payload(const uint32_t *data, const uint32_t *end)
bool operator<(const Block &o) const