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 Member Functions | Static Private Attributes
l1t::MTF7Payload Class Reference

#include <Block.h>

Inheritance diagram for l1t::MTF7Payload:
l1t::Payload

Public Member Functions

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

Private Member Functions

int count (unsigned int pattern, unsigned int length) const
 
bool valid (unsigned int pattern) const
 

Static Private Attributes

static const std::vector
< unsigned int > 
block_patterns_
 
static const unsigned int counter_size = 4
 
static const unsigned int header_size = 12
 
static const unsigned int max_block_length_ = 3
 
static const unsigned int trailer_size = 8
 

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 97 of file Block.h.

Constructor & Destructor Documentation

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

Definition at line 95 of file Block.cc.

Member Function Documentation

int l1t::MTF7Payload::count ( unsigned int  pattern,
unsigned int  length 
) const
private

Definition at line 124 of file Block.cc.

std::auto_ptr< Block > l1t::MTF7Payload::getBlock ( )
overridevirtual

Reimplemented from l1t::Payload.

Definition at line 147 of file Block.cc.

virtual BlockHeader l1t::MTF7Payload::getHeader ( )
inlineoverridevirtual

Implements l1t::Payload.

Definition at line 102 of file Block.h.

102 { return BlockHeader(0); };
virtual unsigned l1t::MTF7Payload::getHeaderSize ( ) const
inlineoverridevirtual

Implements l1t::Payload.

Definition at line 101 of file Block.h.

101 { return 0; };
bool l1t::MTF7Payload::valid ( unsigned int  pattern) const
private

Definition at line 137 of file Block.cc.

Member Data Documentation

const std::vector< unsigned int > l1t::MTF7Payload::block_patterns_
staticprivate
Initial value:
=
{
0b000111111111,
0b0010,
0b0011,
0b0100,
0b01100101,
0b11111111
}

Definition at line 113 of file Block.h.

const unsigned int l1t::MTF7Payload::counter_size = 4
staticprivate

Definition at line 107 of file Block.h.

const unsigned int l1t::MTF7Payload::header_size = 12
staticprivate

Definition at line 106 of file Block.h.

const unsigned int l1t::MTF7Payload::max_block_length_ = 3
staticprivate

Definition at line 112 of file Block.h.

const unsigned int l1t::MTF7Payload::trailer_size = 8
staticprivate

Definition at line 108 of file Block.h.