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 std::uint32_t const bc0_mask_ = 0x01000000
 
static unsigned int const bc0_offset_ = 24
 
static std::uint32_t const bcn_mask_ = 0xfe000000
 
static unsigned int const bcn_offset_ = 25
 
static std::uint32_t const connector_mask_ = 0x00000e00
 
static unsigned int const connector_offset_ = 9
 
static std::uint32_t const delay_mask_ = 0x00007000
 
static unsigned int const delay_offset_ = 12
 
static std::uint32_t const eod_mask_ = 0x00008000
 
static unsigned int const eod_offset_ = 15
 
static std::uint32_t const link_board_mask_ = 0x00060000
 
static unsigned int const link_board_offset_ = 17
 
static std::uint32_t const partition_data_mask_ = 0x000000ff
 
static unsigned int const partition_data_offset_ = 0
 
static std::uint32_t const partition_mask_ = 0x00000100
 
static unsigned int const 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.

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

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

13  : record_(0x00) {
14  setBCN(bcn);
15  setBC0(bc0);
16  setLinkBoard(link_board);
17  setEOD(eod);
18  setDelay(delay);
19  setConnector(connector);
22 }
void setPartitionData(std::uint8_t data)
void setPartition(unsigned int partition)
void setBCN(unsigned int bcn)
void setDelay(unsigned int delay)
void setLinkBoard(unsigned int link_board)
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80
std::uint32_t record_
Definition: RPCLBRecord.h:65
void setEOD(bool eod)
void setConnector(unsigned int connector)
void setBC0(bool bc0)

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_

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

Definition at line 11 of file RPCLBRecord.h.

◆ bc0_offset_

unsigned int const RPCLBRecord::bc0_offset_ = 24
static

Definition at line 20 of file RPCLBRecord.h.

◆ bcn_mask_

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

Definition at line 10 of file RPCLBRecord.h.

◆ bcn_offset_

unsigned int const RPCLBRecord::bcn_offset_ = 25
static

Definition at line 19 of file RPCLBRecord.h.

◆ connector_mask_

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

Definition at line 15 of file RPCLBRecord.h.

◆ connector_offset_

unsigned int const RPCLBRecord::connector_offset_ = 9
static

Definition at line 24 of file RPCLBRecord.h.

◆ delay_mask_

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

Definition at line 14 of file RPCLBRecord.h.

◆ delay_offset_

unsigned int const RPCLBRecord::delay_offset_ = 12
static

Definition at line 23 of file RPCLBRecord.h.

◆ eod_mask_

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

Definition at line 13 of file RPCLBRecord.h.

◆ eod_offset_

unsigned int const RPCLBRecord::eod_offset_ = 15
static

Definition at line 22 of file RPCLBRecord.h.

◆ link_board_mask_

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

Definition at line 12 of file RPCLBRecord.h.

◆ link_board_offset_

unsigned int const RPCLBRecord::link_board_offset_ = 17
static

Definition at line 21 of file RPCLBRecord.h.

◆ partition_data_mask_

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

Definition at line 17 of file RPCLBRecord.h.

◆ partition_data_offset_

unsigned int const RPCLBRecord::partition_data_offset_ = 0
static

Definition at line 26 of file RPCLBRecord.h.

◆ partition_mask_

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

Definition at line 16 of file RPCLBRecord.h.

◆ partition_offset_

unsigned int const 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.