ATLAS Offline Software
|
Class helping to decode the MuCTPI data words. More...
#include <MuCTPI_DataWord_Decoder.h>
Public Member Functions | |
MuCTPI_DataWord_Decoder (uint32_t dataword=0) | |
Constructor. More... | |
~MuCTPI_DataWord_Decoder ()=default | |
Destructor. More... | |
uint16_t | getSectorOverflow () const |
Flag showing whether there were more than 2 candidates in this candidate's sector. More... | |
uint16_t | getRoiOverflow () const |
Flag showing whether there was more than 1 candidate in this candidate's RoI. More... | |
uint16_t | getRoiNumber () const |
RoI number (sub-sector in which the candidate was detected) More... | |
uint16_t | getOverlapBits () const |
2-bit overlap bits given to the candidate by the SL More... | |
MuCTPI_RDO::SectorLocation | getSectorLocation () const |
The system that detected the muon candidate. More... | |
uint16_t | getSectorAddress () const |
8-bit address of the sector that detected the candidate More... | |
uint16_t | getSectorID (bool newScheme=0) const |
Number of the sector that detected the candidate. More... | |
uint16_t | getHemisphere () const |
The hemisphere in which the candidate was detected. More... | |
uint16_t | getPt () const |
3-bit pT threshold of the candidate More... | |
uint16_t | getBCID () const |
3-bit BCID fragment saved with the candidate More... | |
uint16_t | getCandidateIsHighestPt () const |
Flag showing whether the candidate had the highest pT in its sector. More... | |
uint16_t | getSentRoi () const |
Flag showing whether the candidate was sent to the RoIB. More... | |
uint16_t | getSign () const |
Get the candidate's sign (0=negative, 1=positive, 100=undefined) More... | |
uint16_t | getVetoed () const |
Flag showing if the candidate was vetoed in the multiplicity sum. More... | |
void | setWord (uint32_t word) |
Function setting the MuCTPI data word. More... | |
uint32_t | getWord () const |
Function returning the MuCTPI data word. More... | |
void | dumpData () const |
Function dumping the stored information to the message stream. More... | |
void | dumpData (MsgStream &log) const |
Function dumping the stored information to the message stream. More... | |
Private Attributes | |
uint32_t | m_dataWord |
The 32-bit data word to decode. More... | |
Class helping to decode the MuCTPI data words.
The data words of the MuCTPI readout data contain a lot of information about the LVL1 muon candidates in a tightly encoded fashion. This class can be used to easily extract all stored information from these 32-bit words. For a detailed description of the data format of the MuCTPI, see the MIROD documentation (https://edms.cern.ch/file/248757/1/mirod.pdf).
Definition at line 37 of file MuCTPI_DataWord_Decoder.h.
MuCTPI_DataWord_Decoder::MuCTPI_DataWord_Decoder | ( | uint32_t | dataword = 0 | ) |
Constructor.
The constructor only has to give an initial value to MuCTPI_DataWord_Decoder::m_dataWord stored in the object.
dataword | The 32-bit MuCTPI data word that you want to decode |
Definition at line 21 of file MuCTPI_DataWord_Decoder.cxx.
|
default |
Destructor.
void MuCTPI_DataWord_Decoder::dumpData | ( | ) | const |
Function dumping the stored information to the message stream.
This function is not responsible for actually printing the information, it just creates a message stream to print the information to with MuCTPI_DataWord_Decoder::dumpData(MsgStream&) const.
Definition at line 204 of file MuCTPI_DataWord_Decoder.cxx.
void MuCTPI_DataWord_Decoder::dumpData | ( | MsgStream & | log | ) | const |
Function dumping the stored information to the message stream.
Function printing the decodable information of the MuCTPI data word in an easy-to-read fashion.
log | A message stream to print the information to |
Definition at line 221 of file MuCTPI_DataWord_Decoder.cxx.
uint16_t MuCTPI_DataWord_Decoder::getBCID | ( | ) | const |
3-bit BCID fragment saved with the candidate
Definition at line 154 of file MuCTPI_DataWord_Decoder.cxx.
uint16_t MuCTPI_DataWord_Decoder::getCandidateIsHighestPt | ( | ) | const |
Flag showing whether the candidate had the highest pT in its sector.
Definition at line 163 of file MuCTPI_DataWord_Decoder.cxx.
uint16_t MuCTPI_DataWord_Decoder::getHemisphere | ( | ) | const |
The hemisphere in which the candidate was detected.
Definition at line 138 of file MuCTPI_DataWord_Decoder.cxx.
uint16_t MuCTPI_DataWord_Decoder::getOverlapBits | ( | ) | const |
2-bit overlap bits given to the candidate by the SL
Definition at line 69 of file MuCTPI_DataWord_Decoder.cxx.
uint16_t MuCTPI_DataWord_Decoder::getPt | ( | ) | const |
3-bit pT threshold of the candidate
Definition at line 145 of file MuCTPI_DataWord_Decoder.cxx.
uint16_t MuCTPI_DataWord_Decoder::getRoiNumber | ( | ) | const |
RoI number (sub-sector in which the candidate was detected)
Definition at line 45 of file MuCTPI_DataWord_Decoder.cxx.
uint16_t MuCTPI_DataWord_Decoder::getRoiOverflow | ( | ) | const |
Flag showing whether there was more than 1 candidate in this candidate's RoI.
Definition at line 37 of file MuCTPI_DataWord_Decoder.cxx.
uint16_t MuCTPI_DataWord_Decoder::getSectorAddress | ( | ) | const |
8-bit address of the sector that detected the candidate
Definition at line 107 of file MuCTPI_DataWord_Decoder.cxx.
uint16_t MuCTPI_DataWord_Decoder::getSectorID | ( | bool | newScheme = 0 | ) | const |
Number of the sector that detected the candidate.
Definition at line 115 of file MuCTPI_DataWord_Decoder.cxx.
MuCTPI_RDO::SectorLocation MuCTPI_DataWord_Decoder::getSectorLocation | ( | ) | const |
The system that detected the muon candidate.
Definition at line 93 of file MuCTPI_DataWord_Decoder.cxx.
uint16_t MuCTPI_DataWord_Decoder::getSectorOverflow | ( | ) | const |
Flag showing whether there were more than 2 candidates in this candidate's sector.
Definition at line 29 of file MuCTPI_DataWord_Decoder.cxx.
uint16_t MuCTPI_DataWord_Decoder::getSentRoi | ( | ) | const |
Flag showing whether the candidate was sent to the RoIB.
Definition at line 172 of file MuCTPI_DataWord_Decoder.cxx.
uint16_t MuCTPI_DataWord_Decoder::getSign | ( | ) | const |
Get the candidate's sign (0=negative, 1=positive, 100=undefined)
Definition at line 180 of file MuCTPI_DataWord_Decoder.cxx.
uint16_t MuCTPI_DataWord_Decoder::getVetoed | ( | ) | const |
Flag showing if the candidate was vetoed in the multiplicity sum.
Definition at line 194 of file MuCTPI_DataWord_Decoder.cxx.
|
inline |
|
inline |
|
private |
The 32-bit data word to decode.
Definition at line 86 of file MuCTPI_DataWord_Decoder.h.