CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Attributes | Protected Attributes
rpctwinmux::TwinMuxHeader Class Reference

#include <RPCTwinMuxRecord.h>

Public Member Functions

unsigned int getAMCNumber () const
 
unsigned int getBoardId () const
 
unsigned int getBXCounter () const
 
unsigned int getDataLength () const
 
unsigned int getDTBXWindow () const
 
unsigned int getEventCounter () const
 
unsigned int getHOBXWindow () const
 
unsigned int getOrbitCounter () const
 
std::uint64_t const * getRecord () const
 
int getRPCBXMax () const
 
int getRPCBXMin () const
 
bool hasDTBXWindow () const
 
bool hasHOBXWindow () const
 
bool hasRPCBXWindow () const
 
void reset ()
 
void set (unsigned int nword, std::uint64_t const word)
 
void setAMCNumber (unsigned int amc_number)
 
void setBoardId (unsigned int board_id)
 
void setBXCounter (unsigned int bx_counter)
 
void setDataLength (unsigned int data_length)
 
void setDTBXWindow (unsigned int bx_window=0x1f)
 
void setEventCounter (unsigned int event_counter)
 
void setHOBXWindow (unsigned int bx_window=0x7)
 
void setOrbitCounter (unsigned int orbit_counter)
 
void setRPCBXWindow (int bx_min=10, int bx_max=5)
 
 TwinMuxHeader ()
 
 TwinMuxHeader (std::uint64_t const record[2])
 
 TwinMuxHeader (unsigned int amc_number, unsigned int event_counter, unsigned int bx_counter, unsigned int data_length, unsigned int orbit_counter, unsigned int board_id, unsigned int dt_bx_window=0x1f, int rpc_bx_min=10, int rpc_bx_max=5, unsigned int ho_bx_window=0x7)
 

Static Public Attributes

static std::uint64_t const amc_number_mask_ = 0x0f00000000000000
 
static unsigned int const amc_number_offset_ = 56
 
static std::uint64_t const board_id_mask_ = 0x000000000000ffff
 
static unsigned int const board_id_offset_ = 0
 
static std::uint64_t const bx_counter_mask_ = 0x00000000fff00000
 
static unsigned int const bx_counter_offset_ = 20
 
static std::uint64_t const data_length_mask_ = 0x00000000000fffff
 
static unsigned int const data_length_offset_ = 0
 
static std::uint64_t const dt_bx_window_mask_ = 0x0000001f00000000
 
static unsigned int const dt_bx_window_offset_ = 32
 
static std::uint64_t const event_counter_mask_ = 0x00ffffff00000000
 
static unsigned int const event_counter_offset_ = 32
 
static std::uint64_t const ho_bx_window_mask_ = 0x00001c0000000000
 
static unsigned int const ho_bx_window_offset_ = 42
 
static std::uint64_t const orbit_counter_mask_ = 0x00000000ffff0000
 
static unsigned int const orbit_counter_offset_ = 16
 
static std::uint64_t const rpc_bx_window_mask_ = 0x000003e000000000
 
static unsigned int const rpc_bx_window_offset_ = 37
 

Protected Attributes

std::uint64_t record_ [2]
 

Detailed Description

Definition at line 170 of file RPCTwinMuxRecord.h.

Constructor & Destructor Documentation

◆ TwinMuxHeader() [1/3]

rpctwinmux::TwinMuxHeader::TwinMuxHeader ( )

Definition at line 55 of file RPCTwinMuxRecord.cc.

References dt_bx_window_mask_, ho_bx_window_mask_, record_, and rpc_bx_window_mask_.

55  {
56  record_[0] = 0x0;
58  }
static std::uint64_t const ho_bx_window_mask_
static std::uint64_t const dt_bx_window_mask_
static std::uint64_t const rpc_bx_window_mask_

◆ TwinMuxHeader() [2/3]

rpctwinmux::TwinMuxHeader::TwinMuxHeader ( std::uint64_t const  record[2])

Definition at line 60 of file RPCTwinMuxRecord.cc.

References Hcal_FrontierConditions_cff::record, and record_.

60  {
61  record_[0] = record[0];
62  record_[1] = record[1];
63  }

◆ TwinMuxHeader() [3/3]

rpctwinmux::TwinMuxHeader::TwinMuxHeader ( unsigned int  amc_number,
unsigned int  event_counter,
unsigned int  bx_counter,
unsigned int  data_length,
unsigned int  orbit_counter,
unsigned int  board_id,
unsigned int  dt_bx_window = 0x1f,
int  rpc_bx_min = 10,
int  rpc_bx_max = 5,
unsigned int  ho_bx_window = 0x7 
)

Definition at line 65 of file RPCTwinMuxRecord.cc.

References dt_bx_window_mask_, ho_bx_window_mask_, record_, rpc_bx_window_mask_, setAMCNumber(), setBoardId(), setBXCounter(), setDataLength(), setDTBXWindow(), setEventCounter(), setHOBXWindow(), setOrbitCounter(), and setRPCBXWindow().

74  {
75  record_[0] = 0x0;
77 
78  setAMCNumber(amc_number);
79  setEventCounter(event_counter);
80  setBXCounter(bx_counter);
81  setDataLength(data_length);
82 
83  setOrbitCounter(orbit_counter);
84  setBoardId(board_id);
85 
86  setDTBXWindow(dt_bx_window);
87  setRPCBXWindow(rpc_bx_min, rpc_bx_max);
88  setHOBXWindow(ho_bx_window);
89  }
void setBoardId(unsigned int board_id)
static std::uint64_t const ho_bx_window_mask_
void setBXCounter(unsigned int bx_counter)
void setDataLength(unsigned int data_length)
void setHOBXWindow(unsigned int bx_window=0x7)
void setRPCBXWindow(int bx_min=10, int bx_max=5)
void setDTBXWindow(unsigned int bx_window=0x1f)
static std::uint64_t const dt_bx_window_mask_
void setOrbitCounter(unsigned int orbit_counter)
void setAMCNumber(unsigned int amc_number)
void setEventCounter(unsigned int event_counter)
static std::uint64_t const rpc_bx_window_mask_

Member Function Documentation

◆ getAMCNumber()

unsigned int rpctwinmux::TwinMuxHeader::getAMCNumber ( ) const

◆ getBoardId()

unsigned int rpctwinmux::TwinMuxHeader::getBoardId ( ) const

◆ getBXCounter()

unsigned int rpctwinmux::TwinMuxHeader::getBXCounter ( ) const

◆ getDataLength()

unsigned int rpctwinmux::TwinMuxHeader::getDataLength ( ) const

◆ getDTBXWindow()

unsigned int rpctwinmux::TwinMuxHeader::getDTBXWindow ( ) const

◆ getEventCounter()

unsigned int rpctwinmux::TwinMuxHeader::getEventCounter ( ) const

◆ getHOBXWindow()

unsigned int rpctwinmux::TwinMuxHeader::getHOBXWindow ( ) const

◆ getOrbitCounter()

unsigned int rpctwinmux::TwinMuxHeader::getOrbitCounter ( ) const

◆ getRecord()

std::uint64_t const* rpctwinmux::TwinMuxHeader::getRecord ( ) const

◆ getRPCBXMax()

int rpctwinmux::TwinMuxHeader::getRPCBXMax ( ) const

◆ getRPCBXMin()

int rpctwinmux::TwinMuxHeader::getRPCBXMin ( ) const

◆ hasDTBXWindow()

bool rpctwinmux::TwinMuxHeader::hasDTBXWindow ( ) const

◆ hasHOBXWindow()

bool rpctwinmux::TwinMuxHeader::hasHOBXWindow ( ) const

◆ hasRPCBXWindow()

bool rpctwinmux::TwinMuxHeader::hasRPCBXWindow ( ) const

◆ reset()

void rpctwinmux::TwinMuxHeader::reset ( )

◆ set()

void rpctwinmux::TwinMuxHeader::set ( unsigned int  nword,
std::uint64_t const  word 
)

◆ setAMCNumber()

void rpctwinmux::TwinMuxHeader::setAMCNumber ( unsigned int  amc_number)

Referenced by TwinMuxHeader().

◆ setBoardId()

void rpctwinmux::TwinMuxHeader::setBoardId ( unsigned int  board_id)

Referenced by TwinMuxHeader().

◆ setBXCounter()

void rpctwinmux::TwinMuxHeader::setBXCounter ( unsigned int  bx_counter)

Referenced by TwinMuxHeader().

◆ setDataLength()

void rpctwinmux::TwinMuxHeader::setDataLength ( unsigned int  data_length)

Referenced by TwinMuxHeader().

◆ setDTBXWindow()

void rpctwinmux::TwinMuxHeader::setDTBXWindow ( unsigned int  bx_window = 0x1f)

Referenced by TwinMuxHeader().

◆ setEventCounter()

void rpctwinmux::TwinMuxHeader::setEventCounter ( unsigned int  event_counter)

Referenced by TwinMuxHeader().

◆ setHOBXWindow()

void rpctwinmux::TwinMuxHeader::setHOBXWindow ( unsigned int  bx_window = 0x7)

Referenced by TwinMuxHeader().

◆ setOrbitCounter()

void rpctwinmux::TwinMuxHeader::setOrbitCounter ( unsigned int  orbit_counter)

Referenced by TwinMuxHeader().

◆ setRPCBXWindow()

void rpctwinmux::TwinMuxHeader::setRPCBXWindow ( int  bx_min = 10,
int  bx_max = 5 
)

Member Data Documentation

◆ amc_number_mask_

std::uint64_t const rpctwinmux::TwinMuxHeader::amc_number_mask_ = 0x0f00000000000000
static

Definition at line 173 of file RPCTwinMuxRecord.h.

◆ amc_number_offset_

unsigned int const rpctwinmux::TwinMuxHeader::amc_number_offset_ = 56
static

Definition at line 178 of file RPCTwinMuxRecord.h.

◆ board_id_mask_

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

Definition at line 185 of file RPCTwinMuxRecord.h.

◆ board_id_offset_

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

Definition at line 188 of file RPCTwinMuxRecord.h.

◆ bx_counter_mask_

std::uint64_t const rpctwinmux::TwinMuxHeader::bx_counter_mask_ = 0x00000000fff00000
static

Definition at line 175 of file RPCTwinMuxRecord.h.

◆ bx_counter_offset_

unsigned int const rpctwinmux::TwinMuxHeader::bx_counter_offset_ = 20
static

Definition at line 180 of file RPCTwinMuxRecord.h.

◆ data_length_mask_

std::uint64_t const rpctwinmux::TwinMuxHeader::data_length_mask_ = 0x00000000000fffff
static

Definition at line 176 of file RPCTwinMuxRecord.h.

◆ data_length_offset_

unsigned int const rpctwinmux::TwinMuxHeader::data_length_offset_ = 0
static

Definition at line 181 of file RPCTwinMuxRecord.h.

◆ dt_bx_window_mask_

std::uint64_t const rpctwinmux::TwinMuxHeader::dt_bx_window_mask_ = 0x0000001f00000000
static

Definition at line 190 of file RPCTwinMuxRecord.h.

Referenced by TwinMuxHeader().

◆ dt_bx_window_offset_

unsigned int const rpctwinmux::TwinMuxHeader::dt_bx_window_offset_ = 32
static

Definition at line 194 of file RPCTwinMuxRecord.h.

◆ event_counter_mask_

std::uint64_t const rpctwinmux::TwinMuxHeader::event_counter_mask_ = 0x00ffffff00000000
static

Definition at line 174 of file RPCTwinMuxRecord.h.

◆ event_counter_offset_

unsigned int const rpctwinmux::TwinMuxHeader::event_counter_offset_ = 32
static

Definition at line 179 of file RPCTwinMuxRecord.h.

◆ ho_bx_window_mask_

std::uint64_t const rpctwinmux::TwinMuxHeader::ho_bx_window_mask_ = 0x00001c0000000000
static

Definition at line 192 of file RPCTwinMuxRecord.h.

Referenced by TwinMuxHeader().

◆ ho_bx_window_offset_

unsigned int const rpctwinmux::TwinMuxHeader::ho_bx_window_offset_ = 42
static

Definition at line 196 of file RPCTwinMuxRecord.h.

◆ orbit_counter_mask_

std::uint64_t const rpctwinmux::TwinMuxHeader::orbit_counter_mask_ = 0x00000000ffff0000
static

Definition at line 184 of file RPCTwinMuxRecord.h.

◆ orbit_counter_offset_

unsigned int const rpctwinmux::TwinMuxHeader::orbit_counter_offset_ = 16
static

Definition at line 187 of file RPCTwinMuxRecord.h.

◆ record_

std::uint64_t rpctwinmux::TwinMuxHeader::record_[2]
protected

Definition at line 247 of file RPCTwinMuxRecord.h.

Referenced by TwinMuxHeader().

◆ rpc_bx_window_mask_

std::uint64_t const rpctwinmux::TwinMuxHeader::rpc_bx_window_mask_ = 0x000003e000000000
static

Definition at line 191 of file RPCTwinMuxRecord.h.

Referenced by TwinMuxHeader().

◆ rpc_bx_window_offset_

unsigned int const rpctwinmux::TwinMuxHeader::rpc_bx_window_offset_ = 37
static

Definition at line 195 of file RPCTwinMuxRecord.h.