#include <EventFilter/CSCTFRawToDigi/src/CSCSPHeader.h>
Public Types | |
enum | ACTIVE { F1 = 1, F2 = 2, F3 = 4, F4 = 8, F5 = 16, DT = 32, SP = 64 } |
enum | FMM { WOF = 1, OSY = 2, BUZY = 4, READY = 8, FA_OSY = 16, SP_OSY = 32 } |
Public Member Functions | |
unsigned int | active (void) const throw () |
unsigned int | BXN (void) const throw () |
bool | check (void) const |
CSCSPHeader (void) | |
bool | ddu_readout (void) const throw () |
bool | empty (void) const throw () |
unsigned int | endcap (void) const throw () |
int | format_version (void) const throw () |
unsigned int | L1A (void) const throw () |
unsigned int | nTBINs (void) const throw () |
unsigned int | sector (void) const throw () |
unsigned int | slot (void) const throw () |
unsigned int | status (void) const throw () |
bool | suppression (void) const throw () |
unsigned int | trigger_sector (void) const throw () |
bool | unpack (const unsigned short *&buf) throw () |
Private Attributes | |
unsigned | csr_dfc: 11 |
unsigned | ddm: 1 |
unsigned | fmm_status: 6 |
unsigned | header_mark_1: 4 |
unsigned | header_mark_2: 4 |
unsigned | header_mark_3: 4 |
unsigned | header_mark_4: 4 |
unsigned | header_mark_5: 4 |
unsigned | header_mark_6: 4 |
unsigned | header_mark_7: 4 |
unsigned | header_mark_8: 4 |
unsigned | skip: 1 |
unsigned | sp_bxn: 12 |
unsigned | sp_ersv: 3 |
unsigned | sp_l1a_high: 12 |
unsigned | sp_l1a_low: 12 |
unsigned | sp_slot_number: 5 |
unsigned | sp_trigger_sector: 4 |
unsigned | zero_1: 12 |
unsigned | zero_2: 12 |
unsigned | zero_3: 5 |
Friends | |
class | CSCTFPacker |
Definition at line 6 of file CSCSPHeader.h.
enum CSCSPHeader::ACTIVE |
enum CSCSPHeader::FMM |
CSCSPHeader::CSCSPHeader | ( | void | ) | [inline] |
Definition at line 97 of file CSCSPHeader.h.
References csr_dfc.
Referenced by CSCTFEvent::unpack().
00097 { return csr_dfc>>4; }
Definition at line 74 of file CSCSPHeader.h.
References sp_bxn.
Referenced by CSCTFUnpacker::produce().
00074 { return sp_bxn; }
Definition at line 68 of file CSCSPHeader.h.
References header_mark_1, header_mark_2, header_mark_3, header_mark_4, header_mark_5, header_mark_6, header_mark_7, header_mark_8, zero_1, zero_2, and zero_3.
Referenced by unpack().
00068 { 00069 return header_mark_1!=0x9 || header_mark_2!=0x9 || header_mark_3!=0x9 || header_mark_4!=0x9 00070 || header_mark_5!=0xA || header_mark_6!=0xA || header_mark_7!=0xA || header_mark_8!=0xA 00071 || zero_1!=0 || zero_2!=0 || zero_3!=0; 00072 }
Definition at line 99 of file CSCSPHeader.h.
References skip.
Referenced by CSCTFEvent::unpack().
00099 { return skip; }
Definition at line 84 of file CSCSPHeader.h.
References sp_ersv, and sp_trigger_sector.
Referenced by CSCTFUnpacker::produce().
00084 { 00085 if(sp_ersv<2) return sp_trigger_sector&0x8; 00086 else return (sp_trigger_sector<=6?1:0); 00087 }
Definition at line 101 of file CSCSPHeader.h.
References sp_ersv.
Referenced by CSCTFEvent::unpack().
00101 { return sp_ersv; }
Definition at line 75 of file CSCSPHeader.h.
References sp_l1a_high, and sp_l1a_low.
Referenced by CSCTFUnpacker::produce().
00075 { return (sp_l1a_high<<12)|sp_l1a_low; }
Definition at line 92 of file CSCSPHeader.h.
References csr_dfc.
Referenced by CSCTFUnpacker::produce(), and CSCTFEvent::unpack().
00092 { return csr_dfc&0x7; }
Definition at line 80 of file CSCSPHeader.h.
References sp_ersv, and sp_trigger_sector.
Referenced by CSCTFUnpacker::produce().
00080 { 00081 if(sp_ersv<2) return sp_trigger_sector&0x7; 00082 else return (sp_trigger_sector<=6?sp_trigger_sector:sp_trigger_sector-6); 00083 }
Definition at line 77 of file CSCSPHeader.h.
References sp_slot_number.
Referenced by CSCTFUnpacker::produce().
00077 { return sp_slot_number; }
Definition at line 90 of file CSCSPHeader.h.
References fmm_status.
Referenced by CSCTFUnpacker::produce().
00090 { return fmm_status; }
Definition at line 94 of file CSCSPHeader.h.
References csr_dfc.
Referenced by CSCTFEvent::unpack().
00094 { return csr_dfc&0x8; }
Definition at line 78 of file CSCSPHeader.h.
References sp_trigger_sector.
00078 { return sp_trigger_sector; }
bool CSCSPHeader::unpack | ( | const unsigned short *& | buf | ) | throw () [inline] |
Definition at line 104 of file CSCSPHeader.h.
References check().
Referenced by CSCTFEvent::unpack().
00104 { memcpy((void*)this,buf,8*sizeof(short)); buf+=8; return check(); }
friend class CSCTFPacker [friend] |
Definition at line 65 of file CSCSPHeader.h.
unsigned CSCSPHeader::csr_dfc [private] |
Definition at line 61 of file CSCSPHeader.h.
Referenced by active(), nTBINs(), CSCTFPacker::produce(), and suppression().
unsigned CSCSPHeader::ddm [private] |
unsigned CSCSPHeader::fmm_status [private] |
unsigned CSCSPHeader::header_mark_1 [private] |
unsigned CSCSPHeader::header_mark_2 [private] |
unsigned CSCSPHeader::header_mark_3 [private] |
unsigned CSCSPHeader::header_mark_4 [private] |
unsigned CSCSPHeader::header_mark_5 [private] |
unsigned CSCSPHeader::header_mark_6 [private] |
unsigned CSCSPHeader::header_mark_7 [private] |
unsigned CSCSPHeader::header_mark_8 [private] |
unsigned CSCSPHeader::skip [private] |
unsigned CSCSPHeader::sp_bxn [private] |
unsigned CSCSPHeader::sp_ersv [private] |
Definition at line 26 of file CSCSPHeader.h.
Referenced by endcap(), format_version(), CSCTFPacker::produce(), and sector().
unsigned CSCSPHeader::sp_l1a_high [private] |
unsigned CSCSPHeader::sp_l1a_low [private] |
unsigned CSCSPHeader::sp_slot_number [private] |
unsigned CSCSPHeader::sp_trigger_sector [private] |
Definition at line 27 of file CSCSPHeader.h.
Referenced by endcap(), CSCTFPacker::produce(), sector(), and trigger_sector().
unsigned CSCSPHeader::zero_1 [private] |
unsigned CSCSPHeader::zero_2 [private] |
unsigned CSCSPHeader::zero_3 [private] |