ATLAS Offline Software
|
Class helping to decode the MuCTPI multiplicity words. More...
#include <MuCTPI_MultiplicityWord_Decoder.h>
Public Types | |
enum | TriggerMode_t { inclusive, exclusive } |
Possible trigger threshold modes. More... | |
Public Member Functions | |
MuCTPI_MultiplicityWord_Decoder (const uint32_t multword=0, const TriggerMode_t mode=exclusive) | |
Constructor. More... | |
MuCTPI_MultiplicityWord_Decoder (const uint32_t multword, const bool inclusiveTriggerMode) | |
Constructor. More... | |
~MuCTPI_MultiplicityWord_Decoder ()=default | |
Destructor. More... | |
uint16_t | getNCandidates () const |
Function returning the total number of muon candidates. More... | |
uint16_t | getMultiplicity (const uint16_t candidateNumber) const |
Function returning the 3-bit candidate multiplicity for the specified threshold. More... | |
uint16_t | getBCID () const |
Function returning the 3-bit BCID fragment in the multiplicity word. More... | |
void | setWord (const uint32_t word) |
Function setting the MuCTPI multiplicity word. More... | |
uint32_t | getWord () const |
Function returning the MuCTPI multiplicity 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_multiplicityWord |
The 32-bit multiplicity word to decode. More... | |
TriggerMode_t | m_triggerMode |
Trigger threshold mode (inclusive/exclusive) More... | |
Class helping to decode the MuCTPI multiplicity words.
The multiplicity word(s) in the MuCTPI readout data store the number of collected LVL1 muon candidates in 6 p<sub>T</sub> thresholds in (a) 32-bit word(s). This class can help in decoding such a multiplicity word. 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 32 of file MuCTPI_MultiplicityWord_Decoder.h.
Possible trigger threshold modes.
Enumerator | |
---|---|
inclusive | |
exclusive |
Definition at line 36 of file MuCTPI_MultiplicityWord_Decoder.h.
MuCTPI_MultiplicityWord_Decoder::MuCTPI_MultiplicityWord_Decoder | ( | const uint32_t | multword = 0 , |
const TriggerMode_t | mode = exclusive |
||
) |
Constructor.
The constructor only has to give an initial value to MuCTPI_MultiplicityWord_Decoder::m_multiplicityWord stored in the object.
multword | The 32-bit MuCTPI multiplicity word that you want to decode |
Definition at line 23 of file MuCTPI_MultiplicityWord_Decoder.cxx.
MuCTPI_MultiplicityWord_Decoder::MuCTPI_MultiplicityWord_Decoder | ( | const uint32_t | multword, |
const bool | inclusiveTriggerMode | ||
) |
Constructor.
The constructor only has to give an initial value to MuCTPI_MultiplicityWord_Decoder::m_multiplicityWord stored in the object.
multword | The 32-bit MuCTPI multiplicity word that you want to decode |
Definition at line 33 of file MuCTPI_MultiplicityWord_Decoder.cxx.
|
default |
Destructor.
void MuCTPI_MultiplicityWord_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_MultiplicityWord_Decoder::dumpData(MsgStream&) const.
Definition at line 88 of file MuCTPI_MultiplicityWord_Decoder.cxx.
void MuCTPI_MultiplicityWord_Decoder::dumpData | ( | MsgStream & | log | ) | const |
Function dumping the stored information to the message stream.
Function printing the decodable information of the MuCTPI multiplicity word in an easy-to-read fashion.
log | A message stream to print the information to |
Definition at line 105 of file MuCTPI_MultiplicityWord_Decoder.cxx.
uint16_t MuCTPI_MultiplicityWord_Decoder::getBCID | ( | ) | const |
Function returning the 3-bit BCID fragment in the multiplicity word.
Definition at line 78 of file MuCTPI_MultiplicityWord_Decoder.cxx.
uint16_t MuCTPI_MultiplicityWord_Decoder::getMultiplicity | ( | const uint16_t | candidateNumber | ) | const |
Function returning the 3-bit candidate multiplicity for the specified threshold.
Be careful, that candidateNumber is defined from 0 to 5, not from 1 to 6!
candidateNumber | the index of the threshold for which to get the number of candidates |
Definition at line 61 of file MuCTPI_MultiplicityWord_Decoder.cxx.
uint16_t MuCTPI_MultiplicityWord_Decoder::getNCandidates | ( | ) | const |
Function returning the total number of muon candidates.
Definition at line 42 of file MuCTPI_MultiplicityWord_Decoder.cxx.
|
inline |
Function returning the MuCTPI multiplicity word.
Definition at line 57 of file MuCTPI_MultiplicityWord_Decoder.h.
|
inline |
Function setting the MuCTPI multiplicity word.
Definition at line 55 of file MuCTPI_MultiplicityWord_Decoder.h.
|
private |
The 32-bit multiplicity word to decode.
Definition at line 66 of file MuCTPI_MultiplicityWord_Decoder.h.
|
private |
Trigger threshold mode (inclusive/exclusive)
Definition at line 68 of file MuCTPI_MultiplicityWord_Decoder.h.