![]() |
ATLAS Offline Software
|
Class that holds Data Quality fragment information and provides functions to extract the data quality status for channels Checks for the following types of errors stored in the Data Quality fragment: More...
#include <TileDQstatus.h>
Public Member Functions | |
| TileDQstatus () | |
| Default constructor. | |
| bool | isFilled () const |
| returns whether TileDQStatus has been filled with data from TileDQ fragment | |
| bool | isBiGain () const |
| returns gain mode of run | |
| bool | nonZeroCounter () const |
| returns True if there are any errors in event | |
| bool | isAdcDQgood (int partition, int drawer, int ch, int gain) const |
| returns status of single ADC returns False if there are any errors | |
| bool | isChanDQgood (int partition, int drawer, int ch) const |
| returns status of single channel (if bigain, returns AND of ADCs' status | |
| int | checkEmptyEvent (int partition, int drawer, int dmu) const |
| returns 0 if event is ok, 1 if empty LG event, 2 if empty HG event, 3 if empty event in both gains | |
| int | checkGlobalErr (int partition, int drawer, int gain) const |
| returns 1 if adc channel has any global error | |
| int | checkGlobalCRCErr (int partition, int drawer, int gain) const |
| returns 1 if adc channel has global CRC error | |
| int | checkROD_CRCErr (int partition, int drawer, int dmu, int gain) const |
| returns 1 if DMU has CRC error originating in ROD | |
| int | checkFE_CRCErr (int partition, int drawer, int dmu, int gain) const |
| returns 1 if DMU has CRC error originating in FE electronics | |
| int | checkBCIDErr (int partition, int drawer, int dmu, int gain) const |
| returns 1 if DMU has BCID mismatch between DMU and ROD Since BCID errors in the DQ fragment are determined by comparison of each DMU to DMU1, if DMU1 is bad and DMUX is also bad, we must compare the individual DMU's BCID to the actual (ROD) BCID. | |
| int | checkBCIDErrDetail (int partition, int drawer, int dmu, int gain) const |
| returns 1 if DMU has BCID mismatch between DMU and ROD This method accesses the TileDigitsContainer in order to explicitly check the DMU BCID with the ROD BCID. | |
| int | checkHeaderFormatErr (int partition, int drawer, int dmu, int gain) const |
| returns 1 if DMU has header word format error | |
| int | checkHeaderParityErr (int partition, int drawer, int dmu, int gain) const |
| returns 1 if DMU has header word parity error | |
| int | checkSampleFormatErr (int partition, int drawer, int dmu, int gain) const |
| returns 1 if DMU has data word format error | |
| int | checkSampleParityErr (int partition, int drawer, int dmu, int gain) const |
| returns 1 if DMU has data word parity error | |
| int | checkMemoryParityErr (int partition, int drawer, int dmu, int gain) const |
| returns 1 if DMU has memory parity error | |
| int | checkSingleStrobeErr (int partition, int drawer, int dmu, int gain) const |
| returns 1 if DMU has single strobe error | |
| int | checkDoubleStrobeErr (int partition, int drawer, int dmu, int gain) const |
| returns 1 if DMU has double strobe error | |
| bool | incompleteDigits () const |
| A few extra items (from TileBeamInfoProvider). | |
| void | setIncompleteDigits (bool incomplete) |
| uint32_t | calibMode () const |
| Calibration mode. | |
| void | setCalibMode (uint32_t calibMode) |
| const uint32_t * | cispar () const |
| CIS parameters. | |
| uint32_t * | cispar () |
| int | trigType () const |
| Trigger type. | |
| void | setTrigType (int trigType) |
| uint32_t | RODBCID () const |
Static Public Member Functions | |
| static int | isChEmpty (int partition, int drawer, int ch) |
| True if channel is not fully implemented. | |
Protected Member Functions | |
| void | setFilled (bool filled) |
| sets flag that DQ status instance has been filled for this event | |
| void | setBiGain (bool biGain) |
| sets flag of gain mode of run | |
| void | setAllGood () |
| mark all channels/ADC's as DQ good | |
| void | setRODBCID (uint32_t BCID) |
| sets the ROD BCID stored and used in DQStatus | |
| void | setEmptyEvent (int partition, int drawer, int dmu, int gain, int isEmpty) |
| sets flag that DMU sent an empty event (0xFFFFFFFF) | |
| void | fillArrays (const TileRawChannelCollection *coll, const TileDigitsContainer *digitsCnt, int gain, unsigned short fragBCID) |
| parses DQ fragments and fill error arrays for event | |
| void | fillBCIDErrDetail (const TileDigitsContainer *digitsCnt, int frag, int gain) |
| void | fillTrips (unsigned int partition, const std::vector< float > &trips, double *rndmVec, MsgStream &msg) |
Private Attributes | |
| bool | m_isFilled |
| Boolean storing if DQ fragment has been parsed already. | |
| bool | m_isBiGain |
| Boolean storing gain mode of run. | |
| bool | m_checkDigi |
| Boolean flag to control TileDigitsContainer access. | |
| uint32_t | m_BCID |
| Event bunch crossing identification. | |
| int | m_counter |
| Counter of non-zero elements in all error arrays. | |
| short | m_EmptyEventArray [5][64][16][2] |
| Array storing whether event is empty. | |
| short | m_GlobalCRCErrArray [5][64][2] |
| Array of bit masks storing CRC errors for all DMUs. | |
| short | m_FE_DMUmaskArray [5][64][2] |
| Array of bit masks storing CRC errors for all DMUs. | |
| short | m_ROD_DMUmaskArray [5][64][2] |
| Array of bit masks storing CRC errors for all DMUs. | |
| short | m_BCIDErrArray [5][64][2] |
| Array of bit masks storing BCID errors for all DMUs (from comparison with DMU1) | |
| short | m_BCIDErrArrayDetail [5][64][2] |
| Array of bit masks storing BCID errors for all DMUs (from comparison with Digits) | |
| short | m_HeaderFormatErrArray [5][64][2] |
| Array of bit masks storing Header Format errors for all DMUs. | |
| short | m_HeaderParityErrArray [5][64][2] |
| Array of bit masks storing Header Parity errors for all DMUs. | |
| short | m_SampleFormatErrArray [5][64][2] |
| Array of bit masks storing Sample Format errors for all DMUs. | |
| short | m_SampleParityErrArray [5][64][2] |
| Array of bit masks storing Sample Parity errors for all DMUs. | |
| short | m_MemoryParityErrArray [5][64][2] |
| Array of bit masks storing Memory Parity errors for all DMUs. | |
| short | m_SingleStrobeErrArray [5][64][2] |
| Array of bit masks storing Single Strobe errors for all DMUs. | |
| short | m_DoubleStrobeErrArray [5][64][2] |
| Array of bit masks storing Double Strobe errors for all DMUs. | |
| bool | m_incompleteDigits |
| True if not all digits are available. | |
| uint32_t | m_calibMode |
| Calibration mode. | |
| uint32_t | m_cispar [110] |
| CIS parameters. | |
| int | m_trigType |
| Trigger type. | |
Static Private Attributes | |
| static const int | s_ch2dmuLB [48] |
| static const int | s_ch2dmuEB [48] |
| static const int | s_ch2dmuEBspecial [48] |
Friends | |
| class | TileDQstatusTool |
Class that holds Data Quality fragment information and provides functions to extract the data quality status for channels Checks for the following types of errors stored in the Data Quality fragment:
Also holds a few other pieces of information, such as trigger type, calibration mode, and CIS parameters.
Definition at line 48 of file TileDQstatus.h.
| TileDQstatus::TileDQstatus | ( | ) |
Default constructor.
Definition at line 37 of file TileDQstatus.cxx.
|
inline |
|
inline |
returns 1 if DMU has BCID mismatch between DMU and ROD
Since BCID errors in the DQ fragment are determined by comparison of each DMU to DMU1, if DMU1 is bad and DMUX is also bad, we must compare the individual DMU's BCID to the actual (ROD) BCID.
This is due to the fact that DMU1 is checked against the ROD, while the others DMUs are checked against DMU1. This requires access to the digits in the function checkBCIDErrDetail. If this behavior is undesired set m_checkDigi to false in TileBeamInfoProvider. Setting m_checkDigi=false would cause any BCID errors simultaneous with DMU1 to be flagged as BAD (conservative approach)
Definition at line 100 of file TileDQstatus.h.
|
inline |
returns 1 if DMU has BCID mismatch between DMU and ROD This method accesses the TileDigitsContainer in order to explicitly check the DMU BCID with the ROD BCID.
Definition at line 109 of file TileDQstatus.h.
|
inline |
returns 1 if DMU has double strobe error
Definition at line 137 of file TileDQstatus.h.
|
inline |
returns 0 if event is ok, 1 if empty LG event, 2 if empty HG event, 3 if empty event in both gains
Definition at line 71 of file TileDQstatus.h.
|
inline |
returns 1 if DMU has CRC error originating in FE electronics
Definition at line 88 of file TileDQstatus.h.
|
inline |
returns 1 if adc channel has global CRC error
Definition at line 80 of file TileDQstatus.h.
|
inline |
returns 1 if adc channel has any global error
Definition at line 76 of file TileDQstatus.h.
|
inline |
returns 1 if DMU has header word format error
Definition at line 113 of file TileDQstatus.h.
|
inline |
returns 1 if DMU has header word parity error
Definition at line 117 of file TileDQstatus.h.
|
inline |
returns 1 if DMU has memory parity error
Definition at line 129 of file TileDQstatus.h.
|
inline |
returns 1 if DMU has CRC error originating in ROD
Definition at line 84 of file TileDQstatus.h.
|
inline |
returns 1 if DMU has data word format error
Definition at line 121 of file TileDQstatus.h.
|
inline |
returns 1 if DMU has data word parity error
Definition at line 125 of file TileDQstatus.h.
|
inline |
returns 1 if DMU has single strobe error
Definition at line 133 of file TileDQstatus.h.
| uint32_t * TileDQstatus::cispar | ( | ) |
Definition at line 321 of file TileDQstatus.cxx.
|
inline |
|
protected |
parses DQ fragments and fill error arrays for event
Definition at line 72 of file TileDQstatus.cxx.
|
protected |
Definition at line 249 of file TileDQstatus.cxx.
|
protected |
Definition at line 291 of file TileDQstatus.cxx.
|
inline |
A few extra items (from TileBeamInfoProvider).
True if not all digits are available.
Definition at line 144 of file TileDQstatus.h.
| bool TileDQstatus::isAdcDQgood | ( | int | partition, |
| int | drawer, | ||
| int | ch, | ||
| int | gain ) const |
returns status of single ADC returns False if there are any errors
Definition at line 178 of file TileDQstatus.cxx.
|
inline |
| bool TileDQstatus::isChanDQgood | ( | int | partition, |
| int | drawer, | ||
| int | ch ) const |
returns status of single channel (if bigain, returns AND of ADCs' status
Definition at line 240 of file TileDQstatus.cxx.
|
static |
True if channel is not fully implemented.
|
inline |
returns whether TileDQStatus has been filled with data from TileDQ fragment
Definition at line 58 of file TileDQstatus.h.
|
inline |
|
inline |
Definition at line 159 of file TileDQstatus.h.
|
protected |
mark all channels/ADC's as DQ good
Definition at line 49 of file TileDQstatus.cxx.
|
inlineprotected |
sets flag of gain mode of run
Definition at line 167 of file TileDQstatus.h.
| void TileDQstatus::setCalibMode | ( | uint32_t | calibMode | ) |
Definition at line 315 of file TileDQstatus.cxx.
|
inlineprotected |
sets flag that DMU sent an empty event (0xFFFFFFFF)
Definition at line 173 of file TileDQstatus.h.
|
inlineprotected |
sets flag that DQ status instance has been filled for this event
Definition at line 165 of file TileDQstatus.h.
| void TileDQstatus::setIncompleteDigits | ( | bool | incomplete | ) |
Definition at line 309 of file TileDQstatus.cxx.
|
inlineprotected |
| void TileDQstatus::setTrigType | ( | int | trigType | ) |
Definition at line 327 of file TileDQstatus.cxx.
|
inline |
|
friend |
Definition at line 50 of file TileDQstatus.h.
|
private |
Event bunch crossing identification.
Definition at line 193 of file TileDQstatus.h.
|
private |
Array of bit masks storing BCID errors for all DMUs (from comparison with DMU1)
Definition at line 205 of file TileDQstatus.h.
|
private |
Array of bit masks storing BCID errors for all DMUs (from comparison with Digits)
Definition at line 207 of file TileDQstatus.h.
|
private |
Calibration mode.
Definition at line 227 of file TileDQstatus.h.
|
private |
Boolean flag to control TileDigitsContainer access.
Definition at line 191 of file TileDQstatus.h.
|
private |
CIS parameters.
Definition at line 230 of file TileDQstatus.h.
|
private |
Counter of non-zero elements in all error arrays.
Definition at line 195 of file TileDQstatus.h.
|
private |
Array of bit masks storing Double Strobe errors for all DMUs.
Definition at line 221 of file TileDQstatus.h.
|
private |
Array storing whether event is empty.
Definition at line 197 of file TileDQstatus.h.
|
private |
Array of bit masks storing CRC errors for all DMUs.
Definition at line 201 of file TileDQstatus.h.
|
private |
Array of bit masks storing CRC errors for all DMUs.
Definition at line 199 of file TileDQstatus.h.
|
private |
Array of bit masks storing Header Format errors for all DMUs.
Definition at line 209 of file TileDQstatus.h.
|
private |
Array of bit masks storing Header Parity errors for all DMUs.
Definition at line 211 of file TileDQstatus.h.
|
private |
True if not all digits are available.
Definition at line 224 of file TileDQstatus.h.
|
private |
Boolean storing gain mode of run.
Definition at line 189 of file TileDQstatus.h.
|
private |
Boolean storing if DQ fragment has been parsed already.
Definition at line 187 of file TileDQstatus.h.
|
private |
Array of bit masks storing Memory Parity errors for all DMUs.
Definition at line 217 of file TileDQstatus.h.
|
private |
Array of bit masks storing CRC errors for all DMUs.
Definition at line 203 of file TileDQstatus.h.
|
private |
Array of bit masks storing Sample Format errors for all DMUs.
Definition at line 213 of file TileDQstatus.h.
|
private |
Array of bit masks storing Sample Parity errors for all DMUs.
Definition at line 215 of file TileDQstatus.h.
|
private |
Array of bit masks storing Single Strobe errors for all DMUs.
Definition at line 219 of file TileDQstatus.h.
|
private |
Trigger type.
Definition at line 233 of file TileDQstatus.h.
|
staticprivate |
Definition at line 26 of file TileDQstatus.h.
|
staticprivate |
Definition at line 31 of file TileDQstatus.h.
|
staticprivate |
Definition at line 21 of file TileDQstatus.h.