CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes | Static Private Attributes
l1t::CTP7Payload Class Reference

#include <Block.h>

Inheritance diagram for l1t::CTP7Payload:
l1t::Payload

Public Member Functions

 CTP7Payload (const uint32_t *data, const uint32_t *end)
 
virtual BlockHeader getHeader () override
 
virtual unsigned getHeaderSize () const override
 
- Public Member Functions inherited from l1t::Payload
std::auto_ptr< BlockgetBlock ()
 
unsigned getFirmwareId () const
 
 Payload (const uint32_t *data, const uint32_t *end)
 

Private Attributes

unsigned size_
 

Static Private Attributes

static const unsigned int size_mask = 0xff
 
static const unsigned int size_shift = 16
 

Additional Inherited Members

- Protected Attributes inherited from l1t::Payload
const uint32_t * data_
 
const uint32_t * end_
 
unsigned fw_
 

Detailed Description

Definition at line 91 of file Block.h.

Constructor & Destructor Documentation

l1t::CTP7Payload::CTP7Payload ( const uint32_t *  data,
const uint32_t *  end 
)

Definition at line 55 of file Block.cc.

References l1t::Payload::data_, size_, size_mask, and size_shift.

55  : Payload(data, end)
56  {
57  ++data_;
58  size_ = (*data >> size_shift) & size_mask;
59  ++data_;
60  }
static const unsigned int size_shift
Definition: Block.h:99
unsigned size_
Definition: Block.h:101
#define end
Definition: vmac.h:37
const uint32_t * data_
Definition: Block.h:78
static const unsigned int size_mask
Definition: Block.h:98
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
Payload(const uint32_t *data, const uint32_t *end)
Definition: Block.h:68

Member Function Documentation

BlockHeader l1t::CTP7Payload::getHeader ( )
overridevirtual

Implements l1t::Payload.

Definition at line 63 of file Block.cc.

References l1t::Payload::data_, and size_.

64  {
65  return BlockHeader(data_++, size_);
66  }
unsigned size_
Definition: Block.h:101
const uint32_t * data_
Definition: Block.h:78
virtual unsigned l1t::CTP7Payload::getHeaderSize ( ) const
inlineoverridevirtual

Implements l1t::Payload.

Definition at line 94 of file Block.h.

94 { return 2; };

Member Data Documentation

unsigned l1t::CTP7Payload::size_
private

Definition at line 101 of file Block.h.

Referenced by CTP7Payload(), and getHeader().

const unsigned int l1t::CTP7Payload::size_mask = 0xff
staticprivate

Definition at line 98 of file Block.h.

Referenced by CTP7Payload().

const unsigned int l1t::CTP7Payload::size_shift = 16
staticprivate

Definition at line 99 of file Block.h.

Referenced by CTP7Payload().