CMS 3D CMS Logo

List of all members | Public Member Functions
l1t::MP7Payload Class Reference

#include <Block.h>

Inheritance diagram for l1t::MP7Payload:
l1t::Payload

Public Member Functions

BlockHeader getHeader () override
 
unsigned getHeaderSize () const override
 
 MP7Payload (const uint32_t *data, const uint32_t *end, bool legacy_mc=false)
 
- 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 ()
 

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

Constructor & Destructor Documentation

◆ MP7Payload()

l1t::MP7Payload::MP7Payload ( const uint32_t *  data,
const uint32_t *  end,
bool  legacy_mc = false 
)

Definition at line 93 of file Block.cc.

93  : Payload(data, end) {
94  // For legacy MC (74 first MC campaigns) skip one empty word that was
95  // reserved for the header. With data, read out infrastructure
96  // version and algorithm version.
97  if (legacy_mc) {
98  LogTrace("L1T") << "Skipping " << std::hex << *data_;
99  ++data_;
100  } else {
101  infra_ = data_[0];
102  algo_ = data_[1];
103  data_ += 2;
104  }
105  }

References l1t::Payload::algo_, l1t::Payload::data_, l1t::Payload::infra_, and LogTrace.

Member Function Documentation

◆ getHeader()

BlockHeader l1t::MP7Payload::getHeader ( )
overridevirtual

Implements l1t::Payload.

Definition at line 107 of file Block.cc.

107  {
108  LogTrace("L1T") << "Getting header from " << std::hex << std::setw(8) << *data_;
109 
110  return BlockHeader(data_++);
111  }

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

◆ getHeaderSize()

unsigned l1t::MP7Payload::getHeaderSize ( ) const
inlineoverridevirtual

Implements l1t::Payload.

Definition at line 109 of file Block.h.

109 { return 1; };
l1t::Payload::Payload
Payload(const uint32_t *data, const uint32_t *end)
Definition: Block.h:87
end
#define end
Definition: vmac.h:39
l1t::Payload::infra_
unsigned infra_
Definition: Block.h:103
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
l1t::Payload::data_
const uint32_t * data_
Definition: Block.h:99
LogTrace
#define LogTrace(id)
Definition: MessageLogger.h:671
l1t::Payload::algo_
unsigned algo_
Definition: Block.h:102