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
virtual unsigned getAlgorithmFWVersion () const
 
virtual std::auto_ptr< BlockgetBlock ()
 
virtual unsigned getInfrastructureFWVersion () 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
unsigned algo_
 
const uint32_t * data_
 
const uint32_t * end_
 
unsigned infra_
 

Detailed Description

Definition at line 119 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:127
unsigned size_
Definition: Block.h:129
#define end
Definition: vmac.h:37
const uint32_t * data_
Definition: Block.h:83
static const unsigned int size_mask
Definition: Block.h:126
Payload(const uint32_t *data, const uint32_t *end)
Definition: Block.h:72

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:129
const uint32_t * data_
Definition: Block.h:83
virtual unsigned l1t::CTP7Payload::getHeaderSize ( ) const
inlineoverridevirtual

Implements l1t::Payload.

Definition at line 122 of file Block.h.

122 { return 2; };

Member Data Documentation

unsigned l1t::CTP7Payload::size_
private

Definition at line 129 of file Block.h.

Referenced by CTP7Payload(), and getHeader().

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

Definition at line 126 of file Block.h.

Referenced by CTP7Payload().

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

Definition at line 127 of file Block.h.

Referenced by CTP7Payload().