CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes | Static Protected Attributes
rpcamc13::AMCHeader Class Reference

#include <RPCAMC13Record.h>

Public Member Functions

 AMCHeader (std::uint64_t const record=enabled_mask_|present_mask_|valid_mask_|crc_ok_mask_)
 
 AMCHeader (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
 
unsigned int getSizeInBlock () const
 
bool hasTotalSize () 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)
 

Protected Attributes

std::uint64_t record_
 

Static Protected 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_incorrect_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 unsigned int const size_limit_ = 0x1400
 
static std::uint64_t const size_mask_ = 0x00ffffff00000000
 
static unsigned int const size_max_ = 0x1000
 
static unsigned int const size_offset_ = 32
 
static std::uint64_t const valid_mask_ = 0x0200000000000000
 

Detailed Description

Definition at line 80 of file RPCAMC13Record.h.

Constructor & Destructor Documentation

rpcamc13::AMCHeader::AMCHeader ( std::uint64_t const  record = enabled_mask_ | present_mask_ | valid_mask_ | crc_ok_mask_)

Definition at line 33 of file RPCAMC13Record.cc.

34  : record_(record)
35 {}
JetCorrectorParameters::Record record
Definition: classes.h:7
std::uint64_t record_
rpcamc13::AMCHeader::AMCHeader ( 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 37 of file RPCAMC13Record.cc.

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

48  : record_(0x0)
49 {
50  setLengthCorrect(length_correct);
51  setLastBlock(last_block);
52  setFirstBlock(first_block);
54  setPresent(present);
55  setValid(valid);
56  setCRCOk(crc_ok);
57  setSize(size);
58  setBlockNumber(block_number);
59  setAMCNumber(amc_number);
60  setBoardId(board_id);
61 }
size
Write out results.
void setLastBlock(bool last_block)
void setValid(bool valid)
void setEnabled(bool enabled)
void setBoardId(unsigned int board_id)
void setSize(unsigned int size)
void setAMCNumber(unsigned int amc_number)
void setLengthCorrect(bool length_correct)
void setBlockNumber(unsigned int block_number)
std::uint64_t record_
void setPresent(bool present)
void setCRCOk(bool crc_ok)
void setFirstBlock(bool first_block)

Member Function Documentation

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

Referenced by AMCHeader().

void rpcamc13::AMCHeader::setBlockNumber ( unsigned int  block_number)

Referenced by AMCHeader().

void rpcamc13::AMCHeader::setBoardId ( unsigned int  board_id)

Referenced by AMCHeader().

void rpcamc13::AMCHeader::setCRCOk ( bool  crc_ok)
void rpcamc13::AMCHeader::setEnabled ( bool  enabled)
void rpcamc13::AMCHeader::setFirstBlock ( bool  first_block)

Referenced by AMCHeader().

void rpcamc13::AMCHeader::setLastBlock ( bool  last_block)

Referenced by AMCHeader().

void rpcamc13::AMCHeader::setLengthCorrect ( bool  length_correct)
void rpcamc13::AMCHeader::setPresent ( bool  present)

Referenced by AMCHeader().

void rpcamc13::AMCHeader::setSize ( unsigned int  size)

Referenced by AMCHeader().

void rpcamc13::AMCHeader::setValid ( bool  valid)

Referenced by AMCHeader().

Member Data Documentation

std::uint64_t const rpcamc13::AMCHeader::amc_number_mask_ = 0x00000000000f0000
staticprotected

Definition at line 92 of file RPCAMC13Record.h.

unsigned int const rpcamc13::AMCHeader::amc_number_offset_ = 16
staticprotected

Definition at line 97 of file RPCAMC13Record.h.

std::uint64_t const rpcamc13::AMCHeader::block_number_mask_ = 0x000000000ff00000
staticprotected

Definition at line 91 of file RPCAMC13Record.h.

unsigned int const rpcamc13::AMCHeader::block_number_offset_ = 20
staticprotected

Definition at line 96 of file RPCAMC13Record.h.

std::uint64_t const rpcamc13::AMCHeader::board_id_mask_ = 0x000000000000ffff
staticprotected

Definition at line 93 of file RPCAMC13Record.h.

unsigned int const rpcamc13::AMCHeader::board_id_offset_ = 0
staticprotected

Definition at line 98 of file RPCAMC13Record.h.

std::uint64_t const rpcamc13::AMCHeader::crc_ok_mask_ = 0x0100000000000000
staticprotected

Definition at line 89 of file RPCAMC13Record.h.

std::uint64_t const rpcamc13::AMCHeader::enabled_mask_ = 0x0800000000000000
staticprotected

Definition at line 86 of file RPCAMC13Record.h.

std::uint64_t const rpcamc13::AMCHeader::length_incorrect_mask_ = 0x4000000000000000
staticprotected

Definition at line 83 of file RPCAMC13Record.h.

std::uint64_t const rpcamc13::AMCHeader::more_blocks_mask_ = 0x2000000000000000
staticprotected

Definition at line 84 of file RPCAMC13Record.h.

std::uint64_t const rpcamc13::AMCHeader::present_mask_ = 0x0400000000000000
staticprotected

Definition at line 87 of file RPCAMC13Record.h.

std::uint64_t rpcamc13::AMCHeader::record_
protected

Definition at line 149 of file RPCAMC13Record.h.

std::uint64_t const rpcamc13::AMCHeader::segmented_mask_ = 0x1000000000000000
staticprotected

Definition at line 85 of file RPCAMC13Record.h.

unsigned int const rpcamc13::AMCHeader::size_limit_ = 0x1400
staticprotected

Definition at line 100 of file RPCAMC13Record.h.

std::uint64_t const rpcamc13::AMCHeader::size_mask_ = 0x00ffffff00000000
staticprotected

Definition at line 90 of file RPCAMC13Record.h.

unsigned int const rpcamc13::AMCHeader::size_max_ = 0x1000
staticprotected

Definition at line 101 of file RPCAMC13Record.h.

unsigned int const rpcamc13::AMCHeader::size_offset_ = 32
staticprotected

Definition at line 95 of file RPCAMC13Record.h.

std::uint64_t const rpcamc13::AMCHeader::valid_mask_ = 0x0200000000000000
staticprotected

Definition at line 88 of file RPCAMC13Record.h.