#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 | setControllerWord (const CSCCFEBSCAControllerWord &controllerWord) |
void | setCRC () |
=VB= Set calculated CRC value for simulated CFEB Time Slice data More... | |
bool | sixteenSamples () |
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) 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 56 of file CSCCFEBTimeSlice.h.
CSCCFEBTimeSlice::CSCCFEBTimeSlice | ( | ) |
Definition at line 13 of file CSCCFEBTimeSlice.cc.
References blank_space_1, blank_space_3, and dummy.
unsigned CSCCFEBTimeSlice::calcCRC | ( | ) | const |
Definition at line 70 of file CSCCFEBTimeSlice.cc.
References 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.
Referenced by CSCCFEBData::CSCCFEBData().
|
inline |
|
inline |
Definition at line 100 of file CSCCFEBTimeSlice.h.
References buffer_count.
Referenced by cscdqm::EventProcessor::processCSC().
|
inline |
|
inline |
accessors for words 97, 98 and 99
Definition at line 92 of file CSCCFEBTimeSlice.h.
References crc.
Referenced by CSCCFEBData::statusDigi().
|
inline |
|
inline |
Definition at line 98 of file CSCCFEBTimeSlice.h.
References l1pipe_empty.
Referenced by cscdqm::EventProcessor::processCSC().
|
inline |
Definition at line 96 of file CSCCFEBTimeSlice.h.
References l1pipe_full.
Referenced by cscdqm::EventProcessor::processCSC().
|
inline |
Definition at line 94 of file CSCCFEBTimeSlice.h.
References lctpipe_count.
Referenced by cscdqm::EventProcessor::processCSC().
|
inline |
Definition at line 97 of file CSCCFEBTimeSlice.h.
References lctpipe_empty.
Referenced by cscdqm::EventProcessor::processCSC().
|
inline |
Definition at line 95 of file CSCCFEBTimeSlice.h.
References lctpipe_full.
Referenced by cscdqm::EventProcessor::processCSC().
|
inline |
Definition at line 93 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, i, query::result, and timeSample().
Referenced by cscdqm::EventProcessor::processCSC().
void CSCCFEBTimeSlice::setControllerWord | ( | const CSCCFEBSCAControllerWord & | controllerWord | ) |
Definition at line 56 of file CSCCFEBTimeSlice.cc.
References CSCCFEBDataWord::controllerData, and timeSample().
Referenced by CSCCFEBData::CSCCFEBData().
|
inline |
=VB= Set calculated CRC value for simulated CFEB Time Slice data
Definition at line 86 of file CSCCFEBTimeSlice.h.
References calcCRC(), crc, and dummy.
|
inline |
whether we keep 8 or 16 time samples
Definition at line 68 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 61 of file CSCCFEBTimeSlice.h.
References getHLTprescales::index, and theSamples.
Referenced by CSCCFEBData::adcCounts(), CSCCFEBData::adcOverflow(), CSCCFEBData::add(), CSCCFEBData::controllerData(), CSCCFEBData::digis(), CSCCFEBData::errorstat(), operator<<(), CSCCFEBData::overlappedSampleFlag(), scaControllerWord(), setControllerWord(), sixteenSamples(), CSCCFEBData::statusDigi(), and timeSample().
CSCCFEBDataWord * CSCCFEBTimeSlice::timeSample | ( | int | layer, |
int | channel | ||
) | const |
layer and element count from one
Definition at line 34 of file CSCCFEBTimeSlice.cc.
References channelInverseGrayCode, layerInverseGrayCode, and timeSample().
|
friend |
Definition at line 79 of file CSCCFEBTimeSlice.cc.
|
private |
Definition at line 116 of file CSCCFEBTimeSlice.h.
Referenced by CSCCFEBTimeSlice().
|
private |
Definition at line 123 of file CSCCFEBTimeSlice.h.
Referenced by CSCCFEBTimeSlice().
|
private |
Definition at line 121 of file CSCCFEBTimeSlice.h.
Referenced by get_buffer_count().
|
private |
|
private |
WORD 97.
Definition at line 107 of file CSCCFEBTimeSlice.h.
Referenced by check(), checkCRC(), get_crc(), and setCRC().
|
private |
WORD 100.
Definition at line 126 of file CSCCFEBTimeSlice.h.
Referenced by check(), CSCCFEBTimeSlice(), and setCRC().
|
private |
Definition at line 122 of file CSCCFEBTimeSlice.h.
Referenced by get_L1A_number().
|
private |
Definition at line 115 of file CSCCFEBTimeSlice.h.
Referenced by get_l1pipe_empty().
|
private |
Definition at line 113 of file CSCCFEBTimeSlice.h.
Referenced by get_l1pipe_full().
|
private |
Definition at line 111 of file CSCCFEBTimeSlice.h.
Referenced by get_lctpipe_count().
|
private |
Definition at line 114 of file CSCCFEBTimeSlice.h.
Referenced by get_lctpipe_empty().
|
private |
Definition at line 112 of file CSCCFEBTimeSlice.h.
Referenced by get_lctpipe_full().
|
private |
|
private |
Definition at line 104 of file CSCCFEBTimeSlice.h.
Referenced by calcCRC(), and timeSample().