CMS 3D CMS Logo

Public Member Functions | Private Attributes | Friends

CSCSPTrailer Class Reference

#include <CSCSPTrailer.h>

List of all members.

Public Member Functions

unsigned int board_id (void) const throw ()
bool check (void) const throw ()
unsigned int configuration (void) const throw ()
unsigned int crc (void) const throw ()
 CSCSPTrailer (void)
unsigned int day (void) const throw ()
unsigned int l1a_7bits (void) const throw ()
bool l1a_fifo_full (void) const throw ()
unsigned int l1a_queue_size (void) const throw ()
unsigned int month (void) const throw ()
bool unpack (const unsigned short *&buf) throw ()
unsigned int year (void) const throw ()

Private Attributes

unsigned bb_: 1
unsigned board_id_: 12
unsigned core_configuraton: 12
unsigned crc_high: 11
unsigned crc_high_parity: 1
unsigned crc_low: 11
unsigned crc_low_parity: 1
unsigned day_: 5
unsigned l1a_: 8
unsigned l1a_fifo_full_: 1
unsigned month_: 4
unsigned spare_1: 1
unsigned spare_2: 1
unsigned trailer_mark_1: 4
unsigned trailer_mark_10: 4
unsigned trailer_mark_2: 4
unsigned trailer_mark_3: 3
unsigned trailer_mark_4: 4
unsigned trailer_mark_5: 4
unsigned trailer_mark_6: 4
unsigned trailer_mark_7: 4
unsigned trailer_mark_8: 4
unsigned trailer_mark_9: 4
unsigned word_count_high: 4
unsigned word_count_low: 4
unsigned year_: 4
unsigned zero_1: 1
unsigned zero_2: 7

Friends

class CSCTFPacker

Detailed Description

Definition at line 4 of file CSCSPTrailer.h.


Constructor & Destructor Documentation

CSCSPTrailer::CSCSPTrailer ( void  ) [inline]

Definition at line 71 of file CSCSPTrailer.h.

{}

Member Function Documentation

unsigned int CSCSPTrailer::board_id ( void  ) const throw () [inline]

Definition at line 65 of file CSCSPTrailer.h.

References board_id_.

{ return  board_id_;             }
bool CSCSPTrailer::check ( void  ) const throw () [inline]
unsigned int CSCSPTrailer::configuration ( void  ) const throw () [inline]

Definition at line 59 of file CSCSPTrailer.h.

References core_configuraton.

{ return core_configuraton;  }
unsigned int CSCSPTrailer::crc ( void  ) const throw () [inline]

Definition at line 67 of file CSCSPTrailer.h.

References crc_high, and crc_low.

{ return crc_low|(crc_high<<11); }
unsigned int CSCSPTrailer::day ( void  ) const throw () [inline]

Definition at line 58 of file CSCSPTrailer.h.

References day_.

{ return day_;   }
unsigned int CSCSPTrailer::l1a_7bits ( void  ) const throw () [inline]

Definition at line 52 of file CSCSPTrailer.h.

References l1a_.

{ return l1a_; }
bool CSCSPTrailer::l1a_fifo_full ( void  ) const throw () [inline]

Definition at line 54 of file CSCSPTrailer.h.

References l1a_fifo_full_.

{ return l1a_fifo_full_; }
unsigned int CSCSPTrailer::l1a_queue_size ( void  ) const throw () [inline]

Definition at line 53 of file CSCSPTrailer.h.

References word_count_high, and word_count_low.

unsigned int CSCSPTrailer::month ( void  ) const throw () [inline]

Definition at line 57 of file CSCSPTrailer.h.

References month_.

{ return month_; }
bool CSCSPTrailer::unpack ( const unsigned short *&  buf) throw () [inline]

Definition at line 69 of file CSCSPTrailer.h.

References check().

{ memcpy(this, buf, 8*sizeof(short)); buf+=8; return check(); }
unsigned int CSCSPTrailer::year ( void  ) const throw () [inline]

Definition at line 56 of file CSCSPTrailer.h.

References bb_, and year_.

{ return 2000+16*bb_+year_; }

Friends And Related Function Documentation

friend class CSCTFPacker [friend]

Definition at line 43 of file CSCSPTrailer.h.


Member Data Documentation

unsigned CSCSPTrailer::bb_ [private]

Definition at line 19 of file CSCSPTrailer.h.

Referenced by year().

unsigned CSCSPTrailer::board_id_ [private]

Definition at line 32 of file CSCSPTrailer.h.

Referenced by board_id().

unsigned CSCSPTrailer::core_configuraton [private]

Definition at line 25 of file CSCSPTrailer.h.

Referenced by configuration().

unsigned CSCSPTrailer::crc_high [private]

Definition at line 39 of file CSCSPTrailer.h.

Referenced by crc().

unsigned CSCSPTrailer::crc_high_parity [private]

Definition at line 40 of file CSCSPTrailer.h.

unsigned CSCSPTrailer::crc_low [private]

Definition at line 35 of file CSCSPTrailer.h.

Referenced by crc().

unsigned CSCSPTrailer::crc_low_parity [private]

Definition at line 36 of file CSCSPTrailer.h.

unsigned CSCSPTrailer::day_ [private]

Definition at line 28 of file CSCSPTrailer.h.

Referenced by day().

unsigned CSCSPTrailer::l1a_ [private]

Definition at line 7 of file CSCSPTrailer.h.

Referenced by l1a_7bits().

unsigned CSCSPTrailer::l1a_fifo_full_ [private]

Definition at line 13 of file CSCSPTrailer.h.

Referenced by l1a_fifo_full().

unsigned CSCSPTrailer::month_ [private]

Definition at line 17 of file CSCSPTrailer.h.

Referenced by month().

unsigned CSCSPTrailer::spare_1 [private]

Definition at line 20 of file CSCSPTrailer.h.

Referenced by check().

unsigned CSCSPTrailer::spare_2 [private]

Definition at line 21 of file CSCSPTrailer.h.

Referenced by check().

unsigned CSCSPTrailer::trailer_mark_1 [private]

Definition at line 9 of file CSCSPTrailer.h.

Referenced by check(), and CSCTFPacker::produce().

unsigned CSCSPTrailer::trailer_mark_10 [private]

Definition at line 41 of file CSCSPTrailer.h.

Referenced by check(), and CSCTFPacker::produce().

unsigned CSCSPTrailer::trailer_mark_2 [private]

Definition at line 11 of file CSCSPTrailer.h.

Referenced by check(), and CSCTFPacker::produce().

unsigned CSCSPTrailer::trailer_mark_3 [private]

Definition at line 12 of file CSCSPTrailer.h.

Referenced by check(), and CSCTFPacker::produce().

unsigned CSCSPTrailer::trailer_mark_4 [private]

Definition at line 15 of file CSCSPTrailer.h.

Referenced by check(), and CSCTFPacker::produce().

unsigned CSCSPTrailer::trailer_mark_5 [private]

Definition at line 23 of file CSCSPTrailer.h.

Referenced by check(), and CSCTFPacker::produce().

unsigned CSCSPTrailer::trailer_mark_6 [private]

Definition at line 26 of file CSCSPTrailer.h.

Referenced by check(), and CSCTFPacker::produce().

unsigned CSCSPTrailer::trailer_mark_7 [private]

Definition at line 30 of file CSCSPTrailer.h.

Referenced by check(), and CSCTFPacker::produce().

unsigned CSCSPTrailer::trailer_mark_8 [private]

Definition at line 33 of file CSCSPTrailer.h.

Referenced by check(), and CSCTFPacker::produce().

unsigned CSCSPTrailer::trailer_mark_9 [private]

Definition at line 37 of file CSCSPTrailer.h.

Referenced by check(), and CSCTFPacker::produce().

unsigned CSCSPTrailer::word_count_high [private]

Definition at line 14 of file CSCSPTrailer.h.

Referenced by l1a_queue_size().

unsigned CSCSPTrailer::word_count_low [private]

Definition at line 8 of file CSCSPTrailer.h.

Referenced by l1a_queue_size().

unsigned CSCSPTrailer::year_ [private]

Definition at line 18 of file CSCSPTrailer.h.

Referenced by year().

unsigned CSCSPTrailer::zero_1 [private]

Definition at line 22 of file CSCSPTrailer.h.

Referenced by check().

unsigned CSCSPTrailer::zero_2 [private]

Definition at line 29 of file CSCSPTrailer.h.

Referenced by check().