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
BlockHeader header_
Definition: Block.h:60
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,
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

Definition at line 59 of file Block.h.

References amc_, and h.

59 { 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:64
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

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().