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 177 of file RPCTwinMuxRecord.h.

Constructor & Destructor Documentation

rpctwinmux::TwinMuxHeader::TwinMuxHeader ( )

Definition at line 67 of file RPCTwinMuxRecord.cc.

References rpctwinmux::BlockAMCContent::record_.

68 {
69  record_[0] = 0x0;
71 }
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_
rpctwinmux::TwinMuxHeader::TwinMuxHeader ( std::uint64_t const  record[2])

Definition at line 73 of file RPCTwinMuxRecord.cc.

References rpctwinmux::BlockAMCContent::record_.

74 {
75  record_[0] = record[0];
76  record_[1] = record[1];
77 }
JetCorrectorParameters::Record record
Definition: classes.h:7
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 79 of file RPCTwinMuxRecord.cc.

References rpctwinmux::BlockAMCContent::record_, rpctwinmux::BlockAMCContent::setAMCNumber(), and rpctwinmux::BlockAMCContent::setBoardId().

88 {
89  record_[0] = 0x0;
91 
92  setAMCNumber(amc_number);
93  setEventCounter(event_counter);
94  setBXCounter(bx_counter);
95  setDataLength(data_length);
96 
97  setOrbitCounter(orbit_counter);
98  setBoardId(board_id);
99 
100  setDTBXWindow(dt_bx_window);
101  setRPCBXWindow(rpc_bx_min, rpc_bx_max);
102  setHOBXWindow(ho_bx_window);
103 }
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

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

Member Data Documentation

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

Definition at line 181 of file RPCTwinMuxRecord.h.

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

Definition at line 186 of file RPCTwinMuxRecord.h.

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

Definition at line 193 of file RPCTwinMuxRecord.h.

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

Definition at line 196 of file RPCTwinMuxRecord.h.

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

Definition at line 183 of file RPCTwinMuxRecord.h.

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

Definition at line 188 of file RPCTwinMuxRecord.h.

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

Definition at line 184 of file RPCTwinMuxRecord.h.

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

Definition at line 189 of file RPCTwinMuxRecord.h.

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

Definition at line 198 of file RPCTwinMuxRecord.h.

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

Definition at line 202 of file RPCTwinMuxRecord.h.

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

Definition at line 182 of file RPCTwinMuxRecord.h.

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

Definition at line 187 of file RPCTwinMuxRecord.h.

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

Definition at line 200 of file RPCTwinMuxRecord.h.

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

Definition at line 204 of file RPCTwinMuxRecord.h.

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

Definition at line 192 of file RPCTwinMuxRecord.h.

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

Definition at line 195 of file RPCTwinMuxRecord.h.

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

Definition at line 253 of file RPCTwinMuxRecord.h.

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

Definition at line 199 of file RPCTwinMuxRecord.h.

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

Definition at line 203 of file RPCTwinMuxRecord.h.