CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
TotemFEDInfo Class Reference

OptoRx headers and footers. More...

#include <TotemFEDInfo.h>

Public Member Functions

uint8_t boe () const
 
uint16_t bx () const
 
uint8_t eoe () const
 
uint8_t f0 () const
 
int fedId () const
 
uint8_t fov () const
 
uint16_t fSize () const
 
uint8_t h0 () const
 
uint32_t lv1 () const
 
uint16_t optoRxId () const
 
uint32_t orbitCounter () const
 
void setFEDId (int f)
 
void setFooter (uint64_t _f)
 
void setHeader (uint64_t _h)
 
void setOrbitCounter (uint32_t oc)
 
 TotemFEDInfo (int id=0)
 

Private Attributes

int fedId_
 Id from FEDRawDataCollection. More...
 
uint64_t footer
 
uint64_t header
 Data from OptoRx headers and footer. More...
 
uint32_t orbitCounter_
 

Detailed Description

OptoRx headers and footers.

Definition at line 16 of file TotemFEDInfo.h.

Constructor & Destructor Documentation

◆ TotemFEDInfo()

TotemFEDInfo::TotemFEDInfo ( int  id = 0)
inline

Definition at line 23 of file TotemFEDInfo.h.

24 { header = _h; }

References header.

Member Function Documentation

◆ boe()

uint8_t TotemFEDInfo::boe ( ) const
inline

Definition at line 29 of file TotemFEDInfo.h.

29 { return (header >> 4) & 0xF; }

References header.

◆ bx()

uint16_t TotemFEDInfo::bx ( ) const
inline

Definition at line 31 of file TotemFEDInfo.h.

32 { orbitCounter_ = oc; }

◆ eoe()

uint8_t TotemFEDInfo::eoe ( ) const
inline

Definition at line 40 of file TotemFEDInfo.h.

40 :

◆ f0()

uint8_t TotemFEDInfo::f0 ( ) const
inline

Definition at line 42 of file TotemFEDInfo.h.

◆ fedId()

int TotemFEDInfo::fedId ( ) const
inline

Definition at line 26 of file TotemFEDInfo.h.

26 { return (header >> 32) & 0xFFFFFF; }

References header.

◆ fov()

uint8_t TotemFEDInfo::fov ( ) const
inline

Definition at line 33 of file TotemFEDInfo.h.

33 { return orbitCounter_; }

References orbitCounter_.

◆ fSize()

uint16_t TotemFEDInfo::fSize ( ) const
inline

Definition at line 41 of file TotemFEDInfo.h.

◆ h0()

uint8_t TotemFEDInfo::h0 ( ) const
inline

Definition at line 34 of file TotemFEDInfo.h.

35 { footer = _f; }

References footer.

◆ lv1()

uint32_t TotemFEDInfo::lv1 ( ) const
inline

Definition at line 30 of file TotemFEDInfo.h.

30 { return (header >> 0) & 0xF; }

References header.

◆ optoRxId()

uint16_t TotemFEDInfo::optoRxId ( ) const
inline

Definition at line 32 of file TotemFEDInfo.h.

32 { orbitCounter_ = oc; }

References orbitCounter_.

◆ orbitCounter()

uint32_t TotemFEDInfo::orbitCounter ( ) const
inline

Definition at line 37 of file TotemFEDInfo.h.

37 { return (footer >> 32) & 0x3FF; }

References footer.

◆ setFEDId()

void TotemFEDInfo::setFEDId ( int  f)
inline

Definition at line 25 of file TotemFEDInfo.h.

25 { return (header >> 60) & 0xF; }

References header.

◆ setFooter()

void TotemFEDInfo::setFooter ( uint64_t  _f)
inline

Definition at line 39 of file TotemFEDInfo.h.

40 :

Referenced by pps::RawDataUnpacker::processOptoRxFrame().

◆ setHeader()

void TotemFEDInfo::setHeader ( uint64_t  _h)
inline

Definition at line 28 of file TotemFEDInfo.h.

28 { return (header >> 8) & 0xFFF; }

References header.

Referenced by pps::RawDataUnpacker::processOptoRxFrame().

◆ setOrbitCounter()

void TotemFEDInfo::setOrbitCounter ( uint32_t  oc)
inline

Definition at line 36 of file TotemFEDInfo.h.

36 { return (footer >> 60) & 0xF; }

References footer.

Referenced by pps::RawDataUnpacker::processOptoRxFrameParallel().

Member Data Documentation

◆ fedId_

int TotemFEDInfo::fedId_
private

Id from FEDRawDataCollection.

Definition at line 46 of file TotemFEDInfo.h.

◆ footer

uint64_t TotemFEDInfo::footer
private

Definition at line 51 of file TotemFEDInfo.h.

Referenced by h0(), orbitCounter(), and setOrbitCounter().

◆ header

uint64_t TotemFEDInfo::header
private

Data from OptoRx headers and footer.

Definition at line 49 of file TotemFEDInfo.h.

Referenced by boe(), fedId(), lv1(), setFEDId(), setHeader(), and TotemFEDInfo().

◆ orbitCounter_

uint32_t TotemFEDInfo::orbitCounter_
private

Definition at line 50 of file TotemFEDInfo.h.

Referenced by fov(), and optoRxId().

TotemFEDInfo::header
uint64_t header
Data from OptoRx headers and footer.
Definition: TotemFEDInfo.h:49
TotemFEDInfo::footer
uint64_t footer
Definition: TotemFEDInfo.h:51
TotemFEDInfo::orbitCounter_
uint32_t orbitCounter_
Definition: TotemFEDInfo.h:50