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
amc::Packet Class Reference

#include <AMCSpec.h>

Public Member Functions

void addPayload (const uint64_t *, unsigned int)
 
std::vector< uint64_t > block (unsigned int id) const
 
BlockHeader blockHeader (unsigned int block=0) const
 
unsigned int blocks () const
 
std::unique_ptr< uint64_t[]> data ()
 
void finalize (unsigned int lv1, unsigned int bx, bool legacy_mc=false, bool mtf7_mode=false)
 
Header header () const
 
 Packet (const uint64_t *d)
 
 Packet (unsigned int amc, unsigned int board, unsigned int lv1id, unsigned int orbit, unsigned int bx, const std::vector< uint64_t > &load)
 
unsigned int size () const
 
Trailer trailer () const
 

Private Attributes

BlockHeader block_header_
 
Header header_
 
std::vector< uint64_t > payload_
 
Trailer trailer_
 

Detailed Description

Definition at line 123 of file AMCSpec.h.

Constructor & Destructor Documentation

amc::Packet::Packet ( const uint64_t *  d)
inline

Definition at line 125 of file AMCSpec.h.

Packet::Packet ( unsigned int  amc,
unsigned int  board,
unsigned int  lv1id,
unsigned int  orbit,
unsigned int  bx,
const std::vector< uint64_t > &  load 
)

Definition at line 126 of file AMCSpec.cc.

Member Function Documentation

void Packet::addPayload ( const uint64_t *  data,
unsigned int  size 
)

Definition at line 142 of file AMCSpec.cc.

std::vector< uint64_t > Packet::block ( unsigned int  id) const

Definition at line 167 of file AMCSpec.cc.

BlockHeader amc::Packet::blockHeader ( unsigned int  block = 0) const
inline

Definition at line 137 of file AMCSpec.h.

unsigned int amc::Packet::blocks ( ) const
inline

Definition at line 141 of file AMCSpec.h.

std::unique_ptr< uint64_t[]> Packet::data ( )

Definition at line 179 of file AMCSpec.cc.

void Packet::finalize ( unsigned int  lv1,
unsigned int  bx,
bool  legacy_mc = false,
bool  mtf7_mode = false 
)

Definition at line 148 of file AMCSpec.cc.

Header amc::Packet::header ( void  ) const
inline

Definition at line 138 of file AMCSpec.h.

unsigned int amc::Packet::size ( void  ) const
inline

Definition at line 143 of file AMCSpec.h.

Trailer amc::Packet::trailer ( void  ) const
inline

Definition at line 139 of file AMCSpec.h.

Member Data Documentation

BlockHeader amc::Packet::block_header_
private

Definition at line 143 of file AMCSpec.h.

Header amc::Packet::header_
private

Definition at line 147 of file AMCSpec.h.

std::vector<uint64_t> amc::Packet::payload_
private

Definition at line 150 of file AMCSpec.h.

Trailer amc::Packet::trailer_
private

Definition at line 148 of file AMCSpec.h.