CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Attributes | Protected Attributes
rpctwinmux::BlockAMCContent Class Reference

#include <RPCTwinMuxRecord.h>

Public Member Functions

 BlockAMCContent (std::uint64_t const record=0x0)
 
 BlockAMCContent (bool length_correct, bool last_block, bool first_block, bool enabled, bool present, bool valid, bool crc_ok, unsigned int size, unsigned int block_number, unsigned int amc_number, unsigned int board_id)
 
unsigned int getAMCNumber () const
 
unsigned int getBlockNumber () const
 
unsigned int getBoardId () const
 
std::uint64_t const & getRecord () const
 
unsigned int getSize () const
 
bool isCRCOk () const
 
bool isEnabled () const
 
bool isFirstBlock () const
 
bool isLastBlock () const
 
bool isLengthCorrect () const
 
bool isPresent () const
 
bool isValid () const
 
void reset ()
 
void set (std::uint64_t const record)
 
void setAMCNumber (unsigned int amc_number)
 
void setBlockNumber (unsigned int block_number)
 
void setBoardId (unsigned int board_id)
 
void setCRCOk (bool crc_ok)
 
void setEnabled (bool enabled)
 
void setFirstBlock (bool first_block)
 
void setLastBlock (bool last_block)
 
void setLengthCorrect (bool length_correct)
 
void setPresent (bool present)
 
void setSize (unsigned int size)
 
void setValid (bool valid)
 

Static Public Attributes

static std::uint64_t const amc_number_mask_ = 0x00000000000f0000
 
static unsigned int const amc_number_offset_ = 16
 
static std::uint64_t const block_number_mask_ = 0x000000000ff00000
 
static unsigned int const block_number_offset_ = 20
 
static std::uint64_t const board_id_mask_ = 0x000000000000ffff
 
static unsigned int const board_id_offset_ = 0
 
static std::uint64_t const crc_ok_mask_ = 0x0100000000000000
 
static std::uint64_t const enabled_mask_ = 0x0800000000000000
 
static std::uint64_t const length_correct_mask_ = 0x4000000000000000
 
static std::uint64_t const more_blocks_mask_ = 0x2000000000000000
 
static std::uint64_t const present_mask_ = 0x0400000000000000
 
static std::uint64_t const segmented_mask_ = 0x1000000000000000
 
static std::uint64_t const size_mask_ = 0x00ffffff00000000
 
static unsigned int const size_offset_ = 32
 
static std::uint64_t const valid_mask_ = 0x0200000000000000
 

Protected Attributes

std::uint64_t record_
 

Detailed Description

Definition at line 104 of file RPCTwinMuxRecord.h.

Constructor & Destructor Documentation

rpctwinmux::BlockAMCContent::BlockAMCContent ( std::uint64_t const  record = 0x0)
rpctwinmux::BlockAMCContent::BlockAMCContent ( bool  length_correct,
bool  last_block,
bool  first_block,
bool  enabled,
bool  present,
bool  valid,
bool  crc_ok,
unsigned int  size,
unsigned int  block_number,
unsigned int  amc_number,
unsigned int  board_id 
)

Definition at line 30 of file RPCTwinMuxRecord.cc.

References setAMCNumber(), setBlockNumber(), setBoardId(), setCRCOk(), setEnabled(), setFirstBlock(), setLastBlock(), setLengthCorrect(), setPresent(), setSize(), and setValid().

41  : record_(0x0) {
42  setLengthCorrect(length_correct);
43  setLastBlock(last_block);
44  setFirstBlock(first_block);
46  setPresent(present);
47  setValid(valid);
48  setCRCOk(crc_ok);
49  setSize(size);
50  setBlockNumber(block_number);
51  setAMCNumber(amc_number);
52  setBoardId(board_id);
53  }
void setAMCNumber(unsigned int amc_number)
void setLengthCorrect(bool length_correct)
void setPresent(bool present)
void setEnabled(bool enabled)
void setBoardId(unsigned int board_id)
void setCRCOk(bool crc_ok)
void setBlockNumber(unsigned int block_number)
void setSize(unsigned int size)
void setValid(bool valid)
void setFirstBlock(bool first_block)
tuple size
Write out results.
void setLastBlock(bool last_block)

Member Function Documentation

unsigned int rpctwinmux::BlockAMCContent::getAMCNumber ( ) const
unsigned int rpctwinmux::BlockAMCContent::getBlockNumber ( ) const
unsigned int rpctwinmux::BlockAMCContent::getBoardId ( ) const
std::uint64_t const& rpctwinmux::BlockAMCContent::getRecord ( ) const
unsigned int rpctwinmux::BlockAMCContent::getSize ( ) const
bool rpctwinmux::BlockAMCContent::isCRCOk ( ) const
bool rpctwinmux::BlockAMCContent::isEnabled ( ) const
bool rpctwinmux::BlockAMCContent::isFirstBlock ( ) const
bool rpctwinmux::BlockAMCContent::isLastBlock ( ) const
bool rpctwinmux::BlockAMCContent::isLengthCorrect ( ) const
bool rpctwinmux::BlockAMCContent::isPresent ( ) const
bool rpctwinmux::BlockAMCContent::isValid ( ) const
void rpctwinmux::BlockAMCContent::reset ( )
void rpctwinmux::BlockAMCContent::set ( std::uint64_t const  record)
void rpctwinmux::BlockAMCContent::setAMCNumber ( unsigned int  amc_number)

Referenced by BlockAMCContent().

void rpctwinmux::BlockAMCContent::setBlockNumber ( unsigned int  block_number)

Referenced by BlockAMCContent().

void rpctwinmux::BlockAMCContent::setBoardId ( unsigned int  board_id)

Referenced by BlockAMCContent().

void rpctwinmux::BlockAMCContent::setCRCOk ( bool  crc_ok)

Referenced by BlockAMCContent().

void rpctwinmux::BlockAMCContent::setEnabled ( bool  enabled)

Referenced by BlockAMCContent().

void rpctwinmux::BlockAMCContent::setFirstBlock ( bool  first_block)

Referenced by BlockAMCContent().

void rpctwinmux::BlockAMCContent::setLastBlock ( bool  last_block)

Referenced by BlockAMCContent().

void rpctwinmux::BlockAMCContent::setLengthCorrect ( bool  length_correct)

Referenced by BlockAMCContent().

void rpctwinmux::BlockAMCContent::setPresent ( bool  present)

Referenced by BlockAMCContent().

void rpctwinmux::BlockAMCContent::setSize ( unsigned int  size)

Referenced by BlockAMCContent().

void rpctwinmux::BlockAMCContent::setValid ( bool  valid)

Referenced by BlockAMCContent().

Member Data Documentation

std::uint64_t const rpctwinmux::BlockAMCContent::amc_number_mask_ = 0x00000000000f0000
static

Definition at line 115 of file RPCTwinMuxRecord.h.

unsigned int const rpctwinmux::BlockAMCContent::amc_number_offset_ = 16
static

Definition at line 120 of file RPCTwinMuxRecord.h.

std::uint64_t const rpctwinmux::BlockAMCContent::block_number_mask_ = 0x000000000ff00000
static

Definition at line 114 of file RPCTwinMuxRecord.h.

unsigned int const rpctwinmux::BlockAMCContent::block_number_offset_ = 20
static

Definition at line 119 of file RPCTwinMuxRecord.h.

std::uint64_t const rpctwinmux::BlockAMCContent::board_id_mask_ = 0x000000000000ffff
static

Definition at line 116 of file RPCTwinMuxRecord.h.

unsigned int const rpctwinmux::BlockAMCContent::board_id_offset_ = 0
static

Definition at line 121 of file RPCTwinMuxRecord.h.

std::uint64_t const rpctwinmux::BlockAMCContent::crc_ok_mask_ = 0x0100000000000000
static

Definition at line 112 of file RPCTwinMuxRecord.h.

std::uint64_t const rpctwinmux::BlockAMCContent::enabled_mask_ = 0x0800000000000000
static

Definition at line 109 of file RPCTwinMuxRecord.h.

std::uint64_t const rpctwinmux::BlockAMCContent::length_correct_mask_ = 0x4000000000000000
static

Definition at line 106 of file RPCTwinMuxRecord.h.

std::uint64_t const rpctwinmux::BlockAMCContent::more_blocks_mask_ = 0x2000000000000000
static

Definition at line 107 of file RPCTwinMuxRecord.h.

std::uint64_t const rpctwinmux::BlockAMCContent::present_mask_ = 0x0400000000000000
static

Definition at line 110 of file RPCTwinMuxRecord.h.

std::uint64_t rpctwinmux::BlockAMCContent::record_
protected

Definition at line 167 of file RPCTwinMuxRecord.h.

std::uint64_t const rpctwinmux::BlockAMCContent::segmented_mask_ = 0x1000000000000000
static

Definition at line 108 of file RPCTwinMuxRecord.h.

std::uint64_t const rpctwinmux::BlockAMCContent::size_mask_ = 0x00ffffff00000000
static

Definition at line 113 of file RPCTwinMuxRecord.h.

unsigned int const rpctwinmux::BlockAMCContent::size_offset_ = 32
static

Definition at line 118 of file RPCTwinMuxRecord.h.

std::uint64_t const rpctwinmux::BlockAMCContent::valid_mask_ = 0x0200000000000000
static

Definition at line 111 of file RPCTwinMuxRecord.h.