CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 17 of file TotemFEDInfo.h.

Constructor & Destructor Documentation

TotemFEDInfo::TotemFEDInfo ( int  id = 0)
inline

Definition at line 19 of file TotemFEDInfo.h.

19 : fedId_(id), header(0), orbitCounter_(0), footer(0) {}
uint32_t orbitCounter_
Definition: TotemFEDInfo.h:46
int fedId_
Id from FEDRawDataCollection.
Definition: TotemFEDInfo.h:42
uint64_t footer
Definition: TotemFEDInfo.h:47
uint64_t header
Data from OptoRx headers and footer.
Definition: TotemFEDInfo.h:45

Member Function Documentation

uint8_t TotemFEDInfo::boe ( ) const
inline

Definition at line 25 of file TotemFEDInfo.h.

References header.

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

Definition at line 27 of file TotemFEDInfo.h.

References header.

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

Definition at line 36 of file TotemFEDInfo.h.

References footer.

36 { return (footer >> 60) & 0xF; }
uint64_t footer
Definition: TotemFEDInfo.h:47
uint8_t TotemFEDInfo::f0 ( ) const
inline

Definition at line 38 of file TotemFEDInfo.h.

References footer.

38 { return (footer >> 0) & 0xF; }
uint64_t footer
Definition: TotemFEDInfo.h:47
int TotemFEDInfo::fedId ( ) const
inline

Definition at line 22 of file TotemFEDInfo.h.

References fedId_.

Referenced by CTPPSDiamondDQMSource::checkEventNumber().

22 { return fedId_; }
int fedId_
Id from FEDRawDataCollection.
Definition: TotemFEDInfo.h:42
uint8_t TotemFEDInfo::fov ( ) const
inline

Definition at line 29 of file TotemFEDInfo.h.

References header.

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

Definition at line 37 of file TotemFEDInfo.h.

References footer.

37 { return (footer >> 32) & 0x3FF; }
uint64_t footer
Definition: TotemFEDInfo.h:47
uint8_t TotemFEDInfo::h0 ( ) const
inline

Definition at line 30 of file TotemFEDInfo.h.

References header.

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

Definition at line 26 of file TotemFEDInfo.h.

References header.

Referenced by CTPPSDiamondDQMSource::checkEventNumber().

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

Definition at line 28 of file TotemFEDInfo.h.

References header.

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

Definition at line 33 of file TotemFEDInfo.h.

References orbitCounter_.

33 { return orbitCounter_; }
uint32_t orbitCounter_
Definition: TotemFEDInfo.h:46
void TotemFEDInfo::setFEDId ( int  f)
inline

Definition at line 21 of file TotemFEDInfo.h.

References validate-o2o-wbm::f, and fedId_.

21 { fedId_ = f; }
int fedId_
Id from FEDRawDataCollection.
Definition: TotemFEDInfo.h:42
void TotemFEDInfo::setFooter ( uint64_t  _f)
inline

Definition at line 35 of file TotemFEDInfo.h.

References footer.

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

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

Definition at line 24 of file TotemFEDInfo.h.

References header.

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

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

Definition at line 32 of file TotemFEDInfo.h.

References orbitCounter_.

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

32 { orbitCounter_ = oc; }
uint32_t orbitCounter_
Definition: TotemFEDInfo.h:46

Member Data Documentation

int TotemFEDInfo::fedId_
private

Id from FEDRawDataCollection.

Definition at line 42 of file TotemFEDInfo.h.

Referenced by fedId(), and setFEDId().

uint64_t TotemFEDInfo::footer
private

Definition at line 47 of file TotemFEDInfo.h.

Referenced by eoe(), f0(), fSize(), and setFooter().

uint64_t TotemFEDInfo::header
private

Data from OptoRx headers and footer.

Definition at line 45 of file TotemFEDInfo.h.

Referenced by boe(), bx(), fov(), h0(), lv1(), optoRxId(), and setHeader().

uint32_t TotemFEDInfo::orbitCounter_
private

Definition at line 46 of file TotemFEDInfo.h.

Referenced by orbitCounter(), and setOrbitCounter().