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, 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 41 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 43 of file Block.h.

43  :
44  header_(h), payload_(payload_start, payload_end) {};
std::vector< uint32_t > payload_
Definition: Block.h:61
BlockHeader header_
Definition: Block.h:56
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
l1t::Block::Block ( unsigned int  id,
const std::vector< uint32_t > &  payload,
block_t  type = MP7 
)
inline

Definition at line 45 of file Block.h.

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

Member Function Documentation

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

Definition at line 55 of file Block.h.

References amc_, and h.

55 { amc_ = h; };
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
amc::Header amc_
Definition: Block.h:60
amc::Header l1t::Block::amc ( ) const
inline

Definition at line 56 of file Block.h.

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

Definition at line 50 of file Block.h.

References payload_.

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

Definition at line 48 of file Block.h.

References header().

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

Member Data Documentation

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

Definition at line 60 of file Block.h.

Referenced by amc().

BlockHeader l1t::Block::header_
private

Definition at line 56 of file Block.h.

Referenced by header().

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

Definition at line 61 of file Block.h.

Referenced by getSize(), and payload().