#include <CSCSPTrailer.h>
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 |
Definition at line 4 of file CSCSPTrailer.h.
CSCSPTrailer::CSCSPTrailer | ( | void | ) | [inline] |
Definition at line 71 of file CSCSPTrailer.h.
{}
unsigned int CSCSPTrailer::board_id | ( | void | ) | const throw () [inline] |
bool CSCSPTrailer::check | ( | void | ) | const throw () [inline] |
Definition at line 46 of file CSCSPTrailer.h.
References spare_1, spare_2, trailer_mark_1, trailer_mark_10, trailer_mark_2, trailer_mark_3, trailer_mark_4, trailer_mark_5, trailer_mark_6, trailer_mark_7, trailer_mark_8, trailer_mark_9, zero_1, and zero_2.
Referenced by unpack().
{ return spare_1!=0 || spare_2!=0 || zero_1!=0 || zero_2!=0 || trailer_mark_1!=0xF || trailer_mark_2!=0xF || trailer_mark_3!=0x7 || trailer_mark_4!=0xF || trailer_mark_5!=0xF || trailer_mark_6!=0xF || trailer_mark_7!=0xE || trailer_mark_8!=0xE || trailer_mark_9!=0xE || trailer_mark_10!=0xE; }
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] |
unsigned int CSCSPTrailer::day | ( | void | ) | const throw () [inline] |
unsigned int CSCSPTrailer::l1a_7bits | ( | void | ) | const throw () [inline] |
bool CSCSPTrailer::l1a_fifo_full | ( | void | ) | const throw () [inline] |
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.
{ return (word_count_high<<4)|word_count_low; }
unsigned int CSCSPTrailer::month | ( | void | ) | const throw () [inline] |
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] |
friend class CSCTFPacker [friend] |
Definition at line 43 of file CSCSPTrailer.h.
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().