CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 int const l1a_type_ = 0xd0
 

Static Protected Attributes

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

Definition at line 5 of file RPCMP7Record.cc.

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

5  {
6  record_[0] = 0x0;
8  }
std::uint64_t record_[2]
Definition: RPCAMCRecord.h:62
static unsigned int const l1a_type_
Definition: RPCMP7Record.h:12
static unsigned int const event_type_offset_
Definition: RPCMP7Record.h:17
unsigned long long uint64_t
Definition: Time.h:13
Header::Header ( std::uint64_t const  record[2])
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.

References setEventType().

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

Reimplemented from rpcamc::Header.

Definition at line 23 of file RPCMP7Record.cc.

23 {}

Member Function Documentation

unsigned int rpcmp7::Header::getEventType ( ) const
void rpcmp7::Header::reset ( )
overridevirtual

Reimplemented from rpcamc::Header.

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

Referenced by Header().

Member Data Documentation

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

Definition at line 16 of file RPCMP7Record.h.

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

Definition at line 17 of file RPCMP7Record.h.

Referenced by Header().

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

Definition at line 12 of file RPCMP7Record.h.

Referenced by Header().