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 ()
 
void setEventType (unsigned int event_type)
 
 ~Header ()
 
- 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_.

6 {
7  record_[0] = 0x0;
9 }
std::uint64_t record_[2]
Definition: RPCAMCRecord.h:63
static unsigned int const l1a_type_
Definition: RPCMP7Record.h:14
static unsigned int const event_type_offset_
Definition: RPCMP7Record.h:19
unsigned long long uint64_t
Definition: Time.h:15
Header::Header ( std::uint64_t const  record[2])

Definition at line 11 of file RPCMP7Record.cc.

13 {}
JetCorrectorParameters::Record record
Definition: classes.h:7
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 15 of file RPCMP7Record.cc.

References setEventType().

22  : rpcamc::Header(amc_number, event_counter, bx_counter, data_length, orbit_counter, board_id)
23 {
24  setEventType(event_type);
25 }
void setEventType(unsigned int event_type)
Header::~Header ( )
virtual

Reimplemented from rpcamc::Header.

Definition at line 27 of file RPCMP7Record.cc.

28 {}

Member Function Documentation

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

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 18 of file RPCMP7Record.h.

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

Definition at line 19 of file RPCMP7Record.h.

Referenced by Header().

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

Definition at line 14 of file RPCMP7Record.h.

Referenced by Header().