#include <EventFilter/CSCRawToDigi/interface/CSCDCCHeader.h>
Public Member Functions | |
bool | check () const |
CSCDCCHeader (const CSCDCCStatusDigi &digi) | |
CSCDCCHeader () | |
CSCDCCHeader (int bx, int l1a, int sourceId) | |
unsigned short * | data () |
int | getCDFBunchCounter () const |
int | getCDFEventNumber () const |
int | getCDFEventType () const |
int | getCDFFOV () const |
int | getCDFSourceId () const |
void | setDAV (int dduSlot) |
Static Public Member Functions | |
static unsigned | sizeInWords () |
Private Attributes | |
unsigned long long | word [2] |
Friends | |
class | CSCDDUEventData |
Definition at line 11 of file CSCDCCHeader.h.
Definition at line 6 of file CSCDCCHeader.cc.
References data(), LL, FEDHeader::set(), and word.
00007 { 00008 word[0] = 0x510000000000005FLL; 00009 word[1] = 0xD900000000000003LL; 00010 FEDHeader::set(reinterpret_cast<unsigned char *>(data()), 1, l1a, bx, sourceId); 00011 }
CSCDCCHeader::CSCDCCHeader | ( | ) |
CSCDCCHeader::CSCDCCHeader | ( | const CSCDCCStatusDigi & | digi | ) |
Definition at line 20 of file CSCDCCHeader.cc.
References CSCDCCStatusDigi::header(), and sizeInWords().
00021 { 00022 memcpy(this, digi.header(), sizeInWords()*2); 00023 }
bool CSCDCCHeader::check | ( | ) | const [inline] |
Definition at line 24 of file CSCDCCHeader.h.
Referenced by CSCDCCEventData::check(), and CSCChamberDataItr::CSCChamberDataItr().
unsigned short* CSCDCCHeader::data | ( | ) | [inline] |
Definition at line 25 of file CSCDCCHeader.h.
References word.
Referenced by CSCDCCHeader(), and CSCDCCEventData::pack().
00025 {return (short unsigned *)word;}
int CSCDCCHeader::getCDFBunchCounter | ( | ) | const |
Definition at line 32 of file CSCDCCHeader.cc.
References word.
00033 { 00034 return ((word[0]>>20)&0xFFF); 00035 }
int CSCDCCHeader::getCDFEventNumber | ( | ) | const |
Definition at line 27 of file CSCDCCHeader.cc.
References word.
00028 { 00029 return ((word[0]>>32)&0x00FFFFFF); 00030 }
int CSCDCCHeader::getCDFEventType | ( | ) | const |
Definition at line 44 of file CSCDCCHeader.cc.
References word.
00045 { 00046 return ((word[0]>>56)&0xF); 00047 }
int CSCDCCHeader::getCDFFOV | ( | ) | const |
Definition at line 40 of file CSCDCCHeader.cc.
References word.
00041 { 00042 return ((word[0]>>4)&0xF); 00043 }
int CSCDCCHeader::getCDFSourceId | ( | ) | const |
Definition at line 36 of file CSCDCCHeader.cc.
References word.
00037 { 00038 return ((word[0]>>8)&0xFFF); 00039 }
Definition at line 50 of file CSCDCCHeader.cc.
References word.
Referenced by CSCDCCEventData::addChamber().
00051 { 00052 /* Bits 7,6,5,4,2 to indicate available DDU. 00053 For slink0, the DDU slots are 5, 12, 4, 13, 3 (same as Fifo_in_use[4:0]); 00054 for slink1, the DDU slots are 9, 7, 10, 6, 11 00055 */ 00056 assert(slot>=3 && slot <= 13); 00057 int bit[] = {0, 0, 0, 2, 5, 7, 4, 6, 0, 7, 5, 2, 6, 4}; 00058 word[0] |= 1 << bit[slot]; 00059 }
static unsigned CSCDCCHeader::sizeInWords | ( | ) | [inline, static] |
Definition at line 26 of file CSCDCCHeader.h.
Referenced by CSCDCCHeader(), CSCDCCEventData::pack(), and CSCDCCEventData::unpack_data().
friend class CSCDDUEventData [friend] |
Definition at line 29 of file CSCDCCHeader.h.
unsigned long long CSCDCCHeader::word[2] [private] |
Definition at line 32 of file CSCDCCHeader.h.
Referenced by CSCDCCHeader(), data(), getCDFBunchCounter(), getCDFEventNumber(), getCDFEventType(), getCDFFOV(), getCDFSourceId(), and setDAV().