#include <CSCCFEBStatusDigi.h>
Public Member Functions | |
CSCCFEBStatusDigi (int cfebnmb) | |
Construct from the CFEB number (1-5). More... | |
CSCCFEBStatusDigi (int cfebnmb, const std::vector< uint16_t > &crcWords, const std::vector< uint16_t > &contrWords, const std::vector< uint16_t > &bWords) | |
Constructor for all variables. More... | |
CSCCFEBStatusDigi () | |
Default construction. More... | |
int | getCFEBNmb () const |
Get the CFEB number. More... | |
std::vector< uint16_t > | getCRC () const |
Get CRC per each time sample. More... | |
std::vector< int > | getL1A_PHASE () const |
Get L1A_PHASE bit from SCA Controller data per each time slice. More... | |
std::vector< int > | getLCT_PHASE () const |
Get LCT_PHASE bit from SCA Controller data per each time slice. More... | |
std::vector< int > | getSCA_BLK () const |
Get SCA_BLK 4 bit word from SCA Controller data per each time slice. More... | |
std::vector< int > | getSCA_FULL () const |
Get SCA_FULL bit from SCA Controller data per each time slice. More... | |
std::vector< uint16_t > | getSCAFullCond () const |
Get SCA Full Condition. More... | |
std::vector< int > | getTRIG_TIME () const |
Get TRIG_TIME 8 bit word from SCA Controller data per each time slice. More... | |
std::vector< int > | getTS_FLAG () const |
Get TS_FLAG bit from SCA Controller data per each time slice. More... | |
void | print () const |
Print content of digi. More... | |
void | setCRC (const std::vector< uint16_t > &crc) |
Set CRC vector. More... | |
void | setSCAC (const std::vector< uint16_t > &scac) |
Set SCAC (SCA Controller) vector. More... | |
int | ShiftSel (int nmb, int nshift, int nsel) const |
Shift and select. More... | |
Private Attributes | |
std::vector< uint16_t > | bWords_ |
uint16_t | cfebnmb_ |
std::vector< uint16_t > | contrWords_ |
std::vector< uint16_t > | crcWords_ |
Digi for CSC CFEB status.
Definition at line 17 of file CSCCFEBStatusDigi.h.
|
inline |
Construct from the CFEB number (1-5).
Definition at line 22 of file CSCCFEBStatusDigi.h.
References cfebnmb_.
|
inline |
Constructor for all variables.
Definition at line 26 of file CSCCFEBStatusDigi.h.
References bWords_, cfebnmb_, contrWords_, and crcWords_.
|
inline |
|
inline |
Get the CFEB number.
Definition at line 45 of file CSCCFEBStatusDigi.h.
References cfebnmb_, and getSCAFullCond().
Referenced by operator<<(), and print().
|
inline |
Get CRC per each time sample.
Definition at line 51 of file CSCCFEBStatusDigi.h.
References crcWords_, getL1A_PHASE(), getLCT_PHASE(), getSCA_BLK(), getSCA_FULL(), getTRIG_TIME(), getTS_FLAG(), print(), and ShiftSel().
Referenced by operator<<(), and print().
std::vector< int > CSCCFEBStatusDigi::getL1A_PHASE | ( | ) | const |
Get L1A_PHASE bit from SCA Controller data per each time slice.
Definition at line 64 of file CSCCFEBStatusDigi.cc.
References contrWords_, mps_fire::i, and ShiftSel().
Referenced by getCRC(), operator<<(), and print().
std::vector< int > CSCCFEBStatusDigi::getLCT_PHASE | ( | ) | const |
Get LCT_PHASE bit from SCA Controller data per each time slice.
Definition at line 53 of file CSCCFEBStatusDigi.cc.
References contrWords_, mps_fire::i, and ShiftSel().
Referenced by getCRC(), operator<<(), and print().
std::vector< int > CSCCFEBStatusDigi::getSCA_BLK | ( | ) | const |
Get SCA_BLK 4 bit word from SCA Controller data per each time slice.
Definition at line 75 of file CSCCFEBStatusDigi.cc.
References contrWords_, mps_fire::i, and ShiftSel().
Referenced by getCRC(), operator<<(), and print().
std::vector< int > CSCCFEBStatusDigi::getSCA_FULL | ( | ) | const |
Get SCA_FULL bit from SCA Controller data per each time slice.
Definition at line 42 of file CSCCFEBStatusDigi.cc.
References contrWords_, mps_fire::i, and ShiftSel().
Referenced by getCRC(), operator<<(), and print().
std::vector< uint16_t > CSCCFEBStatusDigi::getSCAFullCond | ( | ) | const |
Get SCA Full Condition.
Definition at line 18 of file CSCCFEBStatusDigi.cc.
References bWords_.
Referenced by getCFEBNmb(), operator<<(), and print().
std::vector< int > CSCCFEBStatusDigi::getTRIG_TIME | ( | ) | const |
Get TRIG_TIME 8 bit word from SCA Controller data per each time slice.
Definition at line 86 of file CSCCFEBStatusDigi.cc.
References contrWords_, mps_fire::i, and ShiftSel().
Referenced by getCRC(), operator<<(), and print().
std::vector< int > CSCCFEBStatusDigi::getTS_FLAG | ( | ) | const |
Get TS_FLAG bit from SCA Controller data per each time slice.
Definition at line 31 of file CSCCFEBStatusDigi.cc.
References contrWords_, mps_fire::i, and ShiftSel().
Referenced by getCRC(), operator<<(), and print().
void CSCCFEBStatusDigi::print | ( | void | ) | const |
Print content of digi.
Debug.
Definition at line 97 of file CSCCFEBStatusDigi.cc.
References relativeConstraints::empty, getCFEBNmb(), getCRC(), getL1A_PHASE(), getLCT_PHASE(), getSCA_BLK(), getSCA_FULL(), getSCAFullCond(), getTRIG_TIME(), getTS_FLAG(), and mps_fire::i.
Referenced by getCRC().
|
inline |
|
inline |
Set SCAC (SCA Controller) vector.
Definition at line 42 of file CSCCFEBStatusDigi.h.
References contrWords_.
int CSCCFEBStatusDigi::ShiftSel | ( | int | nmb, |
int | nshift, | ||
int | nsel | ||
) | const |
Shift and select.
Definition at line 12 of file CSCCFEBStatusDigi.cc.
References tmp.
Referenced by getCRC(), getL1A_PHASE(), getLCT_PHASE(), getSCA_BLK(), getSCA_FULL(), getTRIG_TIME(), and getTS_FLAG().
|
private |
Definition at line 82 of file CSCCFEBStatusDigi.h.
Referenced by CSCCFEBStatusDigi(), and getSCAFullCond().
|
private |
Definition at line 79 of file CSCCFEBStatusDigi.h.
Referenced by CSCCFEBStatusDigi(), and getCFEBNmb().
|
private |
Definition at line 81 of file CSCCFEBStatusDigi.h.
Referenced by CSCCFEBStatusDigi(), getL1A_PHASE(), getLCT_PHASE(), getSCA_BLK(), getSCA_FULL(), getTRIG_TIME(), getTS_FLAG(), and setSCAC().
|
private |
Definition at line 80 of file CSCCFEBStatusDigi.h.
Referenced by CSCCFEBStatusDigi(), getCRC(), and setCRC().