CMS 3D CMS Logo

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 110 of file RPCTwinMuxRecord.h.

Constructor & Destructor Documentation

rpctwinmux::BlockAMCContent::BlockAMCContent ( std::uint64_t const  record = 0x0)

Definition at line 37 of file RPCTwinMuxRecord.cc.

38  : record_(record)
39 {}
JetCorrectorParameters::Record record
Definition: classes.h:7
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 41 of file RPCTwinMuxRecord.cc.

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

52 : record_(0x0)
53 {
54  setLengthCorrect(length_correct);
55  setLastBlock(last_block);
56  setFirstBlock(first_block);
58  setPresent(present);
59  setValid(valid);
60  setCRCOk(crc_ok);
61  setSize(size);
62  setBlockNumber(block_number);
63  setAMCNumber(amc_number);
64  setBoardId(board_id);
65 }
size
Write out results.
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)
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)
void rpctwinmux::BlockAMCContent::setBlockNumber ( unsigned int  block_number)

Referenced by BlockAMCContent().

void rpctwinmux::BlockAMCContent::setBoardId ( unsigned int  board_id)
void rpctwinmux::BlockAMCContent::setCRCOk ( bool  crc_ok)

Referenced by BlockAMCContent().

void rpctwinmux::BlockAMCContent::setEnabled ( bool  enabled)
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 122 of file RPCTwinMuxRecord.h.

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

Definition at line 127 of file RPCTwinMuxRecord.h.

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

Definition at line 121 of file RPCTwinMuxRecord.h.

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

Definition at line 126 of file RPCTwinMuxRecord.h.

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

Definition at line 123 of file RPCTwinMuxRecord.h.

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

Definition at line 128 of file RPCTwinMuxRecord.h.

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

Definition at line 119 of file RPCTwinMuxRecord.h.

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

Definition at line 116 of file RPCTwinMuxRecord.h.

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

Definition at line 113 of file RPCTwinMuxRecord.h.

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

Definition at line 114 of file RPCTwinMuxRecord.h.

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

Definition at line 117 of file RPCTwinMuxRecord.h.

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

Definition at line 174 of file RPCTwinMuxRecord.h.

Referenced by rpctwinmux::TwinMuxHeader::TwinMuxHeader().

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

Definition at line 115 of file RPCTwinMuxRecord.h.

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

Definition at line 120 of file RPCTwinMuxRecord.h.

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

Definition at line 125 of file RPCTwinMuxRecord.h.

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

Definition at line 118 of file RPCTwinMuxRecord.h.