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 getBOE () const
 
uint16_t getBX () const
 
uint8_t getEOE () const
 
uint8_t getF0 () const
 
int getFEDId () const
 
uint8_t getFOV () const
 
uint16_t getFSize () const
 
uint8_t getH0 () const
 
uint32_t getLV1 () const
 
uint16_t getOptoRxId () const
 
uint32_t getOrbitCounter () 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 17 of file TotemFEDInfo.h.

Constructor & Destructor Documentation

TotemFEDInfo::TotemFEDInfo ( int  _id = 0)
inline

Definition at line 20 of file TotemFEDInfo.h.

20  : fedId(_id), header(0), orbitCounter(0), footer(0)
21  {
22  }
int fedId
Id from FEDRawDataCollection.
Definition: TotemFEDInfo.h:45
uint64_t footer
Definition: TotemFEDInfo.h:50
uint64_t header
Data from OptoRx headers and footer.
Definition: TotemFEDInfo.h:48
uint32_t orbitCounter
Definition: TotemFEDInfo.h:49

Member Function Documentation

uint8_t TotemFEDInfo::getBOE ( ) const
inline

Definition at line 28 of file TotemFEDInfo.h.

References header.

28 { return (header >> 60) & 0xF; }
uint64_t header
Data from OptoRx headers and footer.
Definition: TotemFEDInfo.h:48
uint16_t TotemFEDInfo::getBX ( ) const
inline

Definition at line 30 of file TotemFEDInfo.h.

References header.

30 { return (header >> 20) & 0xFFF; }
uint64_t header
Data from OptoRx headers and footer.
Definition: TotemFEDInfo.h:48
uint8_t TotemFEDInfo::getEOE ( ) const
inline

Definition at line 39 of file TotemFEDInfo.h.

References footer.

39 { return (footer >> 60) & 0xF; }
uint64_t footer
Definition: TotemFEDInfo.h:50
uint8_t TotemFEDInfo::getF0 ( ) const
inline

Definition at line 41 of file TotemFEDInfo.h.

References footer.

41 { return (footer >> 0) & 0xF; }
uint64_t footer
Definition: TotemFEDInfo.h:50
int TotemFEDInfo::getFEDId ( ) const
inline

Definition at line 25 of file TotemFEDInfo.h.

References fedId.

25 { return fedId; }
int fedId
Id from FEDRawDataCollection.
Definition: TotemFEDInfo.h:45
uint8_t TotemFEDInfo::getFOV ( ) const
inline

Definition at line 32 of file TotemFEDInfo.h.

References header.

32 { return (header >> 4) & 0xF; }
uint64_t header
Data from OptoRx headers and footer.
Definition: TotemFEDInfo.h:48
uint16_t TotemFEDInfo::getFSize ( ) const
inline

Definition at line 40 of file TotemFEDInfo.h.

References footer.

40 { return (footer >> 32) & 0x3FF; }
uint64_t footer
Definition: TotemFEDInfo.h:50
uint8_t TotemFEDInfo::getH0 ( ) const
inline

Definition at line 33 of file TotemFEDInfo.h.

References header.

33 { return (header >> 0) & 0xF; }
uint64_t header
Data from OptoRx headers and footer.
Definition: TotemFEDInfo.h:48
uint32_t TotemFEDInfo::getLV1 ( ) const
inline

Definition at line 29 of file TotemFEDInfo.h.

References header.

29 { return (header >> 32) & 0xFFFFFF; }
uint64_t header
Data from OptoRx headers and footer.
Definition: TotemFEDInfo.h:48
uint16_t TotemFEDInfo::getOptoRxId ( ) const
inline

Definition at line 31 of file TotemFEDInfo.h.

References header.

31 { return (header >> 8) & 0xFFF; }
uint64_t header
Data from OptoRx headers and footer.
Definition: TotemFEDInfo.h:48
uint32_t TotemFEDInfo::getOrbitCounter ( ) const
inline

Definition at line 36 of file TotemFEDInfo.h.

References orbitCounter.

36 { return orbitCounter; }
uint32_t orbitCounter
Definition: TotemFEDInfo.h:49
void TotemFEDInfo::setFEDId ( int  _f)
inline

Definition at line 24 of file TotemFEDInfo.h.

References fedId.

24 { fedId = _f; }
int fedId
Id from FEDRawDataCollection.
Definition: TotemFEDInfo.h:45
void TotemFEDInfo::setFooter ( uint64_t  _f)
inline

Definition at line 38 of file TotemFEDInfo.h.

References footer.

Referenced by ctpps::RawDataUnpacker::ProcessOptoRxFrame().

38 { footer = _f; }
uint64_t footer
Definition: TotemFEDInfo.h:50
void TotemFEDInfo::setHeader ( uint64_t  _h)
inline

Definition at line 27 of file TotemFEDInfo.h.

References header.

Referenced by ctpps::RawDataUnpacker::ProcessOptoRxFrame().

27 { header = _h; }
uint64_t header
Data from OptoRx headers and footer.
Definition: TotemFEDInfo.h:48
void TotemFEDInfo::setOrbitCounter ( uint32_t  _oc)
inline

Definition at line 35 of file TotemFEDInfo.h.

References orbitCounter.

Referenced by ctpps::RawDataUnpacker::ProcessOptoRxFrameParallel().

35 { orbitCounter = _oc; }
uint32_t orbitCounter
Definition: TotemFEDInfo.h:49

Member Data Documentation

int TotemFEDInfo::fedId
private

Id from FEDRawDataCollection.

Definition at line 45 of file TotemFEDInfo.h.

Referenced by getFEDId(), and setFEDId().

uint64_t TotemFEDInfo::footer
private

Definition at line 50 of file TotemFEDInfo.h.

Referenced by getEOE(), getF0(), getFSize(), and setFooter().

uint64_t TotemFEDInfo::header
private

Data from OptoRx headers and footer.

Definition at line 48 of file TotemFEDInfo.h.

Referenced by getBOE(), getBX(), getFOV(), getH0(), getLV1(), getOptoRxId(), and setHeader().

uint32_t TotemFEDInfo::orbitCounter
private

Definition at line 49 of file TotemFEDInfo.h.

Referenced by getOrbitCounter(), and setOrbitCounter().