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 (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)
 
 BlockAMCContent (std::uint64_t const record=0x0)
 
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 const std::uint64_t amc_number_mask_ = 0x00000000000f0000
 
static unsigned const int amc_number_offset_ = 16
 
static const std::uint64_t block_number_mask_ = 0x000000000ff00000
 
static unsigned const int block_number_offset_ = 20
 
static const std::uint64_t board_id_mask_ = 0x000000000000ffff
 
static unsigned const int board_id_offset_ = 0
 
static const std::uint64_t crc_ok_mask_ = 0x0100000000000000
 
static const std::uint64_t enabled_mask_ = 0x0800000000000000
 
static const std::uint64_t length_correct_mask_ = 0x4000000000000000
 
static const std::uint64_t more_blocks_mask_ = 0x2000000000000000
 
static const std::uint64_t present_mask_ = 0x0400000000000000
 
static const std::uint64_t segmented_mask_ = 0x1000000000000000
 
static const std::uint64_t size_mask_ = 0x00ffffff00000000
 
static unsigned const int size_offset_ = 32
 
static const std::uint64_t 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.

28 : record_(record) {}

◆ 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.

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  }

References pixel_dqm_sourceclient-live_cfg::enabled, setAMCNumber(), setBlockNumber(), setBoardId(), setCRCOk(), setEnabled(), setFirstBlock(), setLastBlock(), setLengthCorrect(), setPresent(), setSize(), setValid(), findQualityFiles::size, and RunInfoPI::valid.

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_

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

Definition at line 115 of file RPCTwinMuxRecord.h.

◆ amc_number_offset_

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

Definition at line 120 of file RPCTwinMuxRecord.h.

◆ block_number_mask_

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

Definition at line 114 of file RPCTwinMuxRecord.h.

◆ block_number_offset_

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

Definition at line 119 of file RPCTwinMuxRecord.h.

◆ board_id_mask_

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

Definition at line 116 of file RPCTwinMuxRecord.h.

◆ board_id_offset_

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

Definition at line 121 of file RPCTwinMuxRecord.h.

◆ crc_ok_mask_

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

Definition at line 112 of file RPCTwinMuxRecord.h.

◆ enabled_mask_

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

Definition at line 109 of file RPCTwinMuxRecord.h.

◆ length_correct_mask_

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

Definition at line 106 of file RPCTwinMuxRecord.h.

◆ more_blocks_mask_

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

Definition at line 107 of file RPCTwinMuxRecord.h.

◆ present_mask_

const std::uint64_t 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_

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

Definition at line 108 of file RPCTwinMuxRecord.h.

◆ size_mask_

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

Definition at line 113 of file RPCTwinMuxRecord.h.

◆ size_offset_

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

Definition at line 118 of file RPCTwinMuxRecord.h.

◆ valid_mask_

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

Definition at line 111 of file RPCTwinMuxRecord.h.

rpctwinmux::BlockAMCContent::setLastBlock
void setLastBlock(bool last_block)
rpctwinmux::BlockAMCContent::setSize
void setSize(unsigned int size)
rpctwinmux::BlockAMCContent::setFirstBlock
void setFirstBlock(bool first_block)
rpctwinmux::BlockAMCContent::setCRCOk
void setCRCOk(bool crc_ok)
rpctwinmux::BlockAMCContent::record_
std::uint64_t record_
Definition: RPCTwinMuxRecord.h:167
rpctwinmux::BlockAMCContent::setAMCNumber
void setAMCNumber(unsigned int amc_number)
rpctwinmux::BlockAMCContent::setEnabled
void setEnabled(bool enabled)
rpctwinmux::BlockAMCContent::setBoardId
void setBoardId(unsigned int board_id)
rpctwinmux::BlockAMCContent::setLengthCorrect
void setLengthCorrect(bool length_correct)
rpctwinmux::BlockAMCContent::setBlockNumber
void setBlockNumber(unsigned int block_number)
AlCaHarvesting_cff.record
record
Definition: AlCaHarvesting_cff.py:42
rpctwinmux::BlockAMCContent::setPresent
void setPresent(bool present)
RunInfoPI::valid
Definition: RunInfoPayloadInspectoHelper.h:16
rpctwinmux::BlockAMCContent::setValid
void setValid(bool valid)
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443
pixel_dqm_sourceclient-live_cfg.enabled
enabled
Definition: pixel_dqm_sourceclient-live_cfg.py:139