CMS 3D CMS Logo

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

#include <BxBlock.h>

Public Member Functions

 BxBlock (std::vector< uint32_t >::const_iterator bx_start, std::vector< uint32_t >::const_iterator bx_end)
 
 BxBlock (const BxBlockHeader &h, std::vector< uint32_t >::const_iterator payload_start, std::vector< uint32_t >::const_iterator payload_end)
 
 BxBlock (unsigned int id, unsigned int totalBx, std::vector< uint32_t >::const_iterator payload_start, std::vector< uint32_t >::const_iterator payload_end, unsigned int flags=0)
 
 BxBlock (unsigned int id, unsigned int totalBx, const std::vector< uint32_t > &payload, unsigned int flags=0)
 
unsigned int getSize () const
 
BxBlockHeader header () const
 
bool operator< (const BxBlock &o) const
 
std::vector< uint32_t > payload () const
 
 ~BxBlock ()
 

Private Attributes

BxBlockHeader header_
 
std::vector< uint32_t > payload_
 

Detailed Description

Definition at line 49 of file BxBlock.h.

Constructor & Destructor Documentation

◆ BxBlock() [1/4]

l1t::BxBlock::BxBlock ( std::vector< uint32_t >::const_iterator  bx_start,
std::vector< uint32_t >::const_iterator  bx_end 
)
inline

Definition at line 51 of file BxBlock.h.

52  : header_(*bx_start), payload_(bx_start + 1, bx_end) {}
std::vector< uint32_t > payload_
Definition: BxBlock.h:76
BxBlockHeader header_
Definition: BxBlock.h:72

◆ BxBlock() [2/4]

l1t::BxBlock::BxBlock ( const BxBlockHeader h,
std::vector< uint32_t >::const_iterator  payload_start,
std::vector< uint32_t >::const_iterator  payload_end 
)
inline

Definition at line 53 of file BxBlock.h.

56  : header_(h), payload_(payload_start, payload_end) {}
std::vector< uint32_t > payload_
Definition: BxBlock.h:76
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
BxBlockHeader header_
Definition: BxBlock.h:72

◆ BxBlock() [3/4]

l1t::BxBlock::BxBlock ( unsigned int  id,
unsigned int  totalBx,
std::vector< uint32_t >::const_iterator  payload_start,
std::vector< uint32_t >::const_iterator  payload_end,
unsigned int  flags = 0 
)
inline

Definition at line 57 of file BxBlock.h.

62  : header_(id, totalBx, flags), payload_(payload_start, payload_end) {}
std::vector< uint32_t > payload_
Definition: BxBlock.h:76
BxBlockHeader header_
Definition: BxBlock.h:72

◆ BxBlock() [4/4]

l1t::BxBlock::BxBlock ( unsigned int  id,
unsigned int  totalBx,
const std::vector< uint32_t > &  payload,
unsigned int  flags = 0 
)
inline

Definition at line 63 of file BxBlock.h.

64  : header_(id, totalBx, flags), payload_(payload) {}
std::vector< uint32_t > payload() const
Definition: BxBlock.h:72
std::vector< uint32_t > payload_
Definition: BxBlock.h:76
BxBlockHeader header_
Definition: BxBlock.h:72

◆ ~BxBlock()

l1t::BxBlock::~BxBlock ( )
inline

Definition at line 65 of file BxBlock.h.

65 {}

Member Function Documentation

◆ getSize()

unsigned int l1t::BxBlock::getSize ( ) const
inline

Definition at line 69 of file BxBlock.h.

References payload_.

69 { return payload_.size(); };
std::vector< uint32_t > payload_
Definition: BxBlock.h:76

◆ header()

BxBlockHeader l1t::BxBlock::header ( ) const
inline

Definition at line 71 of file BxBlock.h.

References header_.

Referenced by operator<().

71 { return header_; };
BxBlockHeader header_
Definition: BxBlock.h:72

◆ operator<()

bool l1t::BxBlock::operator< ( const BxBlock o) const
inline

Definition at line 67 of file BxBlock.h.

References header(), and EcalTangentSkim_cfg::o.

67 { return header() < o.header(); };
BxBlockHeader header() const
Definition: BxBlock.h:71

◆ payload()

std::vector<uint32_t> l1t::BxBlock::payload ( ) const
inline

Definition at line 72 of file BxBlock.h.

References payload_.

72 { return payload_; };
std::vector< uint32_t > payload_
Definition: BxBlock.h:76

Member Data Documentation

◆ header_

BxBlockHeader l1t::BxBlock::header_
private

Definition at line 72 of file BxBlock.h.

Referenced by header().

◆ payload_

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

Definition at line 76 of file BxBlock.h.

Referenced by getSize(), and payload().