#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 56 of file CSCCFEBTimeSlice.h.
CSCCFEBTimeSlice::CSCCFEBTimeSlice | ( | ) |
Definition at line 13 of file CSCCFEBTimeSlice.cc.
References blank_space_1, and blank_space_3.
unsigned CSCCFEBTimeSlice::calcCRC | ( | ) | const |
Definition at line 72 of file CSCCFEBTimeSlice.cc.
References theSamples.
|
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 85 of file CSCCFEBTimeSlice.h.
Referenced by CSCCFEBData::CSCCFEBData().
|
inline |
|
inline |
Definition at line 106 of file CSCCFEBTimeSlice.h.
Referenced by cscdqm::EventProcessor::processCSC().
|
inline |
Definition at line 105 of file CSCCFEBTimeSlice.h.
|
inline |
accessors for words 97, 98 and 99
Definition at line 98 of file CSCCFEBTimeSlice.h.
Referenced by CSCCFEBData::statusDigi().
|
inline |
Definition at line 107 of file CSCCFEBTimeSlice.h.
|
inline |
Definition at line 104 of file CSCCFEBTimeSlice.h.
Referenced by cscdqm::EventProcessor::processCSC().
|
inline |
Definition at line 102 of file CSCCFEBTimeSlice.h.
Referenced by cscdqm::EventProcessor::processCSC().
|
inline |
Definition at line 100 of file CSCCFEBTimeSlice.h.
Referenced by cscdqm::EventProcessor::processCSC().
|
inline |
Definition at line 103 of file CSCCFEBTimeSlice.h.
Referenced by cscdqm::EventProcessor::processCSC().
|
inline |
Definition at line 101 of file CSCCFEBTimeSlice.h.
Referenced by cscdqm::EventProcessor::processCSC().
|
inline |
Definition at line 99 of file CSCCFEBTimeSlice.h.
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 48 of file CSCCFEBTimeSlice.cc.
References CSCCFEBDataWord::controllerData, mps_fire::i, mps_fire::result, and timeSample().
Referenced by cscdqm::EventProcessor::processCSC().
|
inline |
Definition at line 109 of file CSCCFEBTimeSlice.h.
void CSCCFEBTimeSlice::setControllerWord | ( | const CSCCFEBSCAControllerWord & | controllerWord | ) |
Definition at line 58 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 92 of file CSCCFEBTimeSlice.h.
References dt_crc::calcCRC(), and operator<<().
Referenced by CSCCFEBData::add().
|
inline |
whether we keep 8 or 16 time samples
Definition at line 73 of file CSCCFEBTimeSlice.h.
References CSCCFEBDataWord::controllerData, and cscdqm::timeSample().
Referenced by CSCCFEBData::CSCCFEBData().
|
inline |
Definition at line 75 of file CSCCFEBTimeSlice.h.
Referenced by CSCCFEBData::CSCCFEBData().
|
inline |
input from 0 to 95
Definition at line 61 of file CSCCFEBTimeSlice.h.
References cscdqm::timeSample().
Referenced by CSCCFEBData::adcCounts(), CSCCFEBData::adcOverflow(), CSCCFEBData::add(), CSCCFEBData::controllerData(), CSCCFEBData::digis(), CSCCFEBData::errorstat(), operator<<(), CSCCFEBData::overlappedSampleFlag(), scaControllerWord(), setControllerWord(), CSCCFEBData::statusDigi(), 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 34 of file CSCCFEBTimeSlice.cc.
References channelInverseGrayCode, layerInverseGrayCode, timeSample(), and mitigatedMETSequence_cff::U.
|
friend |
Definition at line 81 of file CSCCFEBTimeSlice.cc.
|
private |
Definition at line 124 of file CSCCFEBTimeSlice.h.
Referenced by CSCCFEBTimeSlice().
|
private |
Definition at line 131 of file CSCCFEBTimeSlice.h.
Referenced by CSCCFEBTimeSlice().
|
private |
Definition at line 129 of file CSCCFEBTimeSlice.h.
|
private |
WORD 99.
Definition at line 128 of file CSCCFEBTimeSlice.h.
|
private |
WORD 97.
Definition at line 115 of file CSCCFEBTimeSlice.h.
|
private |
WORD 100.
Definition at line 134 of file CSCCFEBTimeSlice.h.
|
private |
Definition at line 130 of file CSCCFEBTimeSlice.h.
|
private |
Definition at line 123 of file CSCCFEBTimeSlice.h.
|
private |
Definition at line 121 of file CSCCFEBTimeSlice.h.
|
private |
Definition at line 119 of file CSCCFEBTimeSlice.h.
|
private |
Definition at line 122 of file CSCCFEBTimeSlice.h.
|
private |
Definition at line 120 of file CSCCFEBTimeSlice.h.
|
private |
WORD 98.
Definition at line 118 of file CSCCFEBTimeSlice.h.
|
private |
Definition at line 112 of file CSCCFEBTimeSlice.h.
Referenced by calcCRC().