CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 45 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 47 of file Block.h.

47  :
48  header_(h), payload_(payload_start, payload_end) {};
std::vector< uint32_t > payload_
Definition: Block.h:65
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
BlockHeader header_
Definition: Block.h:60
l1t::Block::Block ( unsigned int  id,
const std::vector< uint32_t > &  payload,
unsigned int  capID = 0,
block_t  type = MP7 
)
inline

Definition at line 49 of file Block.h.

49  :
50  header_(id, payload.size(), capID, type), payload_(payload) {};
type
Definition: HCALResponse.h:21
std::vector< uint32_t > payload_
Definition: Block.h:65
std::vector< uint32_t > payload() const
Definition: Block.h:57
BlockHeader header_
Definition: Block.h:60

Member Function Documentation

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

Definition at line 60 of file Block.h.

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

Definition at line 54 of file Block.h.

References payload_.

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

Definition at line 52 of file Block.h.

References header().

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

Definition at line 57 of file Block.h.

References payload_.

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::stage1::MissEtUnpacker::unpack(), l1t::stage1::EtSumUnpacker::unpack(), l1t::stage1::MissHtUnpacker::unpack(), l1t::stage2::BMTFUnpackerInputs::unpack(), l1t::stage1::CaloSpareHFUnpacker::unpack(), l1t::stage2::BMTFUnpackerOutput::unpack(), l1t::stage2::GlobalAlgBlkUnpacker::unpack(), l1t::stage2::GlobalExtBlkUnpacker::unpack(), l1t::stage2::RegionalMuonGMTUnpacker::unpack(), l1t::stage1::legacy::HFRingUnpacker::unpack(), l1t::stage1::legacy::EtSumUnpacker::unpack(), l1t::stage2::CaloTowerUnpacker::unpack(), l1t::stage2::MuonUnpacker::unpack(), l1t::stage2::emtf::CountersBlockUnpacker::unpack(), l1t::stage2::EGammaUnpacker::unpack(), l1t::stage2::MPUnpacker::unpack(), l1t::stage2::MPUnpacker_0x1001000b::unpack(), l1t::stage2::emtf::HeadersBlockUnpacker::unpack(), l1t::stage2::TauUnpacker::unpack(), l1t::stage2::emtf::MEBlockUnpacker::unpack(), l1t::stage2::emtf::TrailersBlockUnpacker::unpack(), l1t::stage2::JetUnpacker::unpack(), l1t::stage2::EtSumUnpacker::unpack(), l1t::stage2::MPUnpacker_0x10010010::unpack(), l1t::stage2::emtf::SPBlockUnpacker::unpack(), l1t::stage2::emtf::RPCBlockUnpacker::unpack(), l1t::stage1::unpack_em(), and l1t::stage1::unpack_region().

57 { return payload_; };
std::vector< uint32_t > payload_
Definition: Block.h:65

Member Data Documentation

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

Definition at line 64 of file Block.h.

Referenced by amc().

BlockHeader l1t::Block::header_
private

Definition at line 60 of file Block.h.

Referenced by header().

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

Definition at line 65 of file Block.h.

Referenced by getSize(), and payload().