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 (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)
 
 AMCHeader (std::uint64_t const record=enabled_mask_|present_mask_|valid_mask_|crc_ok_mask_)
 
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 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_incorrect_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 unsigned const int size_limit_ = 0x1400
 
static const std::uint64_t size_mask_ = 0x00ffffff00000000
 
static unsigned const int size_max_ = 0x1000
 
static unsigned const int size_offset_ = 32
 
static const std::uint64_t valid_mask_ = 0x0200000000000000
 

Detailed Description

Definition at line 75 of file RPCAMC13Record.h.

Constructor & Destructor Documentation

◆ AMCHeader() [1/2]

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

Definition at line 23 of file RPCAMC13Record.cc.

23 : record_(record) {}

◆ AMCHeader() [2/2]

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 25 of file RPCAMC13Record.cc.

36  : record_(0x0) {
37  setLengthCorrect(length_correct);
38  setLastBlock(last_block);
39  setFirstBlock(first_block);
41  setPresent(present);
42  setValid(valid);
43  setCRCOk(crc_ok);
44  setSize(size);
45  setBlockNumber(block_number);
46  setAMCNumber(amc_number);
47  setBoardId(board_id);
48  }

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 rpcamc13::AMCHeader::getAMCNumber ( ) const

◆ getBlockNumber()

unsigned int rpcamc13::AMCHeader::getBlockNumber ( ) const

◆ getBoardId()

unsigned int rpcamc13::AMCHeader::getBoardId ( ) const

◆ getRecord()

std::uint64_t const& rpcamc13::AMCHeader::getRecord ( ) const

◆ getSize()

unsigned int rpcamc13::AMCHeader::getSize ( ) const

◆ getSizeInBlock()

unsigned int rpcamc13::AMCHeader::getSizeInBlock ( ) const

◆ hasTotalSize()

bool rpcamc13::AMCHeader::hasTotalSize ( ) const

◆ isCRCOk()

bool rpcamc13::AMCHeader::isCRCOk ( ) const

◆ isEnabled()

bool rpcamc13::AMCHeader::isEnabled ( ) const

◆ isFirstBlock()

bool rpcamc13::AMCHeader::isFirstBlock ( ) const

◆ isLastBlock()

bool rpcamc13::AMCHeader::isLastBlock ( ) const

◆ isLengthCorrect()

bool rpcamc13::AMCHeader::isLengthCorrect ( ) const

◆ isPresent()

bool rpcamc13::AMCHeader::isPresent ( ) const

◆ isValid()

bool rpcamc13::AMCHeader::isValid ( ) const

◆ reset()

void rpcamc13::AMCHeader::reset ( )

◆ set()

void rpcamc13::AMCHeader::set ( std::uint64_t const  record)

◆ setAMCNumber()

void rpcamc13::AMCHeader::setAMCNumber ( unsigned int  amc_number)

Referenced by AMCHeader().

◆ setBlockNumber()

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

Referenced by AMCHeader().

◆ setBoardId()

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

Referenced by AMCHeader().

◆ setCRCOk()

void rpcamc13::AMCHeader::setCRCOk ( bool  crc_ok)

Referenced by AMCHeader().

◆ setEnabled()

void rpcamc13::AMCHeader::setEnabled ( bool  enabled)

Referenced by AMCHeader().

◆ setFirstBlock()

void rpcamc13::AMCHeader::setFirstBlock ( bool  first_block)

Referenced by AMCHeader().

◆ setLastBlock()

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

Referenced by AMCHeader().

◆ setLengthCorrect()

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

Referenced by AMCHeader().

◆ setPresent()

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

Referenced by AMCHeader().

◆ setSize()

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

Referenced by AMCHeader().

◆ setValid()

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

Referenced by AMCHeader().

Member Data Documentation

◆ amc_number_mask_

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

Definition at line 86 of file RPCAMC13Record.h.

◆ amc_number_offset_

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

Definition at line 91 of file RPCAMC13Record.h.

◆ block_number_mask_

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

Definition at line 85 of file RPCAMC13Record.h.

◆ block_number_offset_

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

Definition at line 90 of file RPCAMC13Record.h.

◆ board_id_mask_

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

Definition at line 87 of file RPCAMC13Record.h.

◆ board_id_offset_

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

Definition at line 92 of file RPCAMC13Record.h.

◆ crc_ok_mask_

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

Definition at line 83 of file RPCAMC13Record.h.

◆ enabled_mask_

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

Definition at line 80 of file RPCAMC13Record.h.

◆ length_incorrect_mask_

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

Definition at line 77 of file RPCAMC13Record.h.

◆ more_blocks_mask_

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

Definition at line 78 of file RPCAMC13Record.h.

◆ present_mask_

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

Definition at line 81 of file RPCAMC13Record.h.

◆ record_

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

Definition at line 143 of file RPCAMC13Record.h.

◆ segmented_mask_

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

Definition at line 79 of file RPCAMC13Record.h.

◆ size_limit_

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

Definition at line 94 of file RPCAMC13Record.h.

◆ size_mask_

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

Definition at line 84 of file RPCAMC13Record.h.

◆ size_max_

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

Definition at line 95 of file RPCAMC13Record.h.

◆ size_offset_

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

Definition at line 89 of file RPCAMC13Record.h.

◆ valid_mask_

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

Definition at line 82 of file RPCAMC13Record.h.

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