CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Attributes | Static Protected Attributes
rpcmp7::Header Class Reference

#include <RPCMP7Record.h>

Inheritance diagram for rpcmp7::Header:
rpcamc::Header

Public Member Functions

unsigned int getEventType () const
 
 Header ()
 
 Header (std::uint64_t const record[2])
 
 Header (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 event_type=l1a_type_)
 
void reset () override
 
void setEventType (unsigned int event_type)
 
 ~Header () override
 
- Public Member Functions inherited from rpcamc::Header
unsigned int getAMCNumber () const
 
unsigned int getBoardId () const
 
unsigned int getBXCounter () const
 
unsigned int getDataLength () const
 
unsigned int getEventCounter () const
 
unsigned int getOrbitCounter () const
 
std::uint64_t const * getRecord () const
 
bool hasDataLength () const
 
 Header ()
 
 Header (std::uint64_t const record[2])
 
 Header (unsigned int amc_number, unsigned int event_counter, unsigned int bx_counter, unsigned int data_length, unsigned int orbit_counter, unsigned int board_id)
 
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 setEventCounter (unsigned int event_counter)
 
void setOrbitCounter (unsigned int orbit_counter)
 

Static Public Attributes

static unsigned const int l1a_type_ = 0xd0
 

Static Protected Attributes

static const std::uint64_t event_type_mask_ = 0x0000ffff00000000
 
static unsigned const int event_type_offset_ = 32
 
- Static Protected Attributes inherited from rpcamc::Header
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 event_counter_mask_ = 0x00ffffff00000000
 
static unsigned const int event_counter_offset_ = 32
 
static const std::uint64_t orbit_counter_mask_ = 0x00000000ffff0000
 
static unsigned const int orbit_counter_offset_ = 16
 

Additional Inherited Members

- Protected Attributes inherited from rpcamc::Header
std::uint64_t record_ [2]
 

Detailed Description

Definition at line 10 of file RPCMP7Record.h.

Constructor & Destructor Documentation

◆ Header() [1/3]

Header::Header ( )

Definition at line 5 of file RPCMP7Record.cc.

5  {
6  record_[0] = 0x0;
8  }

References event_type_offset_, l1a_type_, and rpcamc::Header::record_.

◆ Header() [2/3]

Header::Header ( std::uint64_t const  record[2])

Definition at line 10 of file RPCMP7Record.cc.

◆ Header() [3/3]

Header::Header ( 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  event_type = l1a_type_ 
)

Definition at line 12 of file RPCMP7Record.cc.

19  : rpcamc::Header(amc_number, event_counter, bx_counter, data_length, orbit_counter, board_id) {
20  setEventType(event_type);
21  }

References setEventType().

◆ ~Header()

Header::~Header ( )
overridevirtual

Reimplemented from rpcamc::Header.

Definition at line 23 of file RPCMP7Record.cc.

23 {}

Member Function Documentation

◆ getEventType()

unsigned int rpcmp7::Header::getEventType ( ) const

◆ reset()

void rpcmp7::Header::reset ( )
overridevirtual

Reimplemented from rpcamc::Header.

◆ setEventType()

void rpcmp7::Header::setEventType ( unsigned int  event_type)

Referenced by Header().

Member Data Documentation

◆ event_type_mask_

const std::uint64_t rpcmp7::Header::event_type_mask_ = 0x0000ffff00000000
staticprotected

Definition at line 16 of file RPCMP7Record.h.

◆ event_type_offset_

unsigned const int rpcmp7::Header::event_type_offset_ = 32
staticprotected

Definition at line 17 of file RPCMP7Record.h.

Referenced by Header().

◆ l1a_type_

unsigned const int rpcmp7::Header::l1a_type_ = 0xd0
static

Definition at line 12 of file RPCMP7Record.h.

Referenced by Header().

rpcmp7::Header::l1a_type_
static unsigned const int l1a_type_
Definition: RPCMP7Record.h:12
rpcamc::Header
Definition: RPCAMCRecord.h:8
GlobalPosition_Frontier_DevDB_cff.record
record
Definition: GlobalPosition_Frontier_DevDB_cff.py:10
rpcmp7::Header::setEventType
void setEventType(unsigned int event_type)
rpcmp7::Header::event_type_offset_
static unsigned const int event_type_offset_
Definition: RPCMP7Record.h:17
rpcamc::Header::record_
std::uint64_t record_[2]
Definition: RPCAMCRecord.h:62
cond::uint64_t
unsigned long long uint64_t
Definition: Time.h:13