CMS 3D CMS Logo

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
virtual unsigned getAlgorithmFWVersion () const
 
virtual std::unique_ptr< BlockgetBlock ()
 
virtual unsigned getInfrastructureFWVersion () const
 
 Payload (const uint32_t *data, const uint32_t *end)
 
virtual ~Payload ()
 

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
unsigned algo_
 
const uint32_t * data_
 
const uint32_t * end_
 
unsigned infra_
 

Detailed Description

Definition at line 123 of file Block.h.

Constructor & Destructor Documentation

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

Definition at line 180 of file Block.cc.

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

180  : Payload(data, end)
181  {
182  ++data_;
183  size_ = (*data >> size_shift) & size_mask;
184  ++data_;
185  }
static const unsigned int size_shift
Definition: Block.h:131
unsigned size_
Definition: Block.h:133
#define end
Definition: vmac.h:37
const uint32_t * data_
Definition: Block.h:87
static const unsigned int size_mask
Definition: Block.h:130
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
Payload(const uint32_t *data, const uint32_t *end)
Definition: Block.h:76

Member Function Documentation

BlockHeader l1t::CTP7Payload::getHeader ( )
overridevirtual

Implements l1t::Payload.

Definition at line 188 of file Block.cc.

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

189  {
190  return BlockHeader(data_++, size_);
191  }
unsigned size_
Definition: Block.h:133
const uint32_t * data_
Definition: Block.h:87
virtual unsigned l1t::CTP7Payload::getHeaderSize ( ) const
inlineoverridevirtual

Implements l1t::Payload.

Definition at line 126 of file Block.h.

126 { return 2; };

Member Data Documentation

unsigned l1t::CTP7Payload::size_
private

Definition at line 133 of file Block.h.

Referenced by CTP7Payload(), and getHeader().

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

Definition at line 130 of file Block.h.

Referenced by CTP7Payload().

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

Definition at line 131 of file Block.h.

Referenced by CTP7Payload().