CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
l1t::Block Class Reference

#include <Block.h>

Public Member Functions

void amc (const amc::Header &h)
 
amc::Header amc () const
 
 Block (const BlockHeader &h, const uint32_t *payload_start, const uint32_t *payload_end)
 
 Block (unsigned int id, const std::vector< uint32_t > &payload, unsigned int capID=0, block_t type=MP7)
 
unsigned int getSize () const
 
BlockHeader header () const
 
bool operator< (const Block &o) const
 
std::vector< uint32_t > payload () const
 

Private Attributes

amc::Header amc_
 
BlockHeader header_
 
std::vector< uint32_t > payload_
 

Detailed Description

Definition at line 49 of file Block.h.

Constructor & Destructor Documentation

l1t::Block::Block ( const BlockHeader h,
const uint32_t *  payload_start,
const uint32_t *  payload_end 
)
inline

Definition at line 51 of file Block.h.

51  :
52  header_(h), payload_(payload_start, payload_end) {};
std::vector< uint32_t > payload_
Definition: Block.h:69
BlockHeader header_
Definition: Block.h:64
l1t::Block::Block ( unsigned int  id,
const std::vector< uint32_t > &  payload,
unsigned int  capID = 0,
block_t  type = MP7 
)
inline

Definition at line 53 of file Block.h.

53  :
54  header_(id, payload.size(), capID, type), payload_(payload) {};
type
Definition: HCALResponse.h:21
std::vector< uint32_t > payload_
Definition: Block.h:69
std::vector< uint32_t > payload() const
Definition: Block.h:61
BlockHeader header_
Definition: Block.h:64

Member Function Documentation

void l1t::Block::amc ( const amc::Header h)
inline
amc::Header l1t::Block::amc ( ) const
inline

Definition at line 64 of file Block.h.

64 { return amc_; };
amc::Header amc_
Definition: Block.h:68
unsigned int l1t::Block::getSize ( ) const
inline

Definition at line 58 of file Block.h.

58 { return payload_.size() + 1; };
std::vector< uint32_t > payload_
Definition: Block.h:69
BlockHeader l1t::Block::header ( void  ) const
inline
bool l1t::Block::operator< ( const Block o) const
inline

Definition at line 56 of file Block.h.

References header(), and RecoTauValidation_cfi::header.

56 { return header() < o.header(); };
BlockHeader header() const
Definition: Block.h:60
std::vector<uint32_t> l1t::Block::payload ( ) const
inline

Definition at line 61 of file Block.h.

Referenced by l1t::stage2::emtf::CountersBlockUnpacker::checkFormat(), l1t::stage2::emtf::HeadersBlockUnpacker::checkFormat(), l1t::stage2::emtf::MEBlockUnpacker::checkFormat(), l1t::stage2::emtf::RPCBlockUnpacker::checkFormat(), l1t::stage2::emtf::SPBlockUnpacker::checkFormat(), l1t::stage2::emtf::TrailersBlockUnpacker::checkFormat(), process(), l1t::stage1::HFRingUnpacker::unpack(), l1t::stage2::JetUnpacker::unpack(), l1t::stage1::MissEtUnpacker::unpack(), l1t::stage2::GlobalExtBlkUnpacker::unpack(), l1t::stage2::GlobalAlgBlkUnpacker::unpack(), l1t::stage2::MPUnpacker::unpack(), l1t::stage2::MPUnpacker_0x10010010::unpack(), l1t::stage1::EtSumUnpacker::unpack(), l1t::stage1::MissHtUnpacker::unpack(), l1t::stage2::TauUnpacker::unpack(), l1t::stage2::RegionalMuonGMTUnpacker::unpack(), l1t::stage2::MPUnpacker_0x10010033::unpack(), l1t::stage1::CaloSpareHFUnpacker::unpack(), l1t::stage2::EtSumUnpacker::unpack(), l1t::stage2::CaloTowerUnpacker::unpack(), l1t::stage2::EGammaUnpacker::unpack(), l1t::stage2::MPUnpacker_0x1001000b::unpack(), l1t::stage1::legacy::EtSumUnpacker::unpack(), l1t::stage1::legacy::HFRingUnpacker::unpack(), l1t::stage2::BMTFUnpackerOutput::unpack(), l1t::stage2::IntermediateMuonUnpacker::unpack(), l1t::stage2::MuonUnpacker::unpack(), l1t::stage2::emtf::HeadersBlockUnpacker::unpack(), l1t::stage2::emtf::CountersBlockUnpacker::unpack(), l1t::stage2::emtf::SPBlockUnpacker::unpack(), l1t::stage2::emtf::MEBlockUnpacker::unpack(), l1t::stage2::emtf::TrailersBlockUnpacker::unpack(), l1t::stage2::emtf::RPCBlockUnpacker::unpack(), l1t::stage1::unpack_em(), l1t::stage1::unpack_region(), and l1t::stage2::unpacking().

61 { return payload_; };
std::vector< uint32_t > payload_
Definition: Block.h:69

Member Data Documentation

amc::Header l1t::Block::amc_
private

Definition at line 68 of file Block.h.

BlockHeader l1t::Block::header_
private

Definition at line 64 of file Block.h.

std::vector<uint32_t> l1t::Block::payload_
private

Definition at line 69 of file Block.h.