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 const std::uint64_t amc_number_mask_ = 0x0f00000000000000
 
static unsigned const int amc_number_offset_ = 56
 
static const std::uint64_t board_id_mask_ = 0x000000000000ffff
 
static unsigned const int board_id_offset_ = 0
 
static const std::uint64_t bx_counter_mask_ = 0x00000000fff00000
 
static unsigned const int bx_counter_offset_ = 20
 
static const std::uint64_t data_length_mask_ = 0x00000000000fffff
 
static unsigned const int data_length_offset_ = 0
 
static const std::uint64_t dt_bx_window_mask_ = 0x0000001f00000000
 
static unsigned const int dt_bx_window_offset_ = 32
 
static const std::uint64_t event_counter_mask_ = 0x00ffffff00000000
 
static unsigned const int event_counter_offset_ = 32
 
static const std::uint64_t ho_bx_window_mask_ = 0x00001c0000000000
 
static unsigned const int ho_bx_window_offset_ = 42
 
static const std::uint64_t orbit_counter_mask_ = 0x00000000ffff0000
 
static unsigned const int orbit_counter_offset_ = 16
 
static const std::uint64_t rpc_bx_window_mask_ = 0x000003e000000000
 
static unsigned const int 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.

55  {
56  record_[0] = 0x0;
58  }

References dt_bx_window_mask_, ho_bx_window_mask_, record_, and rpc_bx_window_mask_.

◆ TwinMuxHeader() [2/3]

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

Definition at line 60 of file RPCTwinMuxRecord.cc.

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

References AlCaHarvesting_cff::record, and record_.

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

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  }

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

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_

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

Definition at line 173 of file RPCTwinMuxRecord.h.

◆ amc_number_offset_

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

Definition at line 178 of file RPCTwinMuxRecord.h.

◆ board_id_mask_

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

Definition at line 185 of file RPCTwinMuxRecord.h.

◆ board_id_offset_

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

Definition at line 188 of file RPCTwinMuxRecord.h.

◆ bx_counter_mask_

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

Definition at line 175 of file RPCTwinMuxRecord.h.

◆ bx_counter_offset_

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

Definition at line 180 of file RPCTwinMuxRecord.h.

◆ data_length_mask_

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

Definition at line 176 of file RPCTwinMuxRecord.h.

◆ data_length_offset_

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

Definition at line 181 of file RPCTwinMuxRecord.h.

◆ dt_bx_window_mask_

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

Definition at line 190 of file RPCTwinMuxRecord.h.

Referenced by TwinMuxHeader().

◆ dt_bx_window_offset_

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

Definition at line 194 of file RPCTwinMuxRecord.h.

◆ event_counter_mask_

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

Definition at line 174 of file RPCTwinMuxRecord.h.

◆ event_counter_offset_

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

Definition at line 179 of file RPCTwinMuxRecord.h.

◆ ho_bx_window_mask_

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

Definition at line 192 of file RPCTwinMuxRecord.h.

Referenced by TwinMuxHeader().

◆ ho_bx_window_offset_

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

Definition at line 196 of file RPCTwinMuxRecord.h.

◆ orbit_counter_mask_

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

Definition at line 184 of file RPCTwinMuxRecord.h.

◆ orbit_counter_offset_

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

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

Definition at line 191 of file RPCTwinMuxRecord.h.

Referenced by TwinMuxHeader().

◆ rpc_bx_window_offset_

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

Definition at line 195 of file RPCTwinMuxRecord.h.

rpctwinmux::TwinMuxHeader::setOrbitCounter
void setOrbitCounter(unsigned int orbit_counter)
rpctwinmux::TwinMuxHeader::setDataLength
void setDataLength(unsigned int data_length)
rpctwinmux::TwinMuxHeader::ho_bx_window_mask_
static const std::uint64_t ho_bx_window_mask_
Definition: RPCTwinMuxRecord.h:192
rpctwinmux::TwinMuxHeader::setEventCounter
void setEventCounter(unsigned int event_counter)
rpctwinmux::TwinMuxHeader::setHOBXWindow
void setHOBXWindow(unsigned int bx_window=0x7)
rpctwinmux::TwinMuxHeader::record_
std::uint64_t record_[2]
Definition: RPCTwinMuxRecord.h:247
rpctwinmux::TwinMuxHeader::setRPCBXWindow
void setRPCBXWindow(int bx_min=10, int bx_max=5)
rpctwinmux::TwinMuxHeader::setAMCNumber
void setAMCNumber(unsigned int amc_number)
AlCaHarvesting_cff.record
record
Definition: AlCaHarvesting_cff.py:42
rpctwinmux::TwinMuxHeader::rpc_bx_window_mask_
static const std::uint64_t rpc_bx_window_mask_
Definition: RPCTwinMuxRecord.h:191
rpctwinmux::TwinMuxHeader::setDTBXWindow
void setDTBXWindow(unsigned int bx_window=0x1f)
rpctwinmux::TwinMuxHeader::setBXCounter
void setBXCounter(unsigned int bx_counter)
rpctwinmux::TwinMuxHeader::dt_bx_window_mask_
static const std::uint64_t dt_bx_window_mask_
Definition: RPCTwinMuxRecord.h:190
rpctwinmux::TwinMuxHeader::setBoardId
void setBoardId(unsigned int board_id)