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

Constructor & Destructor Documentation

◆ BlockAMCContent() [1/2]

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

Definition at line 28 of file RPCTwinMuxRecord.cc.

◆ BlockAMCContent() [2/2]

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 cms::soa::RestrictQualify::enabled, setAMCNumber(), setBlockNumber(), setBoardId(), setCRCOk(), setEnabled(), setFirstBlock(), setLastBlock(), setLengthCorrect(), setPresent(), setSize(), setValid(), and validateGeometry_cfg::valid.

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  }
size
Write out results.
void setAMCNumber(unsigned int amc_number)
void setLengthCorrect(bool length_correct)
constexpr bool enabled
Definition: SoACommon.h:73
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

◆ getAMCNumber()

unsigned int rpctwinmux::BlockAMCContent::getAMCNumber ( ) const

◆ getBlockNumber()

unsigned int rpctwinmux::BlockAMCContent::getBlockNumber ( ) const

◆ getBoardId()

unsigned int rpctwinmux::BlockAMCContent::getBoardId ( ) const

◆ getRecord()

std::uint64_t const& rpctwinmux::BlockAMCContent::getRecord ( ) const

◆ getSize()

unsigned int rpctwinmux::BlockAMCContent::getSize ( ) const

◆ isCRCOk()

bool rpctwinmux::BlockAMCContent::isCRCOk ( ) const

◆ isEnabled()

bool rpctwinmux::BlockAMCContent::isEnabled ( ) const

◆ isFirstBlock()

bool rpctwinmux::BlockAMCContent::isFirstBlock ( ) const

◆ isLastBlock()

bool rpctwinmux::BlockAMCContent::isLastBlock ( ) const

◆ isLengthCorrect()

bool rpctwinmux::BlockAMCContent::isLengthCorrect ( ) const

◆ isPresent()

bool rpctwinmux::BlockAMCContent::isPresent ( ) const

◆ isValid()

bool rpctwinmux::BlockAMCContent::isValid ( ) const

◆ reset()

void rpctwinmux::BlockAMCContent::reset ( )

◆ set()

void rpctwinmux::BlockAMCContent::set ( std::uint64_t const  record)

◆ setAMCNumber()

void rpctwinmux::BlockAMCContent::setAMCNumber ( unsigned int  amc_number)

Referenced by BlockAMCContent().

◆ setBlockNumber()

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

Referenced by BlockAMCContent().

◆ setBoardId()

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

Referenced by BlockAMCContent().

◆ setCRCOk()

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

Referenced by BlockAMCContent().

◆ setEnabled()

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

Referenced by BlockAMCContent().

◆ setFirstBlock()

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

Referenced by BlockAMCContent().

◆ setLastBlock()

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

Referenced by BlockAMCContent().

◆ setLengthCorrect()

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

Referenced by BlockAMCContent().

◆ setPresent()

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

Referenced by BlockAMCContent().

◆ setSize()

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

Referenced by BlockAMCContent().

◆ setValid()

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

Referenced by BlockAMCContent().

Member Data Documentation

◆ amc_number_mask_

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

Definition at line 115 of file RPCTwinMuxRecord.h.

◆ amc_number_offset_

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

Definition at line 120 of file RPCTwinMuxRecord.h.

◆ block_number_mask_

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

Definition at line 114 of file RPCTwinMuxRecord.h.

◆ block_number_offset_

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

Definition at line 119 of file RPCTwinMuxRecord.h.

◆ board_id_mask_

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

Definition at line 116 of file RPCTwinMuxRecord.h.

◆ board_id_offset_

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

Definition at line 121 of file RPCTwinMuxRecord.h.

◆ crc_ok_mask_

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

Definition at line 112 of file RPCTwinMuxRecord.h.

◆ enabled_mask_

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

Definition at line 109 of file RPCTwinMuxRecord.h.

◆ length_correct_mask_

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

Definition at line 106 of file RPCTwinMuxRecord.h.

◆ more_blocks_mask_

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

Definition at line 107 of file RPCTwinMuxRecord.h.

◆ present_mask_

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

Definition at line 110 of file RPCTwinMuxRecord.h.

◆ record_

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

Definition at line 167 of file RPCTwinMuxRecord.h.

◆ segmented_mask_

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

Definition at line 108 of file RPCTwinMuxRecord.h.

◆ size_mask_

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

Definition at line 113 of file RPCTwinMuxRecord.h.

◆ size_offset_

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

Definition at line 118 of file RPCTwinMuxRecord.h.

◆ valid_mask_

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

Definition at line 111 of file RPCTwinMuxRecord.h.