#include <CSCCFEBTimeSlice.h>
Public Member Functions | |
unsigned | calcCRC () const |
bool | check () const |
bool | checkCRC () const |
CSCCFEBTimeSlice () | |
unsigned | get_buffer_count () const |
unsigned | get_buffer_warning () const |
unsigned | get_crc () const |
accessors for words 97, 98 and 99 More... | |
unsigned | get_L1A_number () const |
unsigned | get_l1pipe_empty () const |
unsigned | get_l1pipe_full () const |
unsigned | get_lctpipe_count () const |
unsigned | get_lctpipe_empty () const |
unsigned | get_lctpipe_full () const |
unsigned | get_n_free_sca_blocks () const |
CSCCFEBSCAControllerWord | scaControllerWord (int layer) const |
unpacked from the controller words for each channel in the layer More... | |
void | set_L1Anumber (unsigned l1a) |
void | setControllerWord (const CSCCFEBSCAControllerWord &controllerWord) |
void | setCRC () |
=VB= Set calculated CRC value for simulated CFEB Time Slice data More... | |
bool | sixteenSamples () const |
whether we keep 8 or 16 time samples More... | |
unsigned | sizeInWords () const |
CSCCFEBDataWord * | timeSample (int index) const |
input from 0 to 95 More... | |
CSCCFEBDataWord * | timeSample (int layer, int channel, bool isDCFEB=false) const |
layer and element count from one More... | |
Private Attributes | |
unsigned | blank_space_1: 4 |
unsigned | blank_space_3: 4 |
unsigned | buffer_count: 5 |
unsigned | buffer_warning: 1 |
WORD 99. More... | |
unsigned | crc: 16 |
WORD 97. More... | |
unsigned | dummy: 16 |
WORD 100. More... | |
unsigned | L1A_number: 6 |
unsigned | l1pipe_empty: 1 |
unsigned | l1pipe_full: 1 |
unsigned | lctpipe_count: 4 |
unsigned | lctpipe_empty: 1 |
unsigned | lctpipe_full: 1 |
unsigned | n_free_sca_blocks: 4 |
WORD 98. More... | |
unsigned short | theSamples [96] |
Friends | |
std::ostream & | operator<< (std::ostream &os, const CSCCFEBTimeSlice &) |
Definition at line 52 of file CSCCFEBTimeSlice.h.
CSCCFEBTimeSlice::CSCCFEBTimeSlice | ( | ) |
Definition at line 14 of file CSCCFEBTimeSlice.cc.
References blank_space_1, and blank_space_3.
unsigned CSCCFEBTimeSlice::calcCRC | ( | ) | const |
Definition at line 63 of file CSCCFEBTimeSlice.cc.
References RawDataTask_cfi::CRC, and theSamples.
Referenced by checkCRC(), and setCRC().
|
inline |
Old CFEB format: dummy word 100 should be 0x7FFF New CFEB format: the sum of word 97 and 100 should be 0x7FFF (word 100 is inverted word 97)
Definition at line 79 of file CSCCFEBTimeSlice.h.
References crc.
Referenced by CSCCFEBData::CSCCFEBData().
|
inline |
|
inline |
Definition at line 102 of file CSCCFEBTimeSlice.h.
References buffer_count.
Referenced by cscdqm::EventProcessor::processCSC().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 100 of file CSCCFEBTimeSlice.h.
References l1pipe_empty.
Referenced by cscdqm::EventProcessor::processCSC().
|
inline |
Definition at line 98 of file CSCCFEBTimeSlice.h.
References l1pipe_full.
Referenced by cscdqm::EventProcessor::processCSC().
|
inline |
Definition at line 96 of file CSCCFEBTimeSlice.h.
References lctpipe_count.
Referenced by cscdqm::EventProcessor::processCSC().
|
inline |
Definition at line 99 of file CSCCFEBTimeSlice.h.
References lctpipe_empty.
Referenced by cscdqm::EventProcessor::processCSC().
|
inline |
Definition at line 97 of file CSCCFEBTimeSlice.h.
References lctpipe_full.
Referenced by cscdqm::EventProcessor::processCSC().
|
inline |
Definition at line 95 of file CSCCFEBTimeSlice.h.
References n_free_sca_blocks.
Referenced by cscdqm::EventProcessor::processCSC().
CSCCFEBSCAControllerWord CSCCFEBTimeSlice::scaControllerWord | ( | int | layer | ) | const |
unpacked from the controller words for each channel in the layer
Definition at line 46 of file CSCCFEBTimeSlice.cc.
References CSCCFEBDataWord::controllerData, mps_fire::i, nano_mu_digi_cff::layer, mps_fire::result, and timeSample().
Referenced by cscdqm::EventProcessor::processCSC().
|
inline |
void CSCCFEBTimeSlice::setControllerWord | ( | const CSCCFEBSCAControllerWord & | controllerWord | ) |
Definition at line 54 of file CSCCFEBTimeSlice.cc.
References CSCCFEBDataWord::controllerData, nano_mu_digi_cff::layer, CSCDetId::maxLayerId(), CSCDetId::minLayerId(), and timeSample().
|
inline |
=VB= Set calculated CRC value for simulated CFEB Time Slice data
Definition at line 86 of file CSCCFEBTimeSlice.h.
References calcCRC(), and crc.
|
inline |
whether we keep 8 or 16 time samples
Definition at line 67 of file CSCCFEBTimeSlice.h.
References CSCCFEBDataWord::controllerData, and timeSample().
Referenced by CSCCFEBData::CSCCFEBData().
|
inline |
Definition at line 70 of file CSCCFEBTimeSlice.h.
Referenced by CSCCFEBData::CSCCFEBData().
|
inline |
input from 0 to 95
Definition at line 57 of file CSCCFEBTimeSlice.h.
References theSamples.
Referenced by scaControllerWord(), setControllerWord(), sixteenSamples(), and timeSample().
CSCCFEBDataWord * CSCCFEBTimeSlice::timeSample | ( | int | layer, |
int | channel, | ||
bool | isDCFEB = false |
||
) | const |
layer and element count from one
!!! Important change. Use isDCFEB flag in user code to distinguish between CFEB and DCFEB !!! Use CSCCFEBData::isDCFEB() function to get this flag from CSCCFEBData object
!! New DCFEBs don't use gray coding for channels
Definition at line 32 of file CSCCFEBTimeSlice.cc.
References cms::cuda::assert(), stripgpu::channelIndex(), channelInverseGrayCode, nano_mu_digi_cff::layer, layerInverseGrayCode, CSCDetId::maxLayerId(), CSCDetId::minLayerId(), timeSample(), and mitigatedMETSequence_cff::U.
|
friend |
Definition at line 71 of file CSCCFEBTimeSlice.cc.
|
private |
Definition at line 120 of file CSCCFEBTimeSlice.h.
Referenced by CSCCFEBTimeSlice().
|
private |
Definition at line 126 of file CSCCFEBTimeSlice.h.
Referenced by CSCCFEBTimeSlice().
|
private |
Definition at line 124 of file CSCCFEBTimeSlice.h.
Referenced by get_buffer_count().
|
private |
|
private |
WORD 97.
Definition at line 111 of file CSCCFEBTimeSlice.h.
Referenced by check(), checkCRC(), get_crc(), and setCRC().
|
private |
WORD 100.
Definition at line 129 of file CSCCFEBTimeSlice.h.
|
private |
Definition at line 125 of file CSCCFEBTimeSlice.h.
Referenced by get_L1A_number(), and set_L1Anumber().
|
private |
Definition at line 119 of file CSCCFEBTimeSlice.h.
Referenced by get_l1pipe_empty().
|
private |
Definition at line 117 of file CSCCFEBTimeSlice.h.
Referenced by get_l1pipe_full().
|
private |
Definition at line 115 of file CSCCFEBTimeSlice.h.
Referenced by get_lctpipe_count().
|
private |
Definition at line 118 of file CSCCFEBTimeSlice.h.
Referenced by get_lctpipe_empty().
|
private |
Definition at line 116 of file CSCCFEBTimeSlice.h.
Referenced by get_lctpipe_full().
|
private |
|
private |
Definition at line 108 of file CSCCFEBTimeSlice.h.
Referenced by calcCRC(), and timeSample().