CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Attributes | Protected Attributes
RPCLBRecord Class Reference

#include <RPCLBRecord.h>

Public Member Functions

unsigned int getBCN () const
 
unsigned int getConnector () const
 
unsigned int getDelay () const
 
unsigned int getLinkBoard () const
 
unsigned int getPartition () const
 
std::uint8_t getPartitionData () const
 
std::uint32_t const & getRecord () const
 
bool isBC0 () const
 
bool isEOD () const
 
bool operator< (RPCLBRecord const &rhs) const
 
void reset ()
 
 RPCLBRecord (std::uint32_t const record=0x0)
 
 RPCLBRecord (unsigned int bcn, bool bc0, unsigned int link_board, bool eod, unsigned int delay, unsigned int connector, unsigned int partition, std::uint8_t data)
 
void set (std::uint32_t const record=0x0)
 
void setBC0 (bool bc0)
 
void setBCN (unsigned int bcn)
 
void setConnector (unsigned int connector)
 
void setDelay (unsigned int delay)
 
void setEOD (bool eod)
 
void setLinkBoard (unsigned int link_board)
 
void setPartition (unsigned int partition)
 
void setPartitionData (std::uint8_t data)
 

Static Public Attributes

static const std::uint32_t bc0_mask_ = 0x01000000
 
static unsigned const int bc0_offset_ = 24
 
static const std::uint32_t bcn_mask_ = 0xfe000000
 
static unsigned const int bcn_offset_ = 25
 
static const std::uint32_t connector_mask_ = 0x00000e00
 
static unsigned const int connector_offset_ = 9
 
static const std::uint32_t delay_mask_ = 0x00007000
 
static unsigned const int delay_offset_ = 12
 
static const std::uint32_t eod_mask_ = 0x00008000
 
static unsigned const int eod_offset_ = 15
 
static const std::uint32_t link_board_mask_ = 0x00060000
 
static unsigned const int link_board_offset_ = 17
 
static const std::uint32_t partition_data_mask_ = 0x000000ff
 
static unsigned const int partition_data_offset_ = 0
 
static const std::uint32_t partition_mask_ = 0x00000100
 
static unsigned const int partition_offset_ = 8
 

Protected Attributes

std::uint32_t record_
 

Detailed Description

Definition at line 6 of file RPCLBRecord.h.

Constructor & Destructor Documentation

◆ RPCLBRecord() [1/2]

RPCLBRecord::RPCLBRecord ( std::uint32_t const  record = 0x0)

Definition at line 3 of file RPCLBRecord.cc.

3 : record_(record) {}

◆ RPCLBRecord() [2/2]

RPCLBRecord::RPCLBRecord ( unsigned int  bcn,
bool  bc0,
unsigned int  link_board,
bool  eod,
unsigned int  delay,
unsigned int  connector,
unsigned int  partition,
std::uint8_t  data 
)

Definition at line 5 of file RPCLBRecord.cc.

13  : record_(0x00) {
14  setBCN(bcn);
15  setBC0(bc0);
16  setLinkBoard(link_board);
17  setEOD(eod);
18  setDelay(delay);
19  setConnector(connector);
20  setPartition(partition);
22 }

References data, phase2TrackerDigitizer_cfi::delay, setBC0(), setBCN(), setConnector(), setDelay(), setEOD(), setLinkBoard(), setPartition(), and setPartitionData().

Member Function Documentation

◆ getBCN()

unsigned int RPCLBRecord::getBCN ( ) const

◆ getConnector()

unsigned int RPCLBRecord::getConnector ( ) const

◆ getDelay()

unsigned int RPCLBRecord::getDelay ( ) const

◆ getLinkBoard()

unsigned int RPCLBRecord::getLinkBoard ( ) const

◆ getPartition()

unsigned int RPCLBRecord::getPartition ( ) const

◆ getPartitionData()

std::uint8_t RPCLBRecord::getPartitionData ( ) const

◆ getRecord()

std::uint32_t const& RPCLBRecord::getRecord ( ) const

◆ isBC0()

bool RPCLBRecord::isBC0 ( ) const

◆ isEOD()

bool RPCLBRecord::isEOD ( ) const

◆ operator<()

bool RPCLBRecord::operator< ( RPCLBRecord const &  rhs) const

◆ reset()

void RPCLBRecord::reset ( )

◆ set()

void RPCLBRecord::set ( std::uint32_t const  record = 0x0)

◆ setBC0()

void RPCLBRecord::setBC0 ( bool  bc0)

Referenced by RPCLBRecord().

◆ setBCN()

void RPCLBRecord::setBCN ( unsigned int  bcn)

Referenced by RPCLBRecord().

◆ setConnector()

void RPCLBRecord::setConnector ( unsigned int  connector)

Referenced by RPCLBRecord().

◆ setDelay()

void RPCLBRecord::setDelay ( unsigned int  delay)

Referenced by RPCLBRecord().

◆ setEOD()

void RPCLBRecord::setEOD ( bool  eod)

Referenced by RPCLBRecord().

◆ setLinkBoard()

void RPCLBRecord::setLinkBoard ( unsigned int  link_board)

Referenced by RPCLBRecord().

◆ setPartition()

void RPCLBRecord::setPartition ( unsigned int  partition)

Referenced by RPCLBRecord().

◆ setPartitionData()

void RPCLBRecord::setPartitionData ( std::uint8_t  data)

Referenced by RPCLBRecord().

Member Data Documentation

◆ bc0_mask_

const std::uint32_t RPCLBRecord::bc0_mask_ = 0x01000000
static

Definition at line 11 of file RPCLBRecord.h.

◆ bc0_offset_

unsigned const int RPCLBRecord::bc0_offset_ = 24
static

Definition at line 20 of file RPCLBRecord.h.

◆ bcn_mask_

const std::uint32_t RPCLBRecord::bcn_mask_ = 0xfe000000
static

Definition at line 10 of file RPCLBRecord.h.

◆ bcn_offset_

unsigned const int RPCLBRecord::bcn_offset_ = 25
static

Definition at line 19 of file RPCLBRecord.h.

◆ connector_mask_

const std::uint32_t RPCLBRecord::connector_mask_ = 0x00000e00
static

Definition at line 15 of file RPCLBRecord.h.

◆ connector_offset_

unsigned const int RPCLBRecord::connector_offset_ = 9
static

Definition at line 24 of file RPCLBRecord.h.

◆ delay_mask_

const std::uint32_t RPCLBRecord::delay_mask_ = 0x00007000
static

Definition at line 14 of file RPCLBRecord.h.

◆ delay_offset_

unsigned const int RPCLBRecord::delay_offset_ = 12
static

Definition at line 23 of file RPCLBRecord.h.

◆ eod_mask_

const std::uint32_t RPCLBRecord::eod_mask_ = 0x00008000
static

Definition at line 13 of file RPCLBRecord.h.

◆ eod_offset_

unsigned const int RPCLBRecord::eod_offset_ = 15
static

Definition at line 22 of file RPCLBRecord.h.

◆ link_board_mask_

const std::uint32_t RPCLBRecord::link_board_mask_ = 0x00060000
static

Definition at line 12 of file RPCLBRecord.h.

◆ link_board_offset_

unsigned const int RPCLBRecord::link_board_offset_ = 17
static

Definition at line 21 of file RPCLBRecord.h.

◆ partition_data_mask_

const std::uint32_t RPCLBRecord::partition_data_mask_ = 0x000000ff
static

Definition at line 17 of file RPCLBRecord.h.

◆ partition_data_offset_

unsigned const int RPCLBRecord::partition_data_offset_ = 0
static

Definition at line 26 of file RPCLBRecord.h.

◆ partition_mask_

const std::uint32_t RPCLBRecord::partition_mask_ = 0x00000100
static

Definition at line 16 of file RPCLBRecord.h.

◆ partition_offset_

unsigned const int RPCLBRecord::partition_offset_ = 8
static

Definition at line 25 of file RPCLBRecord.h.

◆ record_

std::uint32_t RPCLBRecord::record_
protected

Definition at line 65 of file RPCLBRecord.h.

RPCLBRecord::setConnector
void setConnector(unsigned int connector)
RPCLBRecord::setPartition
void setPartition(unsigned int partition)
RPCLBRecord::setBCN
void setBCN(unsigned int bcn)
RPCLBRecord::setLinkBoard
void setLinkBoard(unsigned int link_board)
AlCaHarvesting_cff.record
record
Definition: AlCaHarvesting_cff.py:42
RPCLBRecord::setDelay
void setDelay(unsigned int delay)
RPCLBRecord::record_
std::uint32_t record_
Definition: RPCLBRecord.h:65
RPCLBRecord::setEOD
void setEOD(bool eod)
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
phase2TrackerDigitizer_cfi.delay
delay
Definition: phase2TrackerDigitizer_cfi.py:49
RPCLBRecord::setPartitionData
void setPartitionData(std::uint8_t data)
RPCLBRecord::setBC0
void setBC0(bool bc0)