ATLAS Offline Software
|
Reconstruction Input Object of the MuCTPI hardware and simulation. More...
#include <MuCTPI_RIO.h>
Classes | |
class | MyRoI |
Custom private object to hold information about the stored reconstructed RoIs. More... | |
Public Types | |
enum | { N_SUM = 6 } |
number of candidate multiplicity thresholds More... | |
Public Member Functions | |
MuCTPI_RIO () | |
Default constructor. More... | |
~MuCTPI_RIO ()=default | |
Destructor. More... | |
void | setBCID (const uint16_t bcId) |
Function setting the BCID of the object. More... | |
uint16_t | getBCID () const |
The BCID of the object. More... | |
void | setSum (const uint16_t *sum) |
Set the multiplicity sum. More... | |
uint16_t | getSum (const int index) const |
Get the multiplicity sum for a given pT threshold. More... | |
void | setRoI (const uint16_t bcId, const uint16_t pTval, const uint16_t pTnum, const double eta, const double phi, const uint16_t secID, const uint16_t sysId, const uint16_t hemisphere, const uint16_t roiNum, const bool accepted, const bool first, const bool duplicatedRoI, const bool duplicatedSector) |
Add a muon RoI to the object More... | |
int | getNRoI () const |
Get the number of muon RoIs. More... | |
bool | getRoI (const int index, uint16_t &bcId, uint16_t &pTval, uint16_t &pTnum, double &eta, double &phi, uint16_t &secID, uint16_t &sysId, uint16_t &hemisphere, uint16_t &roiNum, bool &accepted, bool &first, bool &duplicatedRoI, bool &duplicatedSector) const |
Get the properties of a given muon RoI. More... | |
uint32_t | getHeaderSourceId () const |
Get the ROD ID specified in the header. More... | |
uint32_t | getHeaderRunNumber () const |
Get the run number specified in the header. More... | |
uint32_t | getHeaderLVL1ID () const |
Get the LVL1 ID specified in the header. More... | |
uint32_t | getHeaderBCID () const |
Get the full BCID specified in the header. More... | |
uint32_t | getHeaderLVL1TriggerType () const |
Get the LVL1 trigger type specified in the header. More... | |
uint32_t | getHeaderDetectorEventType () const |
Get the event type specified in the header. More... | |
uint32_t | getHeaderNumberDataWords () const |
Get the number of data words as it was specified in the trailer More... | |
uint32_t | getHeaderNumberStatusWords () const |
Get the number of status words as it was specified in the trailer More... | |
const std::vector< uint32_t > & | getHeaderStatusWords () const |
Get the status words from the payload. More... | |
void | headerSourceId (uint32_t val) |
Set the ROD ID specidied in the header. More... | |
void | headerRunNumber (uint32_t val) |
Set the run number specified in the header. More... | |
void | headerLVL1ID (uint32_t val) |
Set the LVL1 ID specified in the header. More... | |
void | headerBCID (uint32_t val) |
Set the BCID specified in the header. More... | |
void | headerLVL1TriggerType (uint32_t val) |
Set the LVL1 trigger type specified in the header. More... | |
void | headerDetectorEventType (uint32_t val) |
Set the event type specified in the header. More... | |
void | headerNumberDataWords (uint32_t val) |
Set the number of data words as it was specified in the trailer More... | |
void | headerNumberStatusWords (uint32_t val) |
Set the number of status words as it was specified in the trailer More... | |
std::vector< uint32_t > & | headerStatusWords () |
Get the status words from the payload. More... | |
void | dumpData () const |
Function dumping the stored information to the message stream. More... | |
void | dumpData (MsgStream &) const |
Function dumping the stored information to the message stream. More... | |
Private Attributes | |
uint32_t | m_headerSourceId |
Source ID as specified in the header. More... | |
uint32_t | m_headerRunNumber |
Run number as specified in the header. More... | |
uint32_t | m_headerLVL1ID |
LVL1 ID as specified in the header. More... | |
uint32_t | m_headerBCID |
The full BCID as specified in the header. More... | |
uint32_t | m_headerLVL1TriggerType |
The LVL1 trigger type as specified in the header. More... | |
uint32_t | m_headerDetEventType |
The event type as specified in the header. More... | |
uint32_t | m_headerNDataWords |
The number of data words as specified in the trailer More... | |
uint32_t | m_headerNStatusWords |
The number of status words as specified in the trailer More... | |
std::vector< uint32_t > | m_headerStatusWords |
The status words. More... | |
uint16_t | m_bcId |
What kind of BCID is this??? More... | |
std::array< uint16_t, N_SUM > | m_sum |
Candidate multiplicity in MuCTPI_RIO::N_SUM number of pT thresholds. More... | |
std::vector< MyRoI > | m_roI |
Variable holding the custom RoIs. More... | |
Reconstruction Input Object of the MuCTPI hardware and simulation.
This is a slightly smarter version of MuCTPI_RDO. It basically provides the same features with additional accessor functions. For a detailed description of the data format of the MuCTPI, see the MIROD documentation (https://edms.cern.ch/file/248757/1/mirod.pdf). For a detailed description of the ATLAS raw event format, see https://edms.cern.ch/file/445840/3.1/ATL-D-ES-0019v31.pdf
Definition at line 43 of file MuCTPI_RIO.h.
anonymous enum |
number of candidate multiplicity thresholds
Enumerator | |
---|---|
N_SUM |
Definition at line 47 of file MuCTPI_RIO.h.
MuCTPI_RIO::MuCTPI_RIO | ( | ) |
Default constructor.
There are so many parameters defined in the class, that no constructor that would actually set any of them would make sense.
So this one just initialises everything to zero, in the assumption that everything will be set by the "setter" methods.
Definition at line 20 of file MuCTPI_RIO.cxx.
|
default |
Destructor.
void MuCTPI_RIO::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_RIO::dumpData(MsgStream&) const.
Definition at line 127 of file MuCTPI_RIO.cxx.
void MuCTPI_RIO::dumpData | ( | MsgStream & | log | ) | const |
Function dumping the stored information to the message stream.
Function printing the information stored in the object in an easy-to-read fashion.
log | A message stream to print the information to |
Definition at line 144 of file MuCTPI_RIO.cxx.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Get the number of data words as it was specified in the trailer
Definition at line 88 of file MuCTPI_RIO.h.
|
inline |
Get the number of status words as it was specified in the trailer
Definition at line 90 of file MuCTPI_RIO.h.
|
inline |
|
inline |
|
inline |
|
inline |
bool MuCTPI_RIO::getRoI | ( | const int | index, |
uint16_t & | bcId, | ||
uint16_t & | pTval, | ||
uint16_t & | pTnum, | ||
double & | eta, | ||
double & | phi, | ||
uint16_t & | secID, | ||
uint16_t & | sysId, | ||
uint16_t & | hemisphere, | ||
uint16_t & | roiNum, | ||
bool & | accepted, | ||
bool & | first, | ||
bool & | duplicatedRoI, | ||
bool & | duplicatedSector | ||
) | const |
Get the properties of a given muon RoI.
Function that returns the properties of a given RoI in the variables given to it.
index | index of the RoI in question in the stored list |
bcId | 3-bit BCID from the muon candidate word |
pTval | pT threshold value in GeV taken from the configuration |
pTnum | pT threshold number from the muon candidate word |
eta | η coordinate of the muon candidate |
phi | φ coordinate of the muon candidate |
secID | 8-bit sector ID from the muon candidate word |
sysId | system ID ROI (Barrel=0, Endcap=1, Forward=2) |
hemisphere | Hemisphere (0: z < 0, 1: z > 0) |
roiNum | RoI number from the muon candidate word |
accepted | flag showing whether the candidate was sent to the RoIB |
first | flag showing whether the candidate had the highest pT in it's sector |
duplicatedRoI | flag showing whether there was more than 1 muon candidate in this candidate's RoI |
duplicatedSector | flag showing whether there were more than 2 muon candidates in this candidate's sector |
Definition at line 98 of file MuCTPI_RIO.cxx.
uint16_t MuCTPI_RIO::getSum | ( | const int | index | ) | const |
Get the multiplicity sum for a given pT threshold.
Function returning the 3-bit number of muon candidates in threshold "index".
Be aware that index is defined from 0 to 5, not from 1 to 6 as the actual thresholds are numbered!
index | Index of the pT threshold to get the multiplicity sum for |
Definition at line 47 of file MuCTPI_RIO.cxx.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Set the number of data words as it was specified in the trailer
Definition at line 107 of file MuCTPI_RIO.h.
|
inline |
Set the number of status words as it was specified in the trailer
Definition at line 109 of file MuCTPI_RIO.h.
|
inline |
|
inline |
|
inline |
|
inline |
Function setting the BCID of the object.
Definition at line 55 of file MuCTPI_RIO.h.
void MuCTPI_RIO::setRoI | ( | const uint16_t | bcId, |
const uint16_t | pTval, | ||
const uint16_t | pTnum, | ||
const double | eta, | ||
const double | phi, | ||
const uint16_t | secID, | ||
const uint16_t | sysId, | ||
const uint16_t | hemisphere, | ||
const uint16_t | roiNum, | ||
const bool | accepted, | ||
const bool | first, | ||
const bool | duplicatedRoI, | ||
const bool | duplicatedSector | ||
) |
Add a muon RoI to the object
Function that adds one more muon candidate to the stored list.
bcId | 3-bit BCID from the muon candidate word |
pTval | pT threshold value in GeV taken from the configuration |
pTnum | pT threshold number from the muon candidate word |
eta | η coordinate of the muon candidate |
phi | φ coordinate of the muon candidate |
secID | 8-bit sector ID from the muon candidate word |
sysId | system ID ROI (Barrel=0, Endcap=1, Forward=2) |
hemisphere | Hemisphere (0: z < 0, 1: z > 0) |
roiNum | RoI number from the muon candidate word |
accepted | flag showing whether the candidate was sent to the RoIB |
first | flag showing whether the candidate had the highest pT in it's sector |
duplicatedRoI | flag showing whether there was more than 1 muon candidate in this candidate's RoI |
duplicatedSector | flag showing whether there were more than 2 muon candidates in this candidate's sector |
Definition at line 69 of file MuCTPI_RIO.cxx.
void MuCTPI_RIO::setSum | ( | const uint16_t * | sum | ) |
Set the multiplicity sum.
This function sets the muon candidate multiplicity sums in the 6 pT thresholds.
sum | constant pointer to an array holding 6 uint16_t values |
Definition at line 34 of file MuCTPI_RIO.cxx.
|
private |
What kind of BCID is this???
Definition at line 166 of file MuCTPI_RIO.h.
|
private |
The full BCID as specified in the header.
Definition at line 138 of file MuCTPI_RIO.h.
|
private |
The event type as specified in the header.
Definition at line 148 of file MuCTPI_RIO.h.
|
private |
LVL1 ID as specified in the header.
Definition at line 133 of file MuCTPI_RIO.h.
|
private |
The LVL1 trigger type as specified in the header.
Definition at line 143 of file MuCTPI_RIO.h.
|
private |
The number of data words as specified in the trailer
Definition at line 153 of file MuCTPI_RIO.h.
|
private |
The number of status words as specified in the trailer
Definition at line 158 of file MuCTPI_RIO.h.
|
private |
Run number as specified in the header.
Definition at line 128 of file MuCTPI_RIO.h.
|
private |
Source ID as specified in the header.
Definition at line 123 of file MuCTPI_RIO.h.
|
private |
The status words.
Definition at line 163 of file MuCTPI_RIO.h.
|
private |
Variable holding the custom RoIs.
Definition at line 240 of file MuCTPI_RIO.h.
|
private |
Candidate multiplicity in MuCTPI_RIO::N_SUM number of pT thresholds.
Definition at line 170 of file MuCTPI_RIO.h.